@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.
Files changed (256) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +13 -13
  2. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  3. package/dist/components/AppContainer/AppContainer.js +72 -79
  4. package/dist/components/AppContainer/AppContainer.module.css.js +6 -6
  5. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  6. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +24 -22
  7. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  8. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +46 -37
  9. package/dist/components/AppContainer/components/Header.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/Header.js +6 -5
  11. package/dist/components/AppContainer/components/Main.js +4 -4
  12. package/dist/components/AppContainer/components/SidebarToggleButton.d.ts.map +1 -1
  13. package/dist/components/AppContainer/components/SidebarToggleButton.js +25 -16
  14. package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
  15. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  16. package/dist/components/AppContainer/components/ToolSidebar.js +161 -128
  17. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  18. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +131 -121
  19. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  20. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  21. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  22. package/dist/components/AppContainer/hooks/useAppContainer.js +59 -56
  23. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  24. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +4 -3
  25. package/dist/components/AppContainer/types.d.ts +1 -0
  26. package/dist/components/AppContainer/types.d.ts.map +1 -1
  27. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  28. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  29. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +33 -33
  30. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
  31. package/dist/components/AttachmentsGalleryModal/components/ModalHeader.js +37 -37
  32. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
  33. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +54 -36
  34. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  35. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +2 -0
  36. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  37. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +84 -37
  38. package/dist/components/AttachmentsGalleryModal/helpers.d.ts +8 -0
  39. package/dist/components/AttachmentsGalleryModal/helpers.d.ts.map +1 -1
  40. package/dist/components/AttachmentsGalleryModal/helpers.js +22 -17
  41. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
  42. package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.js +28 -25
  43. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  44. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +36 -41
  45. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +7 -7
  46. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  47. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +138 -84
  48. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +24 -14
  49. package/dist/components/BouncingLogo/BouncingLogo.d.ts +1 -3
  50. package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
  51. package/dist/components/BouncingLogo/BouncingLogo.js +14 -20
  52. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +4 -8
  53. package/dist/components/Chat/CallMessage/CallMessage.module.css.js +15 -0
  54. package/dist/components/Chat/CallMessage/index.d.ts +21 -0
  55. package/dist/components/Chat/CallMessage/index.d.ts.map +1 -0
  56. package/dist/components/Chat/CallMessage/index.js +49 -0
  57. package/dist/components/Chat/ChatBubble/ChatBubble.module.css.js +9 -0
  58. package/dist/components/Chat/ChatBubble/index.d.ts +14 -0
  59. package/dist/components/Chat/ChatBubble/index.d.ts.map +1 -0
  60. package/dist/components/Chat/ChatBubble/index.js +32 -0
  61. package/dist/components/Chat/ChatHeader/ChatHeader.module.css.js +17 -0
  62. package/dist/components/Chat/ChatHeader/index.d.ts +42 -0
  63. package/dist/components/Chat/ChatHeader/index.d.ts.map +1 -0
  64. package/dist/components/Chat/ChatHeader/index.js +78 -0
  65. package/dist/components/Chat/ChatInput/ChatInput.module.css.js +49 -0
  66. package/dist/components/Chat/ChatInput/index.d.ts +74 -0
  67. package/dist/components/Chat/ChatInput/index.d.ts.map +1 -0
  68. package/dist/components/Chat/ChatInput/index.js +288 -0
  69. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts +3 -0
  70. package/dist/components/Chat/ChatInput/smilePlusIcon.d.ts.map +1 -0
  71. package/dist/components/Chat/ChatInput/smilePlusIcon.js +49 -0
  72. package/dist/components/Chat/ChatLayout/ChatLayout.module.css.js +15 -0
  73. package/dist/components/Chat/ChatLayout/index.d.ts +17 -0
  74. package/dist/components/Chat/ChatLayout/index.d.ts.map +1 -0
  75. package/dist/components/Chat/ChatLayout/index.js +43 -0
  76. package/dist/components/Chat/ChatMessage/ChatMessage.module.css.js +21 -0
  77. package/dist/components/Chat/ChatMessage/index.d.ts +47 -0
  78. package/dist/components/Chat/ChatMessage/index.d.ts.map +1 -0
  79. package/dist/components/Chat/ChatMessage/index.js +206 -0
  80. package/dist/components/Chat/ChatPill/ChatPill.module.css.js +11 -0
  81. package/dist/components/Chat/ChatPill/index.d.ts +12 -0
  82. package/dist/components/Chat/ChatPill/index.d.ts.map +1 -0
  83. package/dist/components/Chat/ChatPill/index.js +21 -0
  84. package/dist/components/Chat/DayMeta/index.d.ts +11 -0
  85. package/dist/components/Chat/DayMeta/index.d.ts.map +1 -0
  86. package/dist/components/Chat/DayMeta/index.js +9 -0
  87. package/dist/components/Chat/DialogItem/DialogItem.module.css.js +17 -0
  88. package/dist/components/Chat/DialogItem/index.d.ts +41 -0
  89. package/dist/components/Chat/DialogItem/index.d.ts.map +1 -0
  90. package/dist/components/Chat/DialogItem/index.js +107 -0
  91. package/dist/components/Chat/DialogList/DialogList.module.css.js +7 -0
  92. package/dist/components/Chat/DialogList/index.d.ts +11 -0
  93. package/dist/components/Chat/DialogList/index.d.ts.map +1 -0
  94. package/dist/components/Chat/DialogList/index.js +19 -0
  95. package/dist/components/Chat/MediaDocument/MediaDocument.module.css.js +13 -0
  96. package/dist/components/Chat/MediaDocument/index.d.ts +15 -0
  97. package/dist/components/Chat/MediaDocument/index.d.ts.map +1 -0
  98. package/dist/components/Chat/MediaDocument/index.js +73 -0
  99. package/dist/components/Chat/MessageActions/MessageActions.module.css.js +7 -0
  100. package/dist/components/Chat/MessageActions/index.d.ts +23 -0
  101. package/dist/components/Chat/MessageActions/index.d.ts.map +1 -0
  102. package/dist/components/Chat/MessageActions/index.js +68 -0
  103. package/dist/components/Chat/MessageAuthor/index.d.ts +20 -0
  104. package/dist/components/Chat/MessageAuthor/index.d.ts.map +1 -0
  105. package/dist/components/Chat/MessageAuthor/index.js +36 -0
  106. package/dist/components/Chat/MessageForward/MessageForward.module.css.js +7 -0
  107. package/dist/components/Chat/MessageForward/index.d.ts +13 -0
  108. package/dist/components/Chat/MessageForward/index.d.ts.map +1 -0
  109. package/dist/components/Chat/MessageForward/index.js +30 -0
  110. package/dist/components/Chat/MessageList/MessageList.module.css.js +21 -0
  111. package/dist/components/Chat/MessageList/index.d.ts +39 -0
  112. package/dist/components/Chat/MessageList/index.d.ts.map +1 -0
  113. package/dist/components/Chat/MessageList/index.js +159 -0
  114. package/dist/components/Chat/MessageMeta/MessageMeta.module.css.js +13 -0
  115. package/dist/components/Chat/MessageMeta/index.d.ts +16 -0
  116. package/dist/components/Chat/MessageMeta/index.d.ts.map +1 -0
  117. package/dist/components/Chat/MessageMeta/index.js +33 -0
  118. package/dist/components/Chat/MessageReactions/MessageReactions.module.css.js +15 -0
  119. package/dist/components/Chat/MessageReactions/index.d.ts +32 -0
  120. package/dist/components/Chat/MessageReactions/index.d.ts.map +1 -0
  121. package/dist/components/Chat/MessageReactions/index.js +72 -0
  122. package/dist/components/Chat/MessageReply/MessageReply.module.css.js +15 -0
  123. package/dist/components/Chat/MessageReply/index.d.ts +15 -0
  124. package/dist/components/Chat/MessageReply/index.d.ts.map +1 -0
  125. package/dist/components/Chat/MessageReply/index.js +40 -0
  126. package/dist/components/Chat/MessageStatus/MessageStatus.module.css.js +11 -0
  127. package/dist/components/Chat/MessageStatus/index.d.ts +14 -0
  128. package/dist/components/Chat/MessageStatus/index.d.ts.map +1 -0
  129. package/dist/components/Chat/MessageStatus/index.js +68 -0
  130. package/dist/components/Chat/ServiceMessage/ServiceMessage.module.css.js +11 -0
  131. package/dist/components/Chat/ServiceMessage/index.d.ts +13 -0
  132. package/dist/components/Chat/ServiceMessage/index.d.ts.map +1 -0
  133. package/dist/components/Chat/ServiceMessage/index.js +21 -0
  134. package/dist/components/Chat/UnreadSeparator/index.d.ts +11 -0
  135. package/dist/components/Chat/UnreadSeparator/index.d.ts.map +1 -0
  136. package/dist/components/Chat/UnreadSeparator/index.js +13 -0
  137. package/dist/components/Chat/colors.d.ts +7 -0
  138. package/dist/components/Chat/colors.d.ts.map +1 -0
  139. package/dist/components/Chat/colors.js +30 -0
  140. package/dist/components/Chat/icons.d.ts +9 -0
  141. package/dist/components/Chat/icons.d.ts.map +1 -0
  142. package/dist/components/Chat/icons.js +49 -0
  143. package/dist/components/Chat/index.d.ts +24 -0
  144. package/dist/components/Chat/index.d.ts.map +1 -0
  145. package/dist/components/Chat/mock-data.d.ts +32 -0
  146. package/dist/components/Chat/mock-data.d.ts.map +1 -0
  147. package/dist/components/Chat/types.d.ts +159 -0
  148. package/dist/components/Chat/types.d.ts.map +1 -0
  149. package/dist/components/CircleColorPicker/CircleColorPicker.d.ts.map +1 -1
  150. package/dist/components/CircleColorPicker/CircleColorPicker.js +17 -15
  151. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  152. package/dist/components/ColorPicker/ColorPicker.module.css.js +32 -26
  153. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -1
  154. package/dist/components/ColorPicker/ColorPickerList.js +81 -68
  155. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  156. package/dist/components/ColorPicker/ColorPickerToolbar.js +75 -70
  157. package/dist/components/ColorPicker/icons.js +5 -5
  158. package/dist/components/ColorPicker/types.d.ts +6 -0
  159. package/dist/components/ColorPicker/types.d.ts.map +1 -1
  160. package/dist/components/ColorPicker/types.js +53 -11
  161. package/dist/components/ColorPicker/useRecentColors.d.ts +3 -1
  162. package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -1
  163. package/dist/components/ColorPicker/useRecentColors.js +43 -20
  164. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  165. package/dist/components/CommentComposer/types.js +9 -0
  166. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  167. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  168. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  169. package/dist/components/EmojiPicker/EmojiPanel.d.ts +2 -1
  170. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  171. package/dist/components/EmojiPicker/EmojiPanel.js +73 -72
  172. package/dist/components/EmojiPicker/EmojiPicker.d.ts +23 -1
  173. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  174. package/dist/components/EmojiPicker/EmojiPicker.js +126 -88
  175. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  176. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  177. package/dist/components/EmojiPicker/IconsPanel.js +28 -25
  178. package/dist/components/EntityIcon.d.ts +1 -0
  179. package/dist/components/EntityIcon.d.ts.map +1 -1
  180. package/dist/components/EntityIcon.js +90 -33
  181. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  182. package/dist/components/ErrorPage/components/Error403.d.ts +5 -1
  183. package/dist/components/ErrorPage/components/Error403.d.ts.map +1 -1
  184. package/dist/components/ErrorPage/components/Error403.js +25 -21
  185. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  186. package/dist/components/ErrorPage/index.d.ts +5 -1
  187. package/dist/components/ErrorPage/index.d.ts.map +1 -1
  188. package/dist/components/ErrorPage/index.js +17 -10
  189. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  190. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  191. package/dist/components/FilePicker/FilePicker.js +135 -161
  192. package/dist/components/FilePicker/FilePicker.module.css.js +8 -12
  193. package/dist/components/FilePicker/FilePickerGallery.js +13 -13
  194. package/dist/components/FilePicker/FilePickerGiphy.js +4 -4
  195. package/dist/components/FilePicker/FilePickerGoogleDrive.js +3 -3
  196. package/dist/components/FilePicker/FilePickerUnsplash.js +18 -18
  197. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  198. package/dist/components/FilePicker/FilePickerUpload.js +55 -47
  199. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  200. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  201. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  202. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  203. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  204. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  205. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  206. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  207. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  208. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  209. package/dist/components/Loaders/styles.module.css.js +6 -6
  210. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  211. package/dist/components/MusicPlayerBar/MusicPlayerBar.module.css.js +23 -23
  212. package/dist/components/MusicPlayerBar/components/HoverActions.js +28 -28
  213. package/dist/components/NavMenu/NavMenu.d.ts +7 -1
  214. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  215. package/dist/components/NavMenu/NavMenu.js +54 -44
  216. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  217. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  218. package/dist/components/NavMenu/components/NavMenuItem.js +84 -84
  219. package/dist/components/NavMenu/types.d.ts +4 -0
  220. package/dist/components/NavMenu/types.d.ts.map +1 -1
  221. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  222. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  223. package/dist/components/Notification/Notification.module.css.js +1 -1
  224. package/dist/components/PillTabs/PillTabs.d.ts +19 -0
  225. package/dist/components/PillTabs/PillTabs.d.ts.map +1 -0
  226. package/dist/components/PillTabs/PillTabs.js +50 -0
  227. package/dist/components/PillTabs/PillTabs.module.css.js +11 -0
  228. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  229. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  230. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  231. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  232. package/dist/components/WorkspaceMenu/WorkspaceItem.d.ts.map +1 -1
  233. package/dist/components/WorkspaceMenu/WorkspaceItem.js +16 -14
  234. package/dist/components/modals/RemoveConfirmModal.js +1 -1
  235. package/dist/components/table/FrontTable.d.ts.map +1 -1
  236. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  237. package/dist/config/envConfig.d.ts +2 -0
  238. package/dist/config/envConfig.d.ts.map +1 -1
  239. package/dist/config/envConfig.js +41 -37
  240. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  241. package/dist/helpers/showNotifications.d.ts +15 -0
  242. package/dist/helpers/showNotifications.d.ts.map +1 -1
  243. package/dist/helpers/showNotifications.js +114 -72
  244. package/dist/helpers/showNotifications.module.css.js +16 -4
  245. package/dist/hooks/useUiPref.d.ts +2 -0
  246. package/dist/hooks/useUiPref.d.ts.map +1 -0
  247. package/dist/hooks/useUiPref.js +80 -0
  248. package/dist/index.css +1 -1
  249. package/dist/index.d.ts +4 -0
  250. package/dist/index.d.ts.map +1 -1
  251. package/dist/index.js +588 -527
  252. package/dist/lang/locales/ui_en.json.js +5 -5
  253. package/dist/lang/locales/ui_es.json.js +1 -1
  254. package/dist/lang/locales/ui_ru.json.js +1 -1
  255. package/docs/README.md +499 -499
  256. package/package.json +78 -75
