@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,17 +1,17 @@
|
|
|
1
1
|
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as u } from "react-i18next";
|
|
3
|
-
import {
|
|
4
|
-
import { Menu as r, Flex as f, ActionIcon as d } from "@mantine/core";
|
|
3
|
+
import { Menu as r, Flex as g, ActionIcon as d } from "@mantine/core";
|
|
5
4
|
import { randomId as c } from "@mantine/hooks";
|
|
6
|
-
import { IconCheck as
|
|
5
|
+
import { IconCheck as f, IconBug as y, IconSquareRotated as h } from "@tabler/icons-react";
|
|
6
|
+
import { useOnboardingState as C } from "../../../../store/onboarding.js";
|
|
7
7
|
const j = ({
|
|
8
8
|
task: n
|
|
9
9
|
}) => {
|
|
10
|
-
const { t } = u("onboarding"), { setTaskById: s } =
|
|
10
|
+
const { t } = u("onboarding"), { setTaskById: s } = C(), l = [
|
|
11
11
|
{
|
|
12
12
|
id: c(),
|
|
13
13
|
color: "blue",
|
|
14
|
-
icon:
|
|
14
|
+
icon: f,
|
|
15
15
|
name: t("selectCategory.options.task"),
|
|
16
16
|
type: "task",
|
|
17
17
|
order: 1
|
|
@@ -19,7 +19,7 @@ const j = ({
|
|
|
19
19
|
{
|
|
20
20
|
id: c(),
|
|
21
21
|
color: "orange",
|
|
22
|
-
icon:
|
|
22
|
+
icon: y,
|
|
23
23
|
name: t("selectCategory.options.bug"),
|
|
24
24
|
type: "bug",
|
|
25
25
|
order: 2
|
|
@@ -27,7 +27,7 @@ const j = ({
|
|
|
27
27
|
{
|
|
28
28
|
id: c(),
|
|
29
29
|
color: "grape",
|
|
30
|
-
icon:
|
|
30
|
+
icon: h,
|
|
31
31
|
name: t("selectCategory.options.milestone"),
|
|
32
32
|
type: "milestone",
|
|
33
33
|
order: 3
|
|
@@ -47,7 +47,7 @@ const j = ({
|
|
|
47
47
|
type: o.type
|
|
48
48
|
});
|
|
49
49
|
},
|
|
50
|
-
children: /* @__PURE__ */ a(
|
|
50
|
+
children: /* @__PURE__ */ a(g, { align: "center", children: [
|
|
51
51
|
/* @__PURE__ */ e(d, { size: 16, variant: "filled", color: o.color, children: /* @__PURE__ */ e(o.icon, {}) }),
|
|
52
52
|
o.name
|
|
53
53
|
] })
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as m } from "react-i18next";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Flex as u, TextInput as g } from "@mantine/core";
|
|
4
|
+
import { useOnboardingState as d } from "../../../../store/onboarding.js";
|
|
5
5
|
import f from "../Wrapper.js";
|
|
6
6
|
import x from "./CategorySelect.js";
|
|
7
7
|
const y = () => {
|
|
8
|
-
const { nextStep: a, prevStep: i, tasksList: p, setTasksList: l } =
|
|
8
|
+
const { nextStep: a, prevStep: i, tasksList: p, setTasksList: l } = d(), { t } = m("onboarding");
|
|
9
9
|
return /* @__PURE__ */ e(
|
|
10
10
|
f,
|
|
11
11
|
{
|
|
@@ -19,8 +19,8 @@ const y = () => {
|
|
|
19
19
|
prevButtonProps: {
|
|
20
20
|
onClick: () => i()
|
|
21
21
|
},
|
|
22
|
-
children: /* @__PURE__ */ e(
|
|
23
|
-
|
|
22
|
+
children: /* @__PURE__ */ e(u, { align: "start", direction: "column", w: "100%", gap: 8, children: p.map((r, o, s) => /* @__PURE__ */ e(
|
|
23
|
+
g,
|
|
24
24
|
{
|
|
25
25
|
leftSection: /* @__PURE__ */ e(x, { task: r }),
|
|
26
26
|
w: "100%",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as p } from "react-i18next";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Radio as a, Flex as c, Select as u } from "@mantine/core";
|
|
4
|
+
import { useOnboardingState as d } from "../../../store/onboarding.js";
|
|
5
5
|
import b from "./Wrapper.js";
|
|
6
6
|
const f = [
|
|
7
7
|
"1 - 5",
|
|
@@ -20,7 +20,7 @@ const f = [
|
|
|
20
20
|
setCommunityType: i,
|
|
21
21
|
communityRange: s,
|
|
22
22
|
setCommunityRange: m
|
|
23
|
-
} =
|
|
23
|
+
} = d(), { t: e } = p("onboarding");
|
|
24
24
|
return /* @__PURE__ */ n(
|
|
25
25
|
b,
|
|
26
26
|
{
|
|
@@ -41,14 +41,14 @@ const f = [
|
|
|
41
41
|
onChange: (r) => i(r),
|
|
42
42
|
name: "purpose",
|
|
43
43
|
value: t,
|
|
44
|
-
children: /* @__PURE__ */ n(
|
|
44
|
+
children: /* @__PURE__ */ n(c, { align: "start", direction: "column", mt: "xs", children: [
|
|
45
45
|
/* @__PURE__ */ o(a, { value: "team", label: e("beforeStart.team") }),
|
|
46
46
|
/* @__PURE__ */ o(a, { value: "organization", label: e("beforeStart.organization") })
|
|
47
47
|
] })
|
|
48
48
|
}
|
|
49
49
|
),
|
|
50
50
|
!!t && /* @__PURE__ */ o(
|
|
51
|
-
|
|
51
|
+
u,
|
|
52
52
|
{
|
|
53
53
|
w: "100%",
|
|
54
54
|
size: "sm",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentSuccess.d.ts","sourceRoot":"","sources":["../../../src/components/PaymentSuccess/PaymentSuccess.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PaymentSuccess.d.ts","sourceRoot":"","sources":["../../../src/components/PaymentSuccess/PaymentSuccess.tsx"],"names":[],"mappings":"AASA,eAAO,MAAM,cAAc,+CAiC1B,CAAC"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as n } from "react-i18next";
|
|
3
3
|
import { useNavigate as s } from "react-router-dom";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { Stack as r } from "@mantine/core";
|
|
5
|
+
import { IconChevronLeft as c, IconHome2 as m } from "@tabler/icons-react";
|
|
6
|
+
import { useMenu as a } from "../../hooks/useMenu.js";
|
|
7
|
+
import { NoData as l } from "../NoData/NoData.js";
|
|
8
8
|
const g = () => {
|
|
9
|
-
const i = s(), { t } = n(), { isMobile: o } =
|
|
10
|
-
return /* @__PURE__ */ e(
|
|
11
|
-
|
|
9
|
+
const i = s(), { t } = n(), { isMobile: o } = a();
|
|
10
|
+
return /* @__PURE__ */ e(r, { mih: "100dvh", gap: "sm", justify: "center", flex: 1, align: "center", children: /* @__PURE__ */ e(
|
|
11
|
+
l,
|
|
12
12
|
{
|
|
13
13
|
title: t("paymentSuccess.title"),
|
|
14
14
|
flex: "0,0,0",
|
|
@@ -20,14 +20,14 @@ const g = () => {
|
|
|
20
20
|
{
|
|
21
21
|
size: "md",
|
|
22
22
|
variant: "subtle",
|
|
23
|
-
leftSection: /* @__PURE__ */ e(
|
|
23
|
+
leftSection: /* @__PURE__ */ e(c, { size: 18 }),
|
|
24
24
|
onClick: () => i("/settings/plans"),
|
|
25
25
|
children: t("backToPlans")
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
size: "md",
|
|
29
29
|
variant: "filled",
|
|
30
|
-
leftSection: /* @__PURE__ */ e(
|
|
30
|
+
leftSection: /* @__PURE__ */ e(m, { size: 18 }),
|
|
31
31
|
onClick: () => i("/"),
|
|
32
32
|
children: t("404.goHome")
|
|
33
33
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { useState as y } from "react";
|
|
3
3
|
import { useTranslation as I } from "react-i18next";
|
|
4
|
-
import {
|
|
5
|
-
import { Popover as m, Pill as j, Flex as A, Select as O, Button as T, Divider as D } from "@mantine/core";
|
|
4
|
+
import { Popover as m, Pill as j, Flex as w, Select as O, Button as A, Divider as T } from "@mantine/core";
|
|
6
5
|
import { DatePicker as E } from "@mantine/dates";
|
|
7
|
-
import { IconCalendarEvent as l, IconChevronDown as
|
|
8
|
-
import { endOfDay as u, startOfDay as f, subDays as
|
|
6
|
+
import { IconCalendarEvent as l, IconChevronDown as D, IconClockEdit as R } from "@tabler/icons-react";
|
|
7
|
+
import { endOfDay as u, startOfDay as f, subDays as x, format as b } from "date-fns";
|
|
8
|
+
import { parseDate as v } from "../../../helpers/dates.js";
|
|
9
9
|
import p from "../SearchFilters.module.css.js";
|
|
10
10
|
const J = ({ setSelectedFilter: i, selectedFilter: s }) => {
|
|
11
11
|
const { t: a, i18n: F } = I("searchPage"), [o, d] = y([
|
|
@@ -33,8 +33,8 @@ const J = ({ setSelectedFilter: i, selectedFilter: s }) => {
|
|
|
33
33
|
}
|
|
34
34
|
}, C = (e) => {
|
|
35
35
|
const r = [
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
v(e[0]),
|
|
37
|
+
v(e[1])
|
|
38
38
|
];
|
|
39
39
|
d(r), i(
|
|
40
40
|
(c) => ({
|
|
@@ -56,17 +56,17 @@ const J = ({ setSelectedFilter: i, selectedFilter: s }) => {
|
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
icon: /* @__PURE__ */ t(l, {}),
|
|
59
|
-
text: a("searchModal.filters.date.
|
|
59
|
+
text: a("searchModal.filters.date.last7days"),
|
|
60
60
|
range: {
|
|
61
|
-
createdAtFrom: f(
|
|
61
|
+
createdAtFrom: f(x(/* @__PURE__ */ new Date(), 7)).getTime(),
|
|
62
62
|
createdAtTo: u(/* @__PURE__ */ new Date()).getTime()
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
icon: /* @__PURE__ */ t(l, {}),
|
|
67
|
-
text: a("searchModal.filters.date.
|
|
67
|
+
text: a("searchModal.filters.date.last30days"),
|
|
68
68
|
range: {
|
|
69
|
-
createdAtFrom: f(
|
|
69
|
+
createdAtFrom: f(x(/* @__PURE__ */ new Date(), 30)).getTime(),
|
|
70
70
|
createdAtTo: u(/* @__PURE__ */ new Date()).getTime()
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -94,13 +94,13 @@ const J = ({ setSelectedFilter: i, selectedFilter: s }) => {
|
|
|
94
94
|
radius: "lg",
|
|
95
95
|
children: [
|
|
96
96
|
/* @__PURE__ */ t(l, { size: 16 }),
|
|
97
|
-
o[0] && o[1] ? `${
|
|
98
|
-
/* @__PURE__ */ t(
|
|
97
|
+
o[0] && o[1] ? `${b(o[0], "dd MMM yyyy")} — ${b(o[1], "dd MMM yyyy")}` : a("searchModal.filters.date.title"),
|
|
98
|
+
/* @__PURE__ */ t(D, { size: 16 })
|
|
99
99
|
]
|
|
100
100
|
}
|
|
101
101
|
) }),
|
|
102
|
-
/* @__PURE__ */ t(m.Dropdown, { p: 4, w: 270, children: /* @__PURE__ */ n(
|
|
103
|
-
/* @__PURE__ */ n(
|
|
102
|
+
/* @__PURE__ */ t(m.Dropdown, { p: 4, w: 270, children: /* @__PURE__ */ n(w, { gap: 0, direction: "column", justify: "start", children: [
|
|
103
|
+
/* @__PURE__ */ n(w, { justify: "space-between", w: "100%", children: [
|
|
104
104
|
/* @__PURE__ */ t(
|
|
105
105
|
O,
|
|
106
106
|
{
|
|
@@ -124,7 +124,7 @@ const J = ({ setSelectedFilter: i, selectedFilter: s }) => {
|
|
|
124
124
|
withCheckIcon: !1,
|
|
125
125
|
value: h,
|
|
126
126
|
leftSection: /* @__PURE__ */ t(R, { size: 12 }),
|
|
127
|
-
rightSection: /* @__PURE__ */ t(
|
|
127
|
+
rightSection: /* @__PURE__ */ t(D, { size: 12 }),
|
|
128
128
|
fz: "xs",
|
|
129
129
|
px: 12,
|
|
130
130
|
c: "dimmed",
|
|
@@ -142,7 +142,7 @@ const J = ({ setSelectedFilter: i, selectedFilter: s }) => {
|
|
|
142
142
|
}
|
|
143
143
|
),
|
|
144
144
|
/* @__PURE__ */ t(
|
|
145
|
-
|
|
145
|
+
A,
|
|
146
146
|
{
|
|
147
147
|
px: 12,
|
|
148
148
|
w: "30%",
|
|
@@ -153,9 +153,9 @@ const J = ({ setSelectedFilter: i, selectedFilter: s }) => {
|
|
|
153
153
|
}
|
|
154
154
|
)
|
|
155
155
|
] }),
|
|
156
|
-
/* @__PURE__ */ t(
|
|
156
|
+
/* @__PURE__ */ t(T, { w: "100%" }),
|
|
157
157
|
k.map((e) => /* @__PURE__ */ t(
|
|
158
|
-
|
|
158
|
+
A,
|
|
159
159
|
{
|
|
160
160
|
h: 32,
|
|
161
161
|
fullWidth: !0,
|
|
@@ -177,7 +177,7 @@ const J = ({ setSelectedFilter: i, selectedFilter: s }) => {
|
|
|
177
177
|
},
|
|
178
178
|
e.text
|
|
179
179
|
)),
|
|
180
|
-
/* @__PURE__ */ t(
|
|
180
|
+
/* @__PURE__ */ t(T, { w: "100%" }),
|
|
181
181
|
/* @__PURE__ */ t(
|
|
182
182
|
E,
|
|
183
183
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchHelp.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchFilters/components/SearchHelp.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchHelp.d.ts","sourceRoot":"","sources":["../../../../src/components/SearchFilters/components/SearchHelp.tsx"],"names":[],"mappings":"AAgBA,eAAO,MAAM,mBAAmB,YAE/B,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAEhC,CAAC;AA2FF,eAAO,MAAM,eAAe,oFA4B1B,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as r, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
import { memo as i } from "react";
|
|
3
3
|
import { useTranslation as c } from "react-i18next";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const p =
|
|
4
|
+
import { Modal as n, Stack as l, Text as s, Group as h } from "@mantine/core";
|
|
5
|
+
import { create as m } from "zustand";
|
|
6
|
+
import { CustomKBD as x } from "../../CustomKBD/index.js";
|
|
7
|
+
const p = m(() => ({
|
|
8
8
|
opened: !1
|
|
9
9
|
})), g = () => {
|
|
10
10
|
p.setState({ opened: !0 });
|
|
@@ -71,9 +71,9 @@ const p = x(() => ({
|
|
|
71
71
|
];
|
|
72
72
|
return /* @__PURE__ */ t(l, { gap: "sm", children: [
|
|
73
73
|
/* @__PURE__ */ r(s, { size: "xs", c: "dimmed", children: e("searchModal.help.description") }),
|
|
74
|
-
/* @__PURE__ */ r(l, { gap: 0, pb: 12, px: 8, children: a.map((o, d) => /* @__PURE__ */ t(
|
|
74
|
+
/* @__PURE__ */ r(l, { gap: 0, pb: 12, px: 8, children: a.map((o, d) => /* @__PURE__ */ t(h, { h: 48, children: [
|
|
75
75
|
/* @__PURE__ */ r(
|
|
76
|
-
|
|
76
|
+
x,
|
|
77
77
|
{
|
|
78
78
|
bbw: 3,
|
|
79
79
|
br: 6,
|
|
@@ -90,7 +90,7 @@ const p = x(() => ({
|
|
|
90
90
|
}, k = i(() => {
|
|
91
91
|
const { t: e } = c("searchPage"), a = p((o) => o.opened);
|
|
92
92
|
return /* @__PURE__ */ r(
|
|
93
|
-
|
|
93
|
+
n,
|
|
94
94
|
{
|
|
95
95
|
opened: a,
|
|
96
96
|
title: e("searchModal.help.title"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortableList.d.ts","sourceRoot":"","sources":["../../../src/components/SortableList/SortableList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EACjB,MAAM,eAAe,CAAC;AASvB,OAAO,EAAc,YAAY,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,oBAAoB,CAAC;AAE5B,UAAU,QAAQ;IAChB,EAAE,EAAE,gBAAgB,CAAC;CACtB;AAED,UAAU,KAAK,CAAC,CAAC,SAAS,QAAQ;IAChC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC;IAC3B,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9C,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,QAAQ,EAAE,EAC/C,KAAK,EACL,QAAQ,EACR,UAAU,EACV,WAAW,EACX,SAAS,EACT,GAAO,GACR,EAAE,KAAK,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"SortableList.d.ts","sourceRoot":"","sources":["../../../src/components/SortableList/SortableList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASvC,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,gBAAgB,EACjB,MAAM,eAAe,CAAC;AASvB,OAAO,EAAc,YAAY,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,oBAAoB,CAAC;AAE5B,UAAU,QAAQ;IAChB,EAAE,EAAE,gBAAgB,CAAC;CACtB;AAED,UAAU,KAAK,CAAC,CAAC,SAAS,QAAQ;IAChC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,QAAQ,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC;IAC3B,UAAU,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/C,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC9C,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC1C,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,YAAY,CAAC,CAAC,SAAS,QAAQ,EAAE,EAC/C,KAAK,EACL,QAAQ,EACR,UAAU,EACV,WAAW,EACX,SAAS,EACT,GAAO,GACR,EAAE,KAAK,CAAC,CAAC,CAAC,2CA2CV;yBAlDe,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortableItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/SortableList/components/SortableItem/SortableItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAEV,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAoB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,oBAAoB,CAAC;AAE5B,UAAU,KAAK;IACb,EAAE,EAAE,gBAAgB,CAAC;CACtB;AAcD,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"SortableItem.d.ts","sourceRoot":"","sources":["../../../../../src/components/SortableList/components/SortableItem/SortableItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAE9D,OAAO,KAAK,EAEV,gBAAgB,EACjB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAoB,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,oBAAoB,CAAC;AAE5B,UAAU,KAAK;IACb,EAAE,EAAE,gBAAgB,CAAC;CACtB;AAcD,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,EAAE,iBAAiB,CAAC,KAAK,CAAC,2CAkCtE;AAED,wBAAgB,UAAU,CAAC,EACzB,SAAS,EACT,eAAe,GAChB,EAAE;IACD,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC,2CAwBA"}
|
|
@@ -35,15 +35,7 @@ function z({ children: o, id: n }) {
|
|
|
35
35
|
whiteSpace: "nowrap",
|
|
36
36
|
zIndex: m ? 9999 : void 0
|
|
37
37
|
};
|
|
38
|
-
return /* @__PURE__ */ r(a.Provider, { value: f, children: /* @__PURE__ */ r(
|
|
39
|
-
"li",
|
|
40
|
-
{
|
|
41
|
-
className: "SortableItem",
|
|
42
|
-
ref: i,
|
|
43
|
-
style: u,
|
|
44
|
-
children: o
|
|
45
|
-
}
|
|
46
|
-
) });
|
|
38
|
+
return /* @__PURE__ */ r(a.Provider, { value: f, children: /* @__PURE__ */ r("li", { className: "SortableItem", ref: i, style: u, children: o }) });
|
|
47
39
|
}
|
|
48
40
|
function D({
|
|
49
41
|
iconProps: o,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { DragHandle, SortableItem } from './SortableItem
|
|
1
|
+
export { DragHandle, SortableItem } from './SortableItem';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SortableList/components/SortableItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SortableList/components/SortableItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { StorageItem } from '../StorageUsageProgress';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
}
|
|
5
|
-
export declare const StorageEntityItem: ({ category, }: {
|
|
6
|
-
category: StorageEntityItemProps;
|
|
2
|
+
export declare const StorageEntityItem: ({ category }: {
|
|
3
|
+
category: StorageItem;
|
|
7
4
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export {};
|
|
9
5
|
//# sourceMappingURL=StorageEntityItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageEntityItem.d.ts","sourceRoot":"","sources":["../../../src/components/StorageUsageEntityList/StorageEntityItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"StorageEntityItem.d.ts","sourceRoot":"","sources":["../../../src/components/StorageUsageEntityList/StorageEntityItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,eAAO,MAAM,iBAAiB,GAAI,cAAc;IAAE,QAAQ,EAAE,WAAW,CAAA;CAAE,4CAaxE,CAAC"}
|
|
@@ -1,62 +1,22 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { Flex as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return g;
|
|
20
|
-
case "documents":
|
|
21
|
-
return p;
|
|
22
|
-
case "images":
|
|
23
|
-
return u;
|
|
24
|
-
case "videos":
|
|
25
|
-
return l;
|
|
26
|
-
default:
|
|
27
|
-
return f;
|
|
28
|
-
}
|
|
29
|
-
}, L = ({
|
|
30
|
-
category: r
|
|
31
|
-
}) => {
|
|
32
|
-
const { t: m } = n("settingsPage"), s = h(r.type);
|
|
33
|
-
return /* @__PURE__ */ e(
|
|
34
|
-
o,
|
|
35
|
-
{
|
|
36
|
-
h: 48,
|
|
37
|
-
w: "100%",
|
|
38
|
-
justify: "space-between",
|
|
39
|
-
align: "center",
|
|
40
|
-
px: 16,
|
|
41
|
-
style: {
|
|
42
|
-
border: "1px solid light-dark(var(--mantine-color-gray-2), var(--mantine-color-dark-4))",
|
|
43
|
-
borderRadius: "var(--mantine-radius-md)"
|
|
44
|
-
},
|
|
45
|
-
children: [
|
|
46
|
-
/* @__PURE__ */ e(o, { align: "center", gap: 8, children: [
|
|
47
|
-
/* @__PURE__ */ t(s, { width: 24, height: 24 }),
|
|
48
|
-
/* @__PURE__ */ t(i, { fz: 14, children: m(`workspace.categories.${r.type}`) })
|
|
49
|
-
] }),
|
|
50
|
-
/* @__PURE__ */ e(i, { c: "dimmed", fz: 14, children: [
|
|
51
|
-
r.percentage,
|
|
52
|
-
"% (",
|
|
53
|
-
a(r.usedKb),
|
|
54
|
-
")"
|
|
55
|
-
] })
|
|
56
|
-
]
|
|
57
|
-
}
|
|
58
|
-
);
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as s } from "react-i18next";
|
|
3
|
+
import { Flex as i, Box as n, Text as a } from "@mantine/core";
|
|
4
|
+
import { storageCategoryColors as m } from "../../types/storageCategories.js";
|
|
5
|
+
const l = ({ category: t }) => {
|
|
6
|
+
const { t: e } = s("settingsPage");
|
|
7
|
+
return /* @__PURE__ */ o(i, { align: "center", gap: 6, children: [
|
|
8
|
+
/* @__PURE__ */ r(
|
|
9
|
+
n,
|
|
10
|
+
{
|
|
11
|
+
bdrs: "50%",
|
|
12
|
+
bg: m[t.type],
|
|
13
|
+
h: 10,
|
|
14
|
+
w: 10
|
|
15
|
+
}
|
|
16
|
+
),
|
|
17
|
+
/* @__PURE__ */ r(a, { size: "xs", children: e(`workspace.categories.${t.type}`) })
|
|
18
|
+
] });
|
|
59
19
|
};
|
|
60
20
|
export {
|
|
61
|
-
|
|
21
|
+
l as StorageEntityItem
|
|
62
22
|
};
|
|
@@ -3,6 +3,6 @@ interface StorageEntityListProps {
|
|
|
3
3
|
storageByCategory: StorageItem[];
|
|
4
4
|
totalStorageKb: number;
|
|
5
5
|
}
|
|
6
|
-
export declare const StorageEntityList: ({ storageByCategory,
|
|
6
|
+
export declare const StorageEntityList: ({ storageByCategory, }: StorageEntityListProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=StorageUsageEntityList.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StorageUsageEntityList.d.ts","sourceRoot":"","sources":["../../../src/components/StorageUsageEntityList/StorageUsageEntityList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,UAAU,sBAAsB;IAC9B,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,cAAc,EAAE,MAAM,CAAC;CACxB;
|
|
1
|
+
{"version":3,"file":"StorageUsageEntityList.d.ts","sourceRoot":"","sources":["../../../src/components/StorageUsageEntityList/StorageUsageEntityList.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,UAAU,sBAAsB;IAC9B,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,iBAAiB,GAAI,wBAE/B,sBAAsB,4CAQxB,CAAC"}
|
|
@@ -1,27 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Group as m } from "@mantine/core";
|
|
3
3
|
import { StorageEntityItem as p } from "./StorageEntityItem.js";
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
videos: 2,
|
|
8
|
-
audio: 3,
|
|
9
|
-
code: 4,
|
|
10
|
-
archives: 5,
|
|
11
|
-
other: 6
|
|
12
|
-
}, y = ({
|
|
13
|
-
storageByCategory: s,
|
|
14
|
-
totalStorageKb: c
|
|
15
|
-
}) => {
|
|
16
|
-
const n = s.map((t) => {
|
|
17
|
-
const e = t.usedKb / c * 100;
|
|
18
|
-
return {
|
|
19
|
-
...t,
|
|
20
|
-
percentage: parseFloat(e.toFixed(1))
|
|
21
|
-
};
|
|
22
|
-
}).sort((t, e) => r[t.type] - r[e.type]);
|
|
23
|
-
return /* @__PURE__ */ o(a, { gap: 12, children: n.map((t) => /* @__PURE__ */ o(p, { category: t }, t.type)) });
|
|
24
|
-
};
|
|
4
|
+
const n = ({
|
|
5
|
+
storageByCategory: o
|
|
6
|
+
}) => /* @__PURE__ */ r(m, { gap: "md", children: o.map((t) => /* @__PURE__ */ r(p, { category: t }, t.type)) });
|
|
25
7
|
export {
|
|
26
|
-
|
|
8
|
+
n as StorageEntityList
|
|
27
9
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { StorageCategory } from '../../types/storageCategories';
|
|
3
3
|
export interface StorageItem {
|
|
4
4
|
type: StorageCategory;
|
|
5
5
|
usedKb: number;
|
|
@@ -9,7 +9,7 @@ interface StorageUsageProgressProps {
|
|
|
9
9
|
color?: string;
|
|
10
10
|
storageByCategory: StorageItem[];
|
|
11
11
|
totalStorageKb: number;
|
|
12
|
-
size?: number;
|
|
12
|
+
size?: number | string;
|
|
13
13
|
}
|
|
14
14
|
export declare const StorageUsageProgress: React.FC<StorageUsageProgressProps>;
|
|
15
15
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StorageUsageProgress/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/StorageUsageProgress/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EACL,eAAe,EAEhB,MAAM,+BAA+B,CAAC;AAKvC,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,eAAe,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,yBAAyB;IACjC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AA6BD,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CA+DpE,CAAC"}
|