@layers-app/shared 0.4.4 → 0.4.6
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/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +72 -79
- package/dist/components/AppContainer/AppContainer.module.css.js +6 -6
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +46 -37
- package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Header.js +6 -5
- package/dist/components/AppContainer/components/Main.js +4 -4
- package/dist/components/AppContainer/components/SidebarToggleButton.d.ts.map +1 -1
- package/dist/components/AppContainer/components/SidebarToggleButton.js +25 -16
- package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
- package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
- package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +131 -121
- 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 +59 -56
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
- package/dist/components/AppContainer/types.d.ts +1 -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/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +33 -33
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +37 -37
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +54 -36
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +2 -0
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +84 -37
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
- package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +7 -7
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +138 -84
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
- package/dist/components/Chat/CallMessage/CallMessage.module.css.js +15 -0
- package/dist/components/Chat/CallMessage/index.d.ts +21 -0
- package/dist/components/Chat/CallMessage/index.d.ts.map +1 -0
- package/dist/components/Chat/CallMessage/index.js +49 -0
- package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +9 -0
- package/dist/components/Chat/ChatBubble/index.d.ts +14 -0
- package/dist/components/Chat/ChatBubble/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatBubble/index.js +32 -0
- package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +17 -0
- package/dist/components/Chat/ChatHeader/index.d.ts +42 -0
- package/dist/components/Chat/ChatHeader/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatHeader/index.js +78 -0
- package/dist/components/Chat/ChatInput/ChatInput.module.css.js +49 -0
- package/dist/components/Chat/ChatInput/index.d.ts +74 -0
- package/dist/components/Chat/ChatInput/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/index.js +288 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
- package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
- package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +15 -0
- package/dist/components/Chat/ChatLayout/index.d.ts +17 -0
- package/dist/components/Chat/ChatLayout/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatLayout/index.js +43 -0
- package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +21 -0
- package/dist/components/Chat/ChatMessage/index.d.ts +47 -0
- package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatMessage/index.js +206 -0
- package/dist/components/Chat/ChatPill/ChatPill.module.css.js +11 -0
- package/dist/components/Chat/ChatPill/index.d.ts +12 -0
- package/dist/components/Chat/ChatPill/index.d.ts.map +1 -0
- package/dist/components/Chat/ChatPill/index.js +21 -0
- package/dist/components/Chat/DayMeta/index.d.ts +11 -0
- package/dist/components/Chat/DayMeta/index.d.ts.map +1 -0
- package/dist/components/Chat/DayMeta/index.js +9 -0
- package/dist/components/Chat/DialogItem/DialogItem.module.css.js +17 -0
- package/dist/components/Chat/DialogItem/index.d.ts +41 -0
- package/dist/components/Chat/DialogItem/index.d.ts.map +1 -0
- package/dist/components/Chat/DialogItem/index.js +107 -0
- package/dist/components/Chat/DialogList/DialogList.module.css.js +7 -0
- package/dist/components/Chat/DialogList/index.d.ts +11 -0
- package/dist/components/Chat/DialogList/index.d.ts.map +1 -0
- package/dist/components/Chat/DialogList/index.js +19 -0
- package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +13 -0
- package/dist/components/Chat/MediaDocument/index.d.ts +15 -0
- package/dist/components/Chat/MediaDocument/index.d.ts.map +1 -0
- package/dist/components/Chat/MediaDocument/index.js +73 -0
- package/dist/components/Chat/MessageActions/MessageActions.module.css.js +7 -0
- package/dist/components/Chat/MessageActions/index.d.ts +23 -0
- package/dist/components/Chat/MessageActions/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageActions/index.js +68 -0
- package/dist/components/Chat/MessageAuthor/index.d.ts +20 -0
- package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageAuthor/index.js +36 -0
- package/dist/components/Chat/MessageForward/MessageForward.module.css.js +7 -0
- package/dist/components/Chat/MessageForward/index.d.ts +13 -0
- package/dist/components/Chat/MessageForward/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageForward/index.js +30 -0
- package/dist/components/Chat/MessageList/MessageList.module.css.js +21 -0
- package/dist/components/Chat/MessageList/index.d.ts +39 -0
- package/dist/components/Chat/MessageList/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageList/index.js +159 -0
- package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +13 -0
- package/dist/components/Chat/MessageMeta/index.d.ts +16 -0
- package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageMeta/index.js +33 -0
- package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +15 -0
- package/dist/components/Chat/MessageReactions/index.d.ts +32 -0
- package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageReactions/index.js +72 -0
- package/dist/components/Chat/MessageReply/MessageReply.module.css.js +15 -0
- package/dist/components/Chat/MessageReply/index.d.ts +15 -0
- package/dist/components/Chat/MessageReply/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageReply/index.js +40 -0
- package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +11 -0
- package/dist/components/Chat/MessageStatus/index.d.ts +14 -0
- package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -0
- package/dist/components/Chat/MessageStatus/index.js +68 -0
- package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +11 -0
- package/dist/components/Chat/ServiceMessage/index.d.ts +13 -0
- package/dist/components/Chat/ServiceMessage/index.d.ts.map +1 -0
- package/dist/components/Chat/ServiceMessage/index.js +21 -0
- package/dist/components/Chat/UnreadSeparator/index.d.ts +11 -0
- package/dist/components/Chat/UnreadSeparator/index.d.ts.map +1 -0
- package/dist/components/Chat/UnreadSeparator/index.js +13 -0
- package/dist/components/Chat/colors.d.ts +7 -0
- package/dist/components/Chat/colors.d.ts.map +1 -0
- package/dist/components/Chat/colors.js +30 -0
- package/dist/components/Chat/icons.d.ts +9 -0
- package/dist/components/Chat/icons.d.ts.map +1 -0
- package/dist/components/Chat/icons.js +49 -0
- package/dist/components/Chat/index.d.ts +24 -0
- package/dist/components/Chat/index.d.ts.map +1 -0
- package/dist/components/Chat/mock-data.d.ts +32 -0
- package/dist/components/Chat/mock-data.d.ts.map +1 -0
- package/dist/components/Chat/types.d.ts +159 -0
- package/dist/components/Chat/types.d.ts.map +1 -0
- package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
- package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPicker.module.css.js +32 -26
- package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerList.js +81 -68
- package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerToolbar.js +75 -70
- package/dist/components/ColorPicker/icons.js +5 -5
- package/dist/components/ColorPicker/types.d.ts +6 -0
- package/dist/components/ColorPicker/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/types.js +53 -11
- package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
- package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
- package/dist/components/ColorPicker/useRecentColors.js +43 -20
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommentComposer/types.js +9 -0
- 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 +2 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +23 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +126 -88
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +28 -25
- package/dist/components/EntityIcon.d.ts +1 -0
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +90 -33
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
- package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
- package/dist/components/ErrorPage/components/Error403.js +25 -21
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.d.ts +5 -1
- package/dist/components/ErrorPage/index.d.ts.map +1 -1
- package/dist/components/ErrorPage/index.js +17 -10
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +135 -161
- package/dist/components/FilePicker/FilePicker.module.css.js +8 -12
- package/dist/components/FilePicker/FilePickerGallery.js +13 -13
- package/dist/components/FilePicker/FilePickerGiphy.js +4 -4
- package/dist/components/FilePicker/FilePickerGoogleDrive.js +3 -3
- package/dist/components/FilePicker/FilePickerUnsplash.js +18 -18
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +55 -47
- 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/UploadFile/UploadFile.module.css.js +4 -4
- 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/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
- package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
- package/dist/components/NavMenu/NavMenu.d.ts +7 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +54 -44
- 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 +84 -84
- package/dist/components/NavMenu/types.d.ts +4 -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/PillTabs/PillTabs.d.ts +19 -0
- package/dist/components/PillTabs/PillTabs.d.ts.map +1 -0
- package/dist/components/PillTabs/PillTabs.js +50 -0
- package/dist/components/PillTabs/PillTabs.module.css.js +11 -0
- 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.module.css.js +4 -4
- package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
- package/dist/components/modals/RemoveConfirmModal.js +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/envConfig.d.ts +2 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +41 -37
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts +15 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +114 -72
- package/dist/helpers/showNotifications.module.css.js +16 -4
- package/dist/hooks/useUiPref.d.ts +2 -0
- package/dist/hooks/useUiPref.d.ts.map +1 -0
- package/dist/hooks/useUiPref.js +80 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +588 -527
- package/dist/lang/locales/ui_en.json.js +5 -5
- package/dist/lang/locales/ui_es.json.js +1 -1
- package/dist/lang/locales/ui_ru.json.js +1 -1
- package/docs/README.md +499 -499
- package/package.json +78 -75
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_page_4n9uu_5", u = "_figureContainer_4n9uu_31", g = "_figure_4n9uu_31", _ = "_figureA_4n9uu_57", a = "_figureB_4n9uu_65", n = "_grainOverlay_4n9uu_229", r = "_badgeWrap_4n9uu_253", i = "_badge0_4n9uu_309", t = "_badge1_4n9uu_319", d = "_badge2_4n9uu_337", o = "_badge3_4n9uu_355", b = {
|
|
2
2
|
page: e,
|
|
3
|
-
figureContainer:
|
|
4
|
-
figure:
|
|
5
|
-
figureA:
|
|
6
|
-
figureB:
|
|
7
|
-
grainOverlay:
|
|
8
|
-
badgeWrap:
|
|
3
|
+
figureContainer: u,
|
|
4
|
+
figure: g,
|
|
5
|
+
figureA: _,
|
|
6
|
+
figureB: a,
|
|
7
|
+
grainOverlay: n,
|
|
8
|
+
badgeWrap: r,
|
|
9
9
|
badge0: i,
|
|
10
10
|
badge1: t,
|
|
11
11
|
badge2: d,
|
|
@@ -16,12 +16,12 @@ export {
|
|
|
16
16
|
t as badge1,
|
|
17
17
|
d as badge2,
|
|
18
18
|
o as badge3,
|
|
19
|
-
|
|
19
|
+
r as badgeWrap,
|
|
20
20
|
b as default,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
g as figure,
|
|
22
|
+
_ as figureA,
|
|
23
|
+
a as figureB,
|
|
24
|
+
u as figureContainer,
|
|
25
|
+
n as grainOverlay,
|
|
26
26
|
e as page
|
|
27
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/AppContainer.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"AppContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/AppContainer.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;CACF;AA+FD,eAAO,MAAM,YAAY,uNA1EtB,iBAAiB;;;;;;;;CA6ElB,CAAC"}
|
|
@@ -1,100 +1,93 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { useMantineColorScheme as
|
|
4
|
-
import { isAppMode as
|
|
5
|
-
import { useQueryParam as
|
|
6
|
-
import { AppShell as
|
|
7
|
-
import { useMeetWidget as
|
|
8
|
-
import { AppsSidebar as
|
|
9
|
-
import { Header as
|
|
10
|
-
import { Main as
|
|
11
|
-
import
|
|
12
|
-
import { RightSidebar as
|
|
13
|
-
import { ToolSidebar as
|
|
14
|
-
import { ToolbarNewButton as
|
|
15
|
-
import { useAppContainerDataStore as
|
|
16
|
-
import { appContainerStore as
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
showMore: v = !0,
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect as N } from "react";
|
|
3
|
+
import { useMantineColorScheme as P, Stack as E, Flex as O } from "@mantine/core";
|
|
4
|
+
import { isAppMode as $ } from "../../helpers/isAppMode.js";
|
|
5
|
+
import { useQueryParam as F } from "../../hooks/useNumberQueryParam.js";
|
|
6
|
+
import { AppShell as o } from "../AppShell/AppShell.js";
|
|
7
|
+
import { useMeetWidget as K } from "./MeetWidgetContext.js";
|
|
8
|
+
import { AppsSidebar as Q } from "./components/AppsSidebar/AppsSidebar.js";
|
|
9
|
+
import { Header as R } from "./components/Header.js";
|
|
10
|
+
import { Main as _ } from "./components/Main.js";
|
|
11
|
+
import q from "./components/NavbarContent.js";
|
|
12
|
+
import { RightSidebar as z } from "./components/RightSidebar.js";
|
|
13
|
+
import { ToolSidebar as G } from "./components/ToolSidebar.js";
|
|
14
|
+
import { ToolbarNewButton as I } from "./components/ToolbarNewButton.js";
|
|
15
|
+
import { useAppContainerDataStore as J } from "./hooks/useAppContainerDataStore.js";
|
|
16
|
+
import { appContainerStore as L } from "./hooks/useAppContainerStore.js";
|
|
17
|
+
const U = ({
|
|
18
|
+
header: l,
|
|
19
|
+
content: d,
|
|
20
|
+
toolbar: i,
|
|
21
|
+
navbarTitle: h,
|
|
22
|
+
footer: n,
|
|
23
|
+
onTitleChange: c,
|
|
24
|
+
trashMenu: f,
|
|
25
|
+
rightbar: m,
|
|
26
|
+
onInviteClick: u,
|
|
27
|
+
showAppsSidebar: S = !0,
|
|
28
|
+
headerBorderless: b = !1,
|
|
29
|
+
withBg: x = !1,
|
|
30
|
+
isBeta: g = !1,
|
|
31
|
+
hideHeader: w = !1,
|
|
32
|
+
showSearch: C = !0,
|
|
33
|
+
showMore: A = !0,
|
|
35
34
|
showBorders: y = !0,
|
|
36
|
-
showLogo:
|
|
35
|
+
showLogo: M = !1
|
|
37
36
|
}) => {
|
|
38
|
-
const {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"--rightbar-width": `${N}px`
|
|
50
|
-
}, H = l !== "nothing" && !A, d = l === "default" && !!n, c = !d || !j;
|
|
51
|
-
return /* @__PURE__ */ o(t, { style: D, children: [
|
|
52
|
-
x && /* @__PURE__ */ e(t.Section, { w: "var(--apps-sidebar-width)", children: /* @__PURE__ */ e(
|
|
53
|
-
V,
|
|
37
|
+
const { toolbarWidth: W, rightbarWidth: k, layout: s } = L.useStore(), v = J((H) => H.user), a = $(v.mode, "DESKTOP"), { setColorScheme: p } = P(), t = F("theme"), T = K();
|
|
38
|
+
N(() => {
|
|
39
|
+
!a && (t === "dark" || t === "light") && p(t);
|
|
40
|
+
}, [t, p, a]);
|
|
41
|
+
const j = {
|
|
42
|
+
"--toolbar-width": `${W}px`,
|
|
43
|
+
"--rightbar-width": `${k}px`
|
|
44
|
+
}, B = s !== "nothing" && !w, D = s === "default" && !!i;
|
|
45
|
+
return /* @__PURE__ */ r(o, { style: j, children: [
|
|
46
|
+
S && /* @__PURE__ */ e(o.Section, { w: "var(--apps-sidebar-width)", children: /* @__PURE__ */ e(
|
|
47
|
+
Q,
|
|
54
48
|
{
|
|
55
|
-
onInviteClick:
|
|
56
|
-
trashMenu:
|
|
57
|
-
showSearch:
|
|
58
|
-
showMore:
|
|
49
|
+
onInviteClick: u,
|
|
50
|
+
trashMenu: f,
|
|
51
|
+
showSearch: C,
|
|
52
|
+
showMore: A,
|
|
59
53
|
showBorders: y,
|
|
60
|
-
showLogo:
|
|
54
|
+
showLogo: M
|
|
61
55
|
}
|
|
62
56
|
) }),
|
|
63
|
-
/* @__PURE__ */ o
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
/* @__PURE__ */ r(o.Section, { flex: 1, display: "flex", pos: "relative", children: [
|
|
58
|
+
D && /* @__PURE__ */ e(
|
|
59
|
+
G,
|
|
66
60
|
{
|
|
67
|
-
isBeta:
|
|
68
|
-
onTitleChange:
|
|
69
|
-
navbarTitle:
|
|
70
|
-
|
|
71
|
-
children: n
|
|
61
|
+
isBeta: g,
|
|
62
|
+
onTitleChange: c,
|
|
63
|
+
navbarTitle: h,
|
|
64
|
+
children: i
|
|
72
65
|
}
|
|
73
66
|
),
|
|
74
|
-
|
|
75
|
-
/* @__PURE__ */
|
|
76
|
-
|
|
77
|
-
|
|
67
|
+
T,
|
|
68
|
+
/* @__PURE__ */ r(E, { mih: 0, gap: 0, h: "100%", flex: 2, miw: 0, children: [
|
|
69
|
+
B && /* @__PURE__ */ e(
|
|
70
|
+
o.Header,
|
|
78
71
|
{
|
|
79
72
|
px: "sm",
|
|
80
|
-
style:
|
|
81
|
-
children: /* @__PURE__ */ e(
|
|
73
|
+
style: b ? { borderBottom: "none" } : void 0,
|
|
74
|
+
children: /* @__PURE__ */ e(R, { children: l })
|
|
82
75
|
}
|
|
83
76
|
),
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */ e(
|
|
86
|
-
|
|
87
|
-
|
|
77
|
+
/* @__PURE__ */ r(O, { mih: 0, gap: 0, h: "100%", children: [
|
|
78
|
+
/* @__PURE__ */ e(o.WorkContent, { children: /* @__PURE__ */ r(_, { withBg: x, children: [
|
|
79
|
+
d,
|
|
80
|
+
n && /* @__PURE__ */ e("footer", { children: n })
|
|
88
81
|
] }) }),
|
|
89
|
-
|
|
82
|
+
m && /* @__PURE__ */ e(z, { children: m })
|
|
90
83
|
] })
|
|
91
84
|
] })
|
|
92
85
|
] })
|
|
93
86
|
] });
|
|
94
|
-
},
|
|
95
|
-
NavbarContent:
|
|
96
|
-
NewButton:
|
|
87
|
+
}, he = Object.assign(U, {
|
|
88
|
+
NavbarContent: q,
|
|
89
|
+
NewButton: I
|
|
97
90
|
});
|
|
98
91
|
export {
|
|
99
|
-
|
|
92
|
+
he as AppContainer
|
|
100
93
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const t = "
|
|
1
|
+
const t = "_toolTitleInput_1nq45_37", n = "_appSidebarButton_1nq45_67", e = "_sidebarSyncStatus_1nq45_109", o = "_slideContainer_1nq45_121", s = "_slideContent_1nq45_133", i = "_main_1nq45_163", a = {
|
|
2
2
|
toolTitleInput: t,
|
|
3
3
|
appSidebarButton: n,
|
|
4
|
+
sidebarSyncStatus: e,
|
|
4
5
|
slideContainer: o,
|
|
5
|
-
slideContent:
|
|
6
|
-
main: i
|
|
7
|
-
floatingMeetSlot: l
|
|
6
|
+
slideContent: s,
|
|
7
|
+
main: i
|
|
8
8
|
};
|
|
9
9
|
export {
|
|
10
10
|
n as appSidebarButton,
|
|
11
11
|
a as default,
|
|
12
|
-
l as floatingMeetSlot,
|
|
13
12
|
i as main,
|
|
13
|
+
e as sidebarSyncStatus,
|
|
14
14
|
o as slideContainer,
|
|
15
|
-
|
|
15
|
+
s as slideContent,
|
|
16
16
|
t as toolTitleInput
|
|
17
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/TopSection.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,GAAI,2BAGxB;IACD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,
|
|
1
|
+
{"version":3,"file":"TopSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/TopSection.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,GAAI,2BAGxB;IACD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,4CAsEA,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsxs as s, jsx as
|
|
1
|
+
import { jsxs as s, jsx as i } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as u } from "react-i18next";
|
|
3
|
-
import { Search01Icon as b, Notification02Icon as
|
|
3
|
+
import { Search01Icon as b, Notification02Icon as g } from "@hugeicons/core-free-icons";
|
|
4
4
|
import { HugeiconsIcon as p } from "@hugeicons/react";
|
|
5
|
-
import { Stack as w, ActionIcon as
|
|
6
|
-
import { isFeature as
|
|
5
|
+
import { Stack as w, ActionIcon as k, Tooltip as a, Menu as n } from "@mantine/core";
|
|
6
|
+
import { isFeature as v } from "../../../../helpers/feature.js";
|
|
7
7
|
import { openSearchModal as y } from "../../../../store/searchModal.js";
|
|
8
8
|
import { Notification as A } from "../../../Notification/Notification.js";
|
|
9
9
|
import { WorkspaceAvatar as l } from "../../../WorkspaceAvatar/WorkspaceAvatar.js";
|
|
@@ -14,62 +14,64 @@ const H = ({
|
|
|
14
14
|
showSearch: d = !0,
|
|
15
15
|
showLogo: h = !1
|
|
16
16
|
}) => {
|
|
17
|
-
const { t:
|
|
17
|
+
const { t: o } = u("appContainer"), { workspaceMenu: r, isAnonym: t, publicMode: c, navbarDisplayFormat: f } = z(), e = f === "iconsAndLabels";
|
|
18
18
|
return /* @__PURE__ */ s(w, { gap: 8, align: "center", pb: 8, children: [
|
|
19
|
-
h ? /* @__PURE__ */
|
|
19
|
+
h ? /* @__PURE__ */ i(l, { size: 36 }) : /* @__PURE__ */ i(
|
|
20
20
|
S,
|
|
21
21
|
{
|
|
22
22
|
...r,
|
|
23
23
|
isAnonym: t,
|
|
24
24
|
publicMode: c,
|
|
25
|
-
children: /* @__PURE__ */
|
|
26
|
-
|
|
25
|
+
children: /* @__PURE__ */ i(
|
|
26
|
+
k,
|
|
27
27
|
{
|
|
28
|
+
"data-cy": "workspace-menu-trigger",
|
|
29
|
+
"data-testid": "workspace-menu-trigger",
|
|
28
30
|
size: "lg",
|
|
29
31
|
variant: "transparent",
|
|
30
32
|
style: { overflow: "visible" },
|
|
31
|
-
children: /* @__PURE__ */
|
|
32
|
-
|
|
33
|
+
children: /* @__PURE__ */ i(
|
|
34
|
+
a,
|
|
33
35
|
{
|
|
34
36
|
label: r.active?.workspaceName,
|
|
35
37
|
disabled: !r.active?.workspaceName,
|
|
36
38
|
openDelay: 400,
|
|
37
39
|
position: "right",
|
|
38
40
|
withArrow: !0,
|
|
39
|
-
children: /* @__PURE__ */
|
|
41
|
+
children: /* @__PURE__ */ i(l, { workspace: r.active, size: 36 })
|
|
40
42
|
}
|
|
41
43
|
)
|
|
42
44
|
}
|
|
43
45
|
)
|
|
44
46
|
}
|
|
45
47
|
),
|
|
46
|
-
d && !t && !c && /* @__PURE__ */
|
|
48
|
+
d && !t && !c && /* @__PURE__ */ i(a, { label: o("search"), position: "right", disabled: e, children: /* @__PURE__ */ i(
|
|
47
49
|
m,
|
|
48
50
|
{
|
|
49
|
-
title: e ?
|
|
50
|
-
icon: /* @__PURE__ */
|
|
51
|
+
title: e ? o("search") : null,
|
|
52
|
+
icon: /* @__PURE__ */ i(p, { icon: b, size: 20 }),
|
|
51
53
|
onClick: () => {
|
|
52
54
|
y();
|
|
53
55
|
}
|
|
54
56
|
}
|
|
55
57
|
) }),
|
|
56
|
-
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
58
|
+
v() && !t && /* @__PURE__ */ s(n, { position: "right-start", children: [
|
|
59
|
+
/* @__PURE__ */ i(n.Target, { children: /* @__PURE__ */ i(
|
|
60
|
+
a,
|
|
59
61
|
{
|
|
60
|
-
label:
|
|
62
|
+
label: o("activity"),
|
|
61
63
|
position: "right",
|
|
62
64
|
disabled: e,
|
|
63
|
-
children: /* @__PURE__ */
|
|
65
|
+
children: /* @__PURE__ */ i(
|
|
64
66
|
m,
|
|
65
67
|
{
|
|
66
|
-
title: e ?
|
|
67
|
-
icon: /* @__PURE__ */
|
|
68
|
+
title: e ? o("activity") : null,
|
|
69
|
+
icon: /* @__PURE__ */ i(p, { icon: g, size: 20 })
|
|
68
70
|
}
|
|
69
71
|
)
|
|
70
72
|
}
|
|
71
73
|
) }),
|
|
72
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ i(n.Dropdown, { px: 4, py: 0, w: 440, children: /* @__PURE__ */ i(A, {}) })
|
|
73
75
|
] })
|
|
74
76
|
] });
|
|
75
77
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"AAwBA,eAAO,MAAM,WAAW,GAAI,4CAIzB;IACD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,4CAoHA,CAAC"}
|
|
@@ -1,27 +1,35 @@
|
|
|
1
1
|
import { jsxs as n, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation as
|
|
2
|
+
import { useTranslation as M } from "react-i18next";
|
|
3
3
|
import { Link as x } from "react-router-dom";
|
|
4
4
|
import { Delete03Icon as A, UserAdd02Icon as D, HelpCircleIcon as z } from "@hugeicons/core-free-icons";
|
|
5
|
-
import { HugeiconsIcon as
|
|
6
|
-
import { Stack as
|
|
7
|
-
import { IconUserCircle as
|
|
8
|
-
import { usePlatform as
|
|
9
|
-
import { useTrashModalStore as
|
|
10
|
-
import { useAppContainerDataStore as
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
|
|
5
|
+
import { HugeiconsIcon as a } from "@hugeicons/react";
|
|
6
|
+
import { Stack as c, Menu as r, Tooltip as s, ActionIcon as C } from "@mantine/core";
|
|
7
|
+
import { IconUserCircle as U } from "@tabler/icons-react";
|
|
8
|
+
import { usePlatform as L } from "../../../../hooks/usePlatform.js";
|
|
9
|
+
import { useTrashModalStore as j, openTrashModal as H, closeTrashModal as k } from "../../../../store/trashModal.js";
|
|
10
|
+
import { useAppContainerDataStore as B } from "../../hooks/useAppContainerDataStore.js";
|
|
11
|
+
import F from "../../AppContainer.module.css.js";
|
|
12
|
+
import { AppSidebarButton as p } from "../AppSidebarButton.js";
|
|
13
|
+
import { HelpMenu as G } from "../menus/HelpMenu/HelpMenu.js";
|
|
14
|
+
import { MenuUserDropdown as N } from "../menus/UserMenu/MenuUserDropdown.js";
|
|
15
|
+
const $ = ({
|
|
15
16
|
trashMenu: d,
|
|
16
17
|
onInviteClick: h,
|
|
17
|
-
showBorders:
|
|
18
|
+
showBorders: S = !0
|
|
18
19
|
}) => {
|
|
19
|
-
const { t: e } =
|
|
20
|
+
const { t: e } = M("appContainer"), w = L(), {
|
|
21
|
+
user: m,
|
|
22
|
+
isAnonym: t,
|
|
23
|
+
userMenuItems: T,
|
|
24
|
+
publicMode: f,
|
|
25
|
+
navbarDisplayFormat: v,
|
|
26
|
+
syncStatusSlot: u
|
|
27
|
+
} = B(), y = j((l) => l.opened), g = !t && !f && m.role !== "mG" && d, b = !t && w.has("inviteUsers") && h, i = v === "iconsAndLabels", I = !t && !f && u;
|
|
20
28
|
return /* @__PURE__ */ n(
|
|
21
|
-
|
|
29
|
+
c,
|
|
22
30
|
{
|
|
23
31
|
style: {
|
|
24
|
-
borderTop:
|
|
32
|
+
borderTop: S ? "1px solid var(--app-shell-border)" : void 0
|
|
25
33
|
},
|
|
26
34
|
flex: 1,
|
|
27
35
|
pt: 8,
|
|
@@ -29,34 +37,34 @@ const X = ({
|
|
|
29
37
|
align: "center",
|
|
30
38
|
children: [
|
|
31
39
|
/* @__PURE__ */ n(
|
|
32
|
-
|
|
40
|
+
c,
|
|
33
41
|
{
|
|
34
|
-
justify: !
|
|
42
|
+
justify: !g && !b ? "end" : "space-between",
|
|
35
43
|
gap: 8,
|
|
36
44
|
flex: 1,
|
|
37
45
|
children: [
|
|
38
|
-
|
|
46
|
+
g && /* @__PURE__ */ n(
|
|
39
47
|
r,
|
|
40
48
|
{
|
|
41
49
|
position: "right",
|
|
42
50
|
offset: 6,
|
|
43
51
|
width: 360,
|
|
44
|
-
opened:
|
|
45
|
-
onChange: (
|
|
46
|
-
|
|
52
|
+
opened: y,
|
|
53
|
+
onChange: (l) => {
|
|
54
|
+
l ? H() : k();
|
|
47
55
|
},
|
|
48
56
|
children: [
|
|
49
57
|
/* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(
|
|
50
|
-
|
|
58
|
+
s,
|
|
51
59
|
{
|
|
52
60
|
label: e("trash"),
|
|
53
61
|
position: "right",
|
|
54
62
|
disabled: i,
|
|
55
63
|
children: /* @__PURE__ */ o(
|
|
56
|
-
|
|
64
|
+
p,
|
|
57
65
|
{
|
|
58
66
|
title: i ? e("trash") : null,
|
|
59
|
-
icon: /* @__PURE__ */ o(
|
|
67
|
+
icon: /* @__PURE__ */ o(a, { icon: A, size: 20 })
|
|
60
68
|
}
|
|
61
69
|
)
|
|
62
70
|
}
|
|
@@ -65,34 +73,35 @@ const X = ({
|
|
|
65
73
|
]
|
|
66
74
|
}
|
|
67
75
|
),
|
|
68
|
-
/* @__PURE__ */ n(
|
|
69
|
-
|
|
70
|
-
|
|
76
|
+
/* @__PURE__ */ n(c, { gap: 8, children: [
|
|
77
|
+
b && /* @__PURE__ */ o(s, { label: e("invite"), position: "right", disabled: i, children: /* @__PURE__ */ o(
|
|
78
|
+
p,
|
|
71
79
|
{
|
|
72
80
|
title: i ? e("invite") : null,
|
|
73
|
-
icon: /* @__PURE__ */ o(
|
|
81
|
+
icon: /* @__PURE__ */ o(a, { icon: D, size: 20 }),
|
|
74
82
|
onClick: h
|
|
75
83
|
}
|
|
76
84
|
) }),
|
|
77
85
|
/* @__PURE__ */ n(r, { position: "right-end", offset: 6, width: 260, children: [
|
|
78
|
-
/* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(
|
|
79
|
-
|
|
86
|
+
/* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(s, { label: e("help"), position: "right", disabled: i, children: /* @__PURE__ */ o(
|
|
87
|
+
p,
|
|
80
88
|
{
|
|
81
89
|
title: i ? e("help") : null,
|
|
82
|
-
icon: /* @__PURE__ */ o(
|
|
90
|
+
icon: /* @__PURE__ */ o(a, { icon: z, size: 20 })
|
|
83
91
|
}
|
|
84
92
|
) }) }),
|
|
85
|
-
/* @__PURE__ */ o(r.Dropdown, { children: /* @__PURE__ */ o(
|
|
86
|
-
] })
|
|
93
|
+
/* @__PURE__ */ o(r.Dropdown, { children: /* @__PURE__ */ o(G, {}) })
|
|
94
|
+
] }),
|
|
95
|
+
I && /* @__PURE__ */ o("div", { className: F.sidebarSyncStatus, children: u })
|
|
87
96
|
] })
|
|
88
97
|
]
|
|
89
98
|
}
|
|
90
99
|
),
|
|
91
|
-
|
|
92
|
-
|
|
100
|
+
t ? /* @__PURE__ */ o(x, { to: "/login", children: /* @__PURE__ */ o(s, { label: "Log in", position: "right", children: /* @__PURE__ */ o(C, { size: "lg", variant: "light", children: /* @__PURE__ */ o(U, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
|
|
101
|
+
N,
|
|
93
102
|
{
|
|
94
103
|
user: m,
|
|
95
|
-
menuItems:
|
|
104
|
+
menuItems: T,
|
|
96
105
|
position: "right-end"
|
|
97
106
|
}
|
|
98
107
|
)
|
|
@@ -101,5 +110,5 @@ const X = ({
|
|
|
101
110
|
);
|
|
102
111
|
};
|
|
103
112
|
export {
|
|
104
|
-
|
|
113
|
+
$ as UserSection
|
|
105
114
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Header.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/Header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAM1C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;CACF;AAED,eAAO,MAAM,MAAM,GAAI,cAAc,iBAAiB,4CAOrD,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsxs as e,
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { jsxs as e, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Flex as t } from "@mantine/core";
|
|
3
|
+
import { SidebarToggleButton as i } from "./SidebarToggleButton.js";
|
|
4
|
+
const a = ({ children: r }) => /* @__PURE__ */ e(t, { align: "center", gap: 8, h: "100%", w: "100%", miw: 0, children: [
|
|
5
|
+
/* @__PURE__ */ o(i, { forOpen: !0 }),
|
|
5
6
|
r
|
|
6
7
|
] });
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
+
a as Header
|
|
9
10
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { appContainerStore as n } from "../hooks/useAppContainerStore.js";
|
|
3
3
|
import s from "../AppContainer.module.css.js";
|
|
4
|
-
const p = ({ children: o, withBg:
|
|
5
|
-
const
|
|
4
|
+
const p = ({ children: o, withBg: r = !1 }) => {
|
|
5
|
+
const a = n.useStore((t) => t.showToolbar);
|
|
6
6
|
return /* @__PURE__ */ e(
|
|
7
7
|
"main",
|
|
8
8
|
{
|
|
9
9
|
className: s.main,
|
|
10
|
-
"data-tool-sidebar-opened":
|
|
10
|
+
"data-tool-sidebar-opened": a,
|
|
11
11
|
"data-app-container": !0,
|
|
12
12
|
style: {
|
|
13
|
-
backgroundColor:
|
|
13
|
+
backgroundColor: r ? "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5))" : "unset"
|
|
14
14
|
},
|
|
15
15
|
children: o
|
|
16
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarToggleButton.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/SidebarToggleButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SidebarToggleButton.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/SidebarToggleButton.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,mBAAmB,GAAI,aAAa;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,mDAyBrE,CAAC"}
|
|
@@ -1,27 +1,36 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { useTranslation as n } from "react-i18next";
|
|
3
|
+
import { SidebarLeft01Icon as a, SidebarRight01Icon as l } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as p } from "@hugeicons/react";
|
|
5
|
+
import { Tooltip as c, ActionIcon as m } from "@mantine/core";
|
|
6
|
+
import { appContainerStore as e } from "../hooks/useAppContainerStore.js";
|
|
7
|
+
const h = ({ forOpen: i }) => {
|
|
8
|
+
const { t } = n("appContainer"), { showToolbar: o } = e.useStore();
|
|
9
|
+
return i && o ? null : /* @__PURE__ */ r(
|
|
10
|
+
c,
|
|
10
11
|
{
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
onClick: t.api.toggleToolbar,
|
|
12
|
+
label: t(o ? "hideSidebar" : "showSidebar"),
|
|
13
|
+
withArrow: !0,
|
|
14
|
+
openDelay: 400,
|
|
15
15
|
children: /* @__PURE__ */ r(
|
|
16
|
-
|
|
16
|
+
m,
|
|
17
17
|
{
|
|
18
|
-
|
|
19
|
-
size:
|
|
18
|
+
variant: "subtle",
|
|
19
|
+
size: "md",
|
|
20
|
+
color: "gray",
|
|
21
|
+
onClick: e.api.toggleToolbar,
|
|
22
|
+
children: /* @__PURE__ */ r(
|
|
23
|
+
p,
|
|
24
|
+
{
|
|
25
|
+
icon: o ? a : l,
|
|
26
|
+
size: 20
|
|
27
|
+
}
|
|
28
|
+
)
|
|
20
29
|
}
|
|
21
30
|
)
|
|
22
31
|
}
|
|
23
32
|
);
|
|
24
33
|
};
|
|
25
34
|
export {
|
|
26
|
-
|
|
35
|
+
h as SidebarToggleButton
|
|
27
36
|
};
|
|
@@ -3,13 +3,13 @@ import { useIsFirstRender as a } from "@mantine/hooks";
|
|
|
3
3
|
import { AnimatePresence as m, motion as d } from "framer-motion";
|
|
4
4
|
import t from "../AppContainer.module.css.js";
|
|
5
5
|
const u = ({
|
|
6
|
-
children:
|
|
7
|
-
show:
|
|
6
|
+
children: n,
|
|
7
|
+
show: s,
|
|
8
8
|
width: e,
|
|
9
9
|
position: r
|
|
10
10
|
}) => {
|
|
11
11
|
const o = a();
|
|
12
|
-
return /* @__PURE__ */ i(m, { children:
|
|
12
|
+
return /* @__PURE__ */ i(m, { children: s && /* @__PURE__ */ i(
|
|
13
13
|
d.div,
|
|
14
14
|
{
|
|
15
15
|
className: t.slideContainer,
|
|
@@ -32,7 +32,7 @@ const u = ({
|
|
|
32
32
|
className: t.slideContent,
|
|
33
33
|
style: { width: e },
|
|
34
34
|
"data-position": r,
|
|
35
|
-
children:
|
|
35
|
+
children: n
|
|
36
36
|
}
|
|
37
37
|
)
|
|
38
38
|
}
|