@@ -1,11 +1,11 @@
1
- const e = "_page_q8c84_3", g = "_figureContainer_q8c84_16", _ = "_figure_q8c84_16", a = "_figureA_q8c84_29", r = "_figureB_q8c84_33", c = "_grainOverlay_q8c84_115", n = "_badgeWrap_q8c84_127", i = "_badge0_q8c84_155", t = "_badge1_q8c84_160", d = "_badge2_q8c84_169", o = "_badge3_q8c84_178", b = {
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: g,
4
- figure: _,
5
- figureA: a,
6
- figureB: r,
7
- grainOverlay: c,
8
- badgeWrap: n,
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
- n as badgeWrap,
19
+ r as badgeWrap,
20
20
  b as default,
21
- _ as figure,
22
- a as figureA,
23
- r as figureB,
24
- g as figureContainer,
25
- c as grainOverlay,
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;AAI5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;CACF;AAwGD,eAAO,MAAM,YAAY,uNAnFtB,iBAAiB;;;;;;;;CAsFlB,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 o, jsx as e } from "react/jsx-runtime";
2
- import { useEffect as E } from "react";
3
- import { useMantineColorScheme as F, Stack as O, Flex as $ } from "@mantine/core";
4
- import { isAppMode as K } from "../../helpers/isAppMode.js";
5
- import { useQueryParam as Q } from "../../hooks/useNumberQueryParam.js";
6
- import { AppShell as t } from "../AppShell/AppShell.js";
7
- import { useMeetWidget as R } from "./MeetWidgetContext.js";
8
- import { AppsSidebar as V } from "./components/AppsSidebar/AppsSidebar.js";
9
- import { Header as _ } from "./components/Header.js";
10
- import { Main as q } from "./components/Main.js";
11
- import z from "./components/NavbarContent.js";
12
- import { RightSidebar as G } from "./components/RightSidebar.js";
13
- import { ToolSidebar as I } from "./components/ToolSidebar.js";
14
- import { ToolbarNewButton as J } from "./components/ToolbarNewButton.js";
15
- import { useAppContainerDataStore as L } from "./hooks/useAppContainerDataStore.js";
16
- import { appContainerStore as U } from "./hooks/useAppContainerStore.js";
17
- import X from "./AppContainer.module.css.js";
18
- const Y = ({
19
- header: h,
20
- content: f,
21
- toolbar: n,
22
- navbarTitle: u,
23
- footer: s,
24
- onTitleChange: S,
25
- trashMenu: b,
26
- rightbar: a,
27
- onInviteClick: g,
28
- showAppsSidebar: x = !0,
29
- headerBorderless: w = !1,
30
- withBg: C = !1,
31
- isBeta: M = !1,
32
- hideHeader: A = !1,
33
- showSearch: T = !0,
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: W = !1
35
+ showLogo: M = !1
37
36
  }) => {
38
- const {
39
- toolbarWidth: k,
40
- rightbarWidth: N,
41
- layout: l,
42
- showToolbar: j
43
- } = U.useStore(), B = L((P) => P.user), m = K(B.mode, "DESKTOP"), { setColorScheme: p } = F(), r = Q("theme"), i = R();
44
- E(() => {
45
- !m && (r === "dark" || r === "light") && p(r);
46
- }, [r, p, m]);
47
- const D = {
48
- "--toolbar-width": `${k}px`,
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: g,
56
- trashMenu: b,
57
- showSearch: T,
58
- showMore: v,
49
+ onInviteClick: u,
50
+ trashMenu: f,
51
+ showSearch: C,
52
+ showMore: A,
59
53
  showBorders: y,
60
- showLogo: W
54
+ showLogo: M
61
55
  }
62
56
  ) }),
63
- /* @__PURE__ */ o(t.Section, { flex: 1, display: "flex", pos: "relative", children: [
64
- d && /* @__PURE__ */ e(
65
- I,
57
+ /* @__PURE__ */ r(o.Section, { flex: 1, display: "flex", pos: "relative", children: [
58
+ D && /* @__PURE__ */ e(
59
+ G,
66
60
  {
67
- isBeta: M,
68
- onTitleChange: S,
69
- navbarTitle: u,
70
- bottomSlot: c ? null : i,
71
- children: n
61
+ isBeta: g,
62
+ onTitleChange: c,
63
+ navbarTitle: h,
64
+ children: i
72
65
  }
73
66
  ),
74
- i && c && /* @__PURE__ */ e("div", { className: X.floatingMeetSlot, children: i }),
75
- /* @__PURE__ */ o(O, { mih: 0, gap: 0, h: "100%", flex: 2, miw: 0, children: [
76
- H && /* @__PURE__ */ e(
77
- t.Header,
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: w ? { borderBottom: "none" } : void 0,
81
- children: /* @__PURE__ */ e(_, { children: h })
73
+ style: b ? { borderBottom: "none" } : void 0,
74
+ children: /* @__PURE__ */ e(R, { children: l })
82
75
  }
83
76
  ),
84
- /* @__PURE__ */ o($, { mih: 0, gap: 0, h: "100%", children: [
85
- /* @__PURE__ */ e(t.WorkContent, { children: /* @__PURE__ */ o(q, { withBg: C, children: [
86
- f,
87
- s && /* @__PURE__ */ e("footer", { children: s })
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
- a && /* @__PURE__ */ e(G, { children: a })
82
+ m && /* @__PURE__ */ e(z, { children: m })
90
83
  ] })
91
84
  ] })
92
85
  ] })
93
86
  ] });
94
- }, Se = Object.assign(Y, {
95
- NavbarContent: z,
96
- NewButton: J
87
+ }, he = Object.assign(U, {
88
+ NavbarContent: q,
89
+ NewButton: I
97
90
  });
98
91
  export {
99
- Se as AppContainer
92
+ he as AppContainer
100
93
  };
@@ -1,17 +1,17 @@
1
- const t = "_toolTitleInput_103nq_19", n = "_appSidebarButton_103nq_34", o = "_slideContainer_103nq_55", e = "_slideContent_103nq_61", i = "_main_103nq_76", l = "_floatingMeetSlot_103nq_85", a = {
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: e,
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
- e as slideContent,
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,4CAoEA,CAAC"}
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 o } from "react/jsx-runtime";
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 v } from "@hugeicons/core-free-icons";
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 g, Tooltip as n, Menu as a } from "@mantine/core";
6
- import { isFeature as k } from "../../../../helpers/feature.js";
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: i } = u("appContainer"), { workspaceMenu: r, isAnonym: t, publicMode: c, navbarDisplayFormat: f } = z(), e = f === "iconsAndLabels";
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__ */ o(l, { size: 36 }) : /* @__PURE__ */ o(
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__ */ o(
26
- g,
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__ */ o(
32
- n,
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__ */ o(l, { workspace: r.active, size: 36 })
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__ */ o(n, { label: i("search"), position: "right", disabled: e, children: /* @__PURE__ */ o(
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 ? i("search") : null,
50
- icon: /* @__PURE__ */ o(p, { icon: b, size: 20 }),
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
- k() && !t && /* @__PURE__ */ s(a, { position: "right-start", children: [
57
- /* @__PURE__ */ o(a.Target, { children: /* @__PURE__ */ o(
58
- n,
58
+ v() && !t && /* @__PURE__ */ s(n, { position: "right-start", children: [
59
+ /* @__PURE__ */ i(n.Target, { children: /* @__PURE__ */ i(
60
+ a,
59
61
  {
60
- label: i("activity"),
62
+ label: o("activity"),
61
63
  position: "right",
62
64
  disabled: e,
63
- children: /* @__PURE__ */ o(
65
+ children: /* @__PURE__ */ i(
64
66
  m,
65
67
  {
66
- title: e ? i("activity") : null,
67
- icon: /* @__PURE__ */ o(p, { icon: v, size: 20 })
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__ */ o(a.Dropdown, { px: 4, py: 0, w: 440, children: /* @__PURE__ */ o(A, {}) })
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":"AAuBA,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,4CAyGA,CAAC"}
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 v } from "react-i18next";
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 p } from "@hugeicons/react";
6
- import { Stack as a, Menu as r, Tooltip as t, ActionIcon as C } from "@mantine/core";
7
- import { IconUserCircle as S } from "@tabler/icons-react";
8
- import { usePlatform as U } from "../../../../hooks/usePlatform.js";
9
- import { useTrashModalStore as y, openTrashModal as L, closeTrashModal as j } from "../../../../store/trashModal.js";
10
- import { useAppContainerDataStore as H } from "../../hooks/useAppContainerDataStore.js";
11
- import { AppSidebarButton as c } from "../AppSidebarButton.js";
12
- import { HelpMenu as k } from "../menus/HelpMenu/HelpMenu.js";
13
- import { MenuUserDropdown as B } from "../menus/UserMenu/MenuUserDropdown.js";
14
- const X = ({
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: g = !0
18
+ showBorders: S = !0
18
19
  }) => {
19
- const { t: e } = v("appContainer"), b = U(), { user: m, isAnonym: l, userMenuItems: w, publicMode: T, navbarDisplayFormat: I } = H(), M = y((s) => s.opened), f = !l && !T && m.role !== "mG" && d, u = !l && b.has("inviteUsers") && h, i = I === "iconsAndLabels";
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
- a,
29
+ c,
22
30
  {
23
31
  style: {
24
- borderTop: g ? "1px solid var(--app-shell-border)" : void 0
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
- a,
40
+ c,
33
41
  {
34
- justify: !f && !u ? "end" : "space-between",
42
+ justify: !g && !b ? "end" : "space-between",
35
43
  gap: 8,
36
44
  flex: 1,
37
45
  children: [
38
- f && /* @__PURE__ */ n(
46
+ g && /* @__PURE__ */ n(
39
47
  r,
40
48
  {
41
49
  position: "right",
42
50
  offset: 6,
43
51
  width: 360,
44
- opened: M,
45
- onChange: (s) => {
46
- s ? L() : j();
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
- t,
58
+ s,
51
59
  {
52
60
  label: e("trash"),
53
61
  position: "right",
54
62
  disabled: i,
55
63
  children: /* @__PURE__ */ o(
56
- c,
64
+ p,
57
65
  {
58
66
  title: i ? e("trash") : null,
59
- icon: /* @__PURE__ */ o(p, { icon: A, size: 20 })
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(a, { gap: 8, children: [
69
- u && /* @__PURE__ */ o(t, { label: e("invite"), position: "right", disabled: i, children: /* @__PURE__ */ o(
70
- c,
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(p, { icon: D, size: 20 }),
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(t, { label: e("help"), position: "right", disabled: i, children: /* @__PURE__ */ o(
79
- c,
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(p, { icon: z, size: 20 })
90
+ icon: /* @__PURE__ */ o(a, { icon: z, size: 20 })
83
91
  }
84
92
  ) }) }),
85
- /* @__PURE__ */ o(r.Dropdown, { children: /* @__PURE__ */ o(k, {}) })
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
- l ? /* @__PURE__ */ o(x, { to: "/login", children: /* @__PURE__ */ o(t, { label: "Log in", position: "right", children: /* @__PURE__ */ o(C, { size: "lg", variant: "light", children: /* @__PURE__ */ o(S, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
92
- B,
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: w,
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
- X as UserSection
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;AAI1C,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
+ {"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, Fragment as o, jsx as t } from "react/jsx-runtime";
2
- import { SidebarToggleButton as n } from "./SidebarToggleButton.js";
3
- const p = ({ children: r }) => /* @__PURE__ */ e(o, { children: [
4
- /* @__PURE__ */ t(n, { forOpen: !0 }),
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
- p as Header
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: a = !1 }) => {
5
- const r = n.useStore((t) => t.showToolbar);
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": r,
10
+ "data-tool-sidebar-opened": a,
11
11
  "data-app-container": !0,
12
12
  style: {
13
- backgroundColor: a ? "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5))" : "unset"
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":"AASA,eAAO,MAAM,mBAAmB,GAAI,aAAa;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,mDAkBrE,CAAC"}
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 { SidebarLeft01Icon as i, SidebarRight01Icon as n } from "@hugeicons/core-free-icons";
3
- import { HugeiconsIcon as c } from "@hugeicons/react";
4
- import { ActionIcon as a } from "@mantine/core";
5
- import { appContainerStore as t } from "../hooks/useAppContainerStore.js";
6
- const g = ({ forOpen: e }) => {
7
- const { showToolbar: o } = t.useStore();
8
- return e && o ? null : /* @__PURE__ */ r(
9
- a,
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
- variant: "subtle",
12
- size: "md",
13
- color: "gray",
14
- onClick: t.api.toggleToolbar,
12
+ label: t(o ? "hideSidebar" : "showSidebar"),
13
+ withArrow: !0,
14
+ openDelay: 400,
15
15
  children: /* @__PURE__ */ r(
16
- c,
16
+ m,
17
17
  {
18
- icon: o ? i : n,
19
- size: 20
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
- g as SidebarToggleButton
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: s,
7
- show: n,
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: n && /* @__PURE__ */ i(
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: s
35
+ children: n
36
36
  }
37
37
  )
38
38
  }