@edifice.io/react 2.6.8-develop-enabling.20261007103744 → 2.6.8-develop-enabling.20261012145010
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/_virtual/_rolldown/runtime.js +1 -0
- package/dist/audience.js +1 -16
- package/dist/comments.js +1 -4
- package/dist/components/ActionBar/ActionBar.js +1 -8
- package/dist/components/AddAttachments/AddAttachments.js +1 -75
- package/dist/components/AddAttachments/components/AddAttachmentToWorkspaceModal.js +1 -41
- package/dist/components/AddAttachments/components/SingleAttachment.js +1 -27
- package/dist/components/AddAttachments/hooks/useFileToAttachment.js +1 -16
- package/dist/components/Alert/Alert.js +1 -105
- package/dist/components/AppHeader/AppHeader.js +1 -22
- package/dist/components/AppIcon/AppIcon.d.ts +15 -1
- package/dist/components/AppIcon/AppIcon.js +1 -60
- package/dist/components/Attachment/Attachment.js +1 -18
- package/dist/components/Avatar/Avatar.js +1 -53
- package/dist/components/AvatarGroup/AvatarGroup.js +1 -24
- package/dist/components/Badge/Badge.js +1 -33
- package/dist/components/BetaSwitch/BetaSwitch.js +1 -27
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -28
- package/dist/components/Breadcrumb/BreadcrumbItem.js +1 -14
- package/dist/components/Breadcrumb/BreadcrumbList.js +1 -13
- package/dist/components/Breadcrumb/BreadcrumbNav.js +1 -22
- package/dist/components/Button/Button.js +1 -36
- package/dist/components/Button/IconButton.js +1 -19
- package/dist/components/Button/SearchButton.js +1 -17
- package/dist/components/ButtonBeta/ButtonBeta.js +1 -37
- package/dist/components/Card/Card.js +1 -53
- package/dist/components/Card/CardBody.js +1 -20
- package/dist/components/Card/CardContext.js +1 -11
- package/dist/components/Card/CardFooter.js +1 -7
- package/dist/components/Card/CardHeader.js +1 -22
- package/dist/components/Card/CardImage.js +1 -21
- package/dist/components/Card/CardText.js +1 -12
- package/dist/components/Card/CardTitle.js +1 -12
- package/dist/components/Card/CardUser.js +1 -10
- package/dist/components/Checkbox/Checkbox.js +1 -35
- package/dist/components/ColorPicker/ColorPalette.js +1 -171
- package/dist/components/ColorPicker/ColorPicker.js +1 -38
- package/dist/components/ColorPicker/ColorPickerItem.js +1 -13
- package/dist/components/Combobox/Combobox.js +1 -61
- package/dist/components/Combobox/ComboboxTrigger.js +1 -57
- package/dist/components/DatePicker/DatePicker.js +1 -40
- package/dist/components/Divider/Divider.js +1 -11
- package/dist/components/Dropdown/Dropdown.d.ts +2 -0
- package/dist/components/Dropdown/Dropdown.js +1 -96
- package/dist/components/Dropdown/DropdownCheckboxItem.js +1 -39
- package/dist/components/Dropdown/DropdownContext.js +1 -11
- package/dist/components/Dropdown/DropdownItem.js +1 -46
- package/dist/components/Dropdown/DropdownItemHidden.js +1 -19
- package/dist/components/Dropdown/DropdownMenu.js +1 -26
- package/dist/components/Dropdown/DropdownMenuGroup.js +1 -12
- package/dist/components/Dropdown/DropdownRadioItem.js +1 -39
- package/dist/components/Dropdown/DropdownSearchInput.js +1 -25
- package/dist/components/Dropdown/DropdownSeparator.js +1 -5
- package/dist/components/Dropdown/DropdownTrigger.js +1 -58
- package/dist/components/Dropdown/DropdownVirtualizedMenu.d.ts +80 -0
- package/dist/components/Dropdown/DropdownVirtualizedMenu.js +1 -0
- package/dist/components/Dropdown/index.d.ts +1 -0
- package/dist/components/Dropdown/useDropdownItemFilter.js +1 -19
- package/dist/components/Dropzone/Dropzone.js +1 -55
- package/dist/components/Dropzone/DropzoneContext.js +1 -12
- package/dist/components/Dropzone/DropzoneDrag.js +1 -11
- package/dist/components/Dropzone/DropzoneFile.js +1 -30
- package/dist/components/Dropzone/DropzoneImport.js +1 -28
- package/dist/components/EmptyScreen/EmptyScreen.js +1 -21
- package/dist/components/Flex/Flex.js +1 -25
- package/dist/components/Form/FormContext.js +1 -11
- package/dist/components/Form/FormControl.js +1 -32
- package/dist/components/Form/FormText.js +1 -22
- package/dist/components/Grid/Grid.d.ts +1 -1
- package/dist/components/Grid/Grid.js +1 -32
- package/dist/components/Heading/Heading.js +1 -16
- package/dist/components/Image/Image.js +1 -44
- package/dist/components/Input/Input.js +1 -64
- package/dist/components/Label/Label.js +1 -37
- package/dist/components/Layout/Layout.js +1 -59
- package/dist/components/Layout/components/Header.js +1 -198
- package/dist/components/Layout/components/HeaderNotificationsOverlay.js +1 -18
- package/dist/components/Layout/components/Help.js +1 -25
- package/dist/components/Layout/components/NavItem.js +1 -14
- package/dist/components/Layout/components/NavLink.js +1 -21
- package/dist/components/Layout/components/Navbar.js +1 -13
- package/dist/components/Layout/components/NavbarNav.js +1 -13
- package/dist/components/Layout/components/SearchEngine.js +1 -33
- package/dist/components/Layout/components/WidgetApps.js +1 -23
- package/dist/components/Layout/hooks/useHeader.js +1 -39
- package/dist/components/Layout/hooks/useHelp.js +1 -86
- package/dist/components/LinkPill/LinkPill.js +1 -28
- package/dist/components/List/List.js +1 -54
- package/dist/components/Loading/Loading.js +1 -27
- package/dist/components/LoadingScreen/LoadingScreen.js +1 -25
- package/dist/components/Logo/Logo.js +1 -14
- package/dist/components/LogoBeta/LogoBeta.js +1 -14
- package/dist/components/MediaViewer/MediaViewer.js +1 -36
- package/dist/components/MediaViewer/MediaWrapper.js +1 -72
- package/dist/components/MediaViewer/PdfViewer.js +1 -36
- package/dist/components/MediaViewer/ToolbarViewer.js +1 -41
- package/dist/components/MediaViewer/ToolbarZoom.js +1 -19
- package/dist/components/Menu/components/Menu.js +1 -27
- package/dist/components/Menu/components/MenuButton.js +1 -30
- package/dist/components/Menu/components/MenuContext.js +1 -12
- package/dist/components/Menu/components/MenuItem.js +1 -19
- package/dist/components/Menu/hooks/useMenu.js +1 -50
- package/dist/components/Modal/Modal.js +1 -73
- package/dist/components/Modal/ModalBody.js +1 -15
- package/dist/components/Modal/ModalContext.js +1 -15
- package/dist/components/Modal/ModalFooter.js +1 -5
- package/dist/components/Modal/ModalHeader.js +1 -32
- package/dist/components/Modal/ModalSubtitle.js +1 -5
- package/dist/components/ModalBeta/ModalBeta.js +1 -62
- package/dist/components/ModalBeta/ModalBetaBody.js +1 -15
- package/dist/components/ModalBeta/ModalBetaContext.js +1 -15
- package/dist/components/ModalBeta/ModalBetaFooter.js +1 -7
- package/dist/components/ModalBeta/ModalBetaHeader.js +1 -31
- package/dist/components/PageLayout/PageLayout.js +1 -117
- package/dist/components/PageLayout/PageLayoutContext.js +1 -8
- package/dist/components/PageLayout/components/PageLayoutBreadcrumb.js +1 -10
- package/dist/components/PageLayout/components/PageLayoutContent.js +1 -22
- package/dist/components/PageLayout/components/PageLayoutHeader.js +1 -18
- package/dist/components/PageLayout/components/PageLayoutHelpZone.js +1 -6
- package/dist/components/PageLayout/components/PageLayoutOverlay.js +1 -51
- package/dist/components/PageLayout/components/PageLayoutSidebarLeft.js +1 -18
- package/dist/components/PageLayout/components/PageLayoutSidebarRight.js +1 -18
- package/dist/components/PageLayout/hook/useOverlay.js +1 -15
- package/dist/components/PageLayout/store/overlayStore.js +1 -12
- package/dist/components/Pagination/Pagination.js +1 -14
- package/dist/components/Popover/Popover.js +1 -52
- package/dist/components/PreventPropagation/PreventPropagation.js +1 -9
- package/dist/components/PromotionCard/PromotionCard.js +1 -31
- package/dist/components/PromotionCard/PromotionCardBody.js +1 -15
- package/dist/components/PromotionCard/PromotionCardDescription.js +1 -12
- package/dist/components/PromotionCard/PromotionCardFooter.js +1 -12
- package/dist/components/PromotionCard/PromotionCardHeader.js +1 -17
- package/dist/components/PromotionCard/PromotionCardIcon.js +1 -15
- package/dist/components/PromotionCard/PromotionCardTitle.js +1 -12
- package/dist/components/Radio/Radio.js +1 -31
- package/dist/components/RadioCard/RadioCard.js +1 -32
- package/dist/components/SearchBar/SearchBar.js +1 -54
- package/dist/components/SegmentedControl/SegmentedControl.js +1 -33
- package/dist/components/Select/Select.js +1 -46
- package/dist/components/Select/SelectTrigger.js +1 -6
- package/dist/components/Skeleton/ButtonSkeleton.d.ts +9 -0
- package/dist/components/Skeleton/ButtonSkeleton.js +1 -16
- package/dist/components/Skeleton/Skeleton.d.ts +57 -0
- package/dist/components/Skeleton/Skeleton.js +1 -0
- package/dist/components/Skeleton/TextSkeleton.d.ts +8 -0
- package/dist/components/Skeleton/TextSkeleton.js +1 -16
- package/dist/components/Skeleton/index.d.ts +2 -0
- package/dist/components/SmartEllipsis/SmartEllipsis.js +1 -21
- package/dist/components/StackedGroup/StackedGroup.js +1 -23
- package/dist/components/Stepper/Stepper.js +1 -15
- package/dist/components/Switch/Switch.js +1 -27
- package/dist/components/Table/components/Table.d.ts +34 -7
- package/dist/components/Table/components/Table.js +1 -25
- package/dist/components/Table/components/TableTbody.js +1 -11
- package/dist/components/Table/components/TableTd.js +1 -11
- package/dist/components/Table/components/TableTh.js +1 -11
- package/dist/components/Table/components/TableThead.js +1 -11
- package/dist/components/Table/components/TableTr.js +1 -11
- package/dist/components/Table/components/TableVirtualizedBody.d.ts +29 -0
- package/dist/components/Table/components/TableVirtualizedBody.js +1 -0
- package/dist/components/Tabs/components/Tabs.js +1 -51
- package/dist/components/Tabs/components/TabsItem.js +1 -31
- package/dist/components/Tabs/components/TabsList.js +1 -34
- package/dist/components/Tabs/components/TabsPanel.js +1 -19
- package/dist/components/Tabs/context/TabsContext.js +1 -12
- package/dist/components/Tabs/hooks/useTabs.js +1 -61
- package/dist/components/TextArea/TextArea.js +1 -43
- package/dist/components/TextCounter/TextCounter.js +1 -16
- package/dist/components/Toolbar/Toolbar.js +1 -83
- package/dist/components/Tooltip/Tooltip.js +1 -41
- package/dist/components/Tree/components/DndTree.js +1 -61
- package/dist/components/Tree/components/SortableTree.js +1 -140
- package/dist/components/Tree/components/Tree.js +1 -86
- package/dist/components/Tree/hooks/useTree.js +1 -62
- package/dist/components/Tree/hooks/useTreeSortable.js +1 -198
- package/dist/components/Tree/utilities/tree-sortable.js +1 -161
- package/dist/components/Tree/utilities/tree.js +1 -44
- package/dist/components/TreeView/TreeNode.js +1 -69
- package/dist/components/TreeView/TreeView.js +1 -37
- package/dist/components/TreeView/hooks/useTreeView.js +1 -105
- package/dist/components/TreeView/utilities/treeview.js +1 -177
- package/dist/components/UserRightsList/SaveBookmark.js +1 -29
- package/dist/components/UserRightsList/UserRightsBookmarkRow.js +1 -30
- package/dist/components/UserRightsList/UserRightsItem.js +1 -36
- package/dist/components/UserRightsList/UserRightsList.js +1 -94
- package/dist/components/UserRightsList/helpers/rightsHelpers.js +1 -53
- package/dist/components/UserRightsList/hooks/useBookmarkEntries.js +1 -58
- package/dist/components/UserRightsList/hooks/useSharingItems.js +1 -57
- package/dist/components/UserRightsList/types/types.js +1 -6
- package/dist/components/UserSearch/UserSearch.js +1 -82
- package/dist/components/UserSearch/types/visible.js +1 -4
- package/dist/components/VisuallyHidden/VisuallyHidden.js +1 -8
- package/dist/editor.js +1 -79
- package/dist/homepage.js +1 -57
- package/dist/hooks/useBackground/useBackground.js +1 -18
- package/dist/hooks/useBookmark/useBookmark.js +1 -14
- package/dist/hooks/useBreakpoint/useBreakpoint.js +1 -14
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js +1 -15
- package/dist/hooks/useCantoo/useCantoo.js +1 -18
- package/dist/hooks/useCheckable/useCheckable.js +1 -28
- package/dist/hooks/useClickOutside/useClickOutside.js +1 -27
- package/dist/hooks/useConf/useConf.js +1 -13
- package/dist/hooks/useConversation/useConversation.js +1 -39
- package/dist/hooks/useCookiesConsent/useCookiesConsent.js +1 -29
- package/dist/hooks/useDate/useDate.d.ts +32 -14
- package/dist/hooks/useDate/useDate.js +1 -87
- package/dist/hooks/useDebounce/useDebounce.js +1 -15
- package/dist/hooks/useDirectory/useDirectory.js +1 -17
- package/dist/hooks/useDropdown/useDropdown.js +1 -170
- package/dist/hooks/useDropzone/useDropzone.js +1 -98
- package/dist/hooks/useEdificeIcons/useEdificeIcons.js +1 -101
- package/dist/hooks/useHasWorkflow/useHasWorkflow.js +1 -14
- package/dist/hooks/useHover/useHover.js +1 -22
- package/dist/hooks/useHttpErrorToast/useHttpErrorToast.js +1 -36
- package/dist/hooks/useImage/useImage.js +1 -18
- package/dist/hooks/useInfiniteScroll/useInfiniteScroll.js +1 -20
- package/dist/hooks/useIsAdmc/useIsAdmc.js +1 -22
- package/dist/hooks/useIsAdml/useIsAdml.js +1 -18
- package/dist/hooks/useIsAdmlcOrAdmc/useIsAdmlcOrAdmc.js +1 -16
- package/dist/hooks/useKeyPress/useKeyPress.js +1 -14
- package/dist/hooks/useLibraryUrl/useLibraryUrl.js +1 -21
- package/dist/hooks/useMediaLibrary/useMediaLibrary.js +1 -58
- package/dist/hooks/usePreferences/usePreferences.js +1 -10
- package/dist/hooks/usePublicConf/usePublicConf.js +1 -12
- package/dist/hooks/useResource/useResource.js +1 -25
- package/dist/hooks/useResourceSearch/useResourceSearch.js +1 -19
- package/dist/hooks/useScreeb/useScreeb.js +1 -22
- package/dist/hooks/useScrollToTop/useScrollToTop.js +1 -9
- package/dist/hooks/useSession/useSession.js +1 -11
- package/dist/hooks/useThumbnail/useThumbnail.js +1 -33
- package/dist/hooks/useTitle/useTitle.js +1 -10
- package/dist/hooks/useToast/useToast.js +1 -37
- package/dist/hooks/useToggle/useToggle.js +1 -10
- package/dist/hooks/useTrapFocus/useTrapFocus.js +1 -17
- package/dist/hooks/useTrashedResource/useTrashedResource.js +1 -27
- package/dist/hooks/useUiOverride/useUiOverride.js +1 -13
- package/dist/hooks/useUpload/useUpload.js +1 -109
- package/dist/hooks/useUploadFiles/useUploadFiles.js +1 -107
- package/dist/hooks/useUser/useUser.js +1 -22
- package/dist/hooks/useUserPreferences/useUserPreferences.js +1 -40
- package/dist/hooks/useWorkspaceFile/useWorkspaceFile.js +1 -49
- package/dist/hooks/useWorkspaceFolders/useWorkspaceFolders.js +1 -54
- package/dist/hooks/useWorkspaceFolders/useWorkspaceFoldersTree.js +1 -51
- package/dist/hooks/useWorkspaceSearch/useWorkspaceSearch.js +1 -50
- package/dist/hooks/useXitiTrackPageLoad/useXitiTrackPageLoad.js +1 -28
- package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +1 -1
- package/dist/hooks/useZendeskGuide/useZendeskGuide.js +1 -129
- package/dist/hooks/useZoom/useZoom.js +1 -14
- package/dist/icons-apps.js +1 -268
- package/dist/icons-audience.js +1 -28
- package/dist/icons-nav.js +1 -40
- package/dist/icons.js +1 -406
- package/dist/index.js +1 -368
- package/dist/modals.js +1 -22
- package/dist/modules/HelpZone/HelpZone.js +1 -52
- package/dist/modules/HelpZone/HelpZoneContainer.js +1 -18
- package/dist/modules/audience/ReactionChoice.js +1 -33
- package/dist/modules/audience/ReactionModal.Card.js +1 -33
- package/dist/modules/audience/ReactionModal.js +1 -75
- package/dist/modules/audience/ReactionSummary.js +1 -27
- package/dist/modules/audience/ViewsByProfileCard.js +1 -40
- package/dist/modules/audience/ViewsCounter.js +1 -20
- package/dist/modules/audience/ViewsModal.js +1 -44
- package/dist/modules/audience/hooks/useReactionIcons.js +1 -45
- package/dist/modules/audience/hooks/useReactions.js +1 -35
- package/dist/modules/comments/components/BadgeProfile.js +1 -18
- package/dist/modules/comments/components/Comment.js +1 -94
- package/dist/modules/comments/components/CommentAvatar.js +1 -17
- package/dist/modules/comments/components/CommentDate.js +1 -24
- package/dist/modules/comments/components/CommentDeleted.js +1 -11
- package/dist/modules/comments/components/CommentForm.js +1 -41
- package/dist/modules/comments/components/CommentList.js +1 -22
- package/dist/modules/comments/components/CommentReplies.js +1 -33
- package/dist/modules/comments/components/CommentTitle.js +1 -7
- package/dist/modules/comments/components/DeleteModal.js +1 -25
- package/dist/modules/comments/components/TextCounter.js +1 -8
- package/dist/modules/comments/context/Context.js +1 -5
- package/dist/modules/comments/hooks/useAutosizeTextarea.js +1 -19
- package/dist/modules/comments/hooks/useCommentReplies.js +1 -36
- package/dist/modules/comments/hooks/useComments.js +1 -71
- package/dist/modules/comments/hooks/useCommentsContext.js +1 -11
- package/dist/modules/comments/hooks/useProfileQueries.js +1 -27
- package/dist/modules/comments/provider/CommentProvider.js +1 -90
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js +1 -135
- package/dist/modules/editor/components/BubbleMenuEditInformationPane/BubbleMenuEditInformationPane.js +1 -136
- package/dist/modules/editor/components/Editor/CantooAdaptTextBoxView.js +1 -33
- package/dist/modules/editor/components/Editor/Editor.js +1 -103
- package/dist/modules/editor/components/Editor/EditorPreview.js +1 -56
- package/dist/modules/editor/components/Editor/EditorPreviewSkeleton.js +1 -24
- package/dist/modules/editor/components/Editor/EditorSkeleton.js +1 -31
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Cantoo.js +1 -79
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.js +1 -17
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.js +1 -54
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.js +1 -47
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.js +1 -18
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.js +1 -50
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.js +1 -62
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +1 -52
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +1 -356
- package/dist/modules/editor/components/MathsModal/MathsModal.js +2 -49
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.js +1 -10
- package/dist/modules/editor/components/NodeView/AudioNodeView.js +1 -10
- package/dist/modules/editor/components/NodeView/ConversationHistoryNodeView.js +1 -10
- package/dist/modules/editor/components/NodeView/IframeNodeView.js +1 -10
- package/dist/modules/editor/components/NodeView/ImageNodeView.js +1 -12
- package/dist/modules/editor/components/NodeView/InformationPaneNodeView.js +1 -10
- package/dist/modules/editor/components/NodeView/LinkerNodeView.js +1 -10
- package/dist/modules/editor/components/NodeView/VideoNodeView.js +1 -10
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +1 -50
- package/dist/modules/editor/components/Renderer/AudioRenderer.js +1 -35
- package/dist/modules/editor/components/Renderer/ConversationHistoryRenderer.js +1 -28
- package/dist/modules/editor/components/Renderer/InformationPaneRenderer.js +1 -33
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js +1 -34
- package/dist/modules/editor/components/Renderer/MediaRenderer.js +1 -84
- package/dist/modules/editor/components/Toolbar/LinkToolbar.TippyOptions.js +1 -8
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js +1 -61
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +1 -54
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.js +1 -45
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js +1 -48
- package/dist/modules/editor/components/Toolbar/TableToolbar.js +1 -89
- package/dist/modules/editor/hooks/useActionOptions.js +1 -86
- package/dist/modules/editor/hooks/useCantooEditor.js +1 -89
- package/dist/modules/editor/hooks/useCommentEditor.js +1 -37
- package/dist/modules/editor/hooks/useEditorContext.js +1 -12
- package/dist/modules/editor/hooks/useImageModal.js +1 -46
- package/dist/modules/editor/hooks/useImageSelection.js +1 -46
- package/dist/modules/editor/hooks/useLinkToolbar.js +1 -37
- package/dist/modules/editor/hooks/useMathsModal.js +1 -17
- package/dist/modules/editor/hooks/useMathsStyles.js +1 -20
- package/dist/modules/editor/hooks/useMediaLibraryEditor.js +3 -152
- package/dist/modules/editor/hooks/useResizeMedia.js +1 -59
- package/dist/modules/editor/hooks/useSpeechRecognition.js +1 -21
- package/dist/modules/editor/hooks/useSpeechSynthetisis.js +1 -20
- package/dist/modules/editor/hooks/useTipTapEditor.js +1 -88
- package/dist/modules/editor/utilities/has-extension.js +1 -4
- package/dist/modules/editor/utilities/has-mark.js +1 -4
- package/dist/modules/editor/utilities/has-text-style.js +1 -5
- package/dist/modules/homepage/components/Communities/Communities.js +1 -35
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.js +1 -31
- package/dist/modules/homepage/components/Communities/CommunitiesSkeleton.js +1 -32
- package/dist/modules/homepage/components/Communities/CommunityItem.js +1 -28
- package/dist/modules/homepage/components/Communities/useCommunities.js +1 -25
- package/dist/modules/homepage/components/Favorites/Favorites.js +1 -31
- package/dist/modules/homepage/components/Favorites/FavoritesContainer.js +1 -10
- package/dist/modules/homepage/components/Header/Header.js +1 -106
- package/dist/modules/homepage/components/HomeCard/HomeCard.js +1 -25
- package/dist/modules/homepage/components/HomeCard/HomeCardContent.js +1 -10
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +1 -23
- package/dist/modules/homepage/components/LastInfos/LastInfos.js +1 -58
- package/dist/modules/homepage/components/LastInfos/LastInfosContainer.js +1 -37
- package/dist/modules/homepage/components/LastInfos/LastInfosList.js +1 -31
- package/dist/modules/homepage/components/LastInfos/useLastInfos.js +1 -25
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +1 -65
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.js +1 -10
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.js +1 -14
- package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.js +1 -19
- package/dist/modules/homepage/components/MessageFlashList/services/api/index.js +1 -5
- package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.js +1 -21
- package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.js +1 -31
- package/dist/modules/homepage/components/Notifications/NotificationItem.js +1 -17
- package/dist/modules/homepage/components/Notifications/NotificationList.js +1 -51
- package/dist/modules/homepage/components/Notifications/NotificationListContainer.js +1 -23
- package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.js +1 -17
- package/dist/modules/homepage/components/Notifications/NotificationSkeleton.d.ts +23 -1
- package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +1 -19
- package/dist/modules/homepage/components/Notifications/components/CommonNotificationItem.js +1 -32
- package/dist/modules/homepage/components/Notifications/components/NotificationFilterMenu.js +1 -29
- package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +1 -77
- package/dist/modules/homepage/components/Notifications/components/NotificationItemResource.js +1 -20
- package/dist/modules/homepage/components/Notifications/components/NotificationOptionsMenu.js +1 -42
- package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +1 -31
- package/dist/modules/homepage/components/Notifications/components/SystemNotificationItem.js +1 -21
- package/dist/modules/homepage/components/Notifications/components/UserNotificationItem.js +1 -26
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +1 -71
- package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +1 -58
- package/dist/modules/homepage/components/Notifications/services/api/index.js +1 -5
- package/dist/modules/homepage/components/Notifications/services/api/notificationService.js +1 -33
- package/dist/modules/homepage/components/Notifications/services/queries/notification.js +1 -84
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.js +1 -38
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +1 -13
- package/dist/modules/homepage/components/SchoolSpace/useUserSchools.js +1 -39
- package/dist/modules/homepage/components/UsefulLinks/LinkForm.js +1 -67
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinks.js +1 -31
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinksContainer.js +1 -40
- package/dist/modules/homepage/components/UsefulLinks/UsefulLinksModal.js +1 -65
- package/dist/modules/homepage/components/UsefulLinks/hooks/useUsefulLinksContainer.js +1 -26
- package/dist/modules/homepage/components/UsefulLinks/services/api/index.js +1 -5
- package/dist/modules/homepage/components/UsefulLinks/services/api/usefulLinksService.js +1 -50
- package/dist/modules/homepage/components/UsefulLinks/services/queries/usefulLinks.js +1 -65
- package/dist/modules/homepage/components/UserSpace/UserSpace.js +1 -31
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +1 -19
- package/dist/modules/homepage/components/UserSpace/hooks/useChildren.js +1 -23
- package/dist/modules/homepage/components/UserSpace/hooks/useProfileLinks.js +1 -75
- package/dist/modules/homepage/hooks/useWidget.js +1 -83
- package/dist/modules/homepage/hooks/useWidgetPreferences.js +1 -34
- package/dist/modules/icons/components/IconAdd.js +1 -12
- package/dist/modules/icons/components/IconAddUser.js +1 -12
- package/dist/modules/icons/components/IconAdjustSettings.js +1 -12
- package/dist/modules/icons/components/IconAiFill.js +1 -12
- package/dist/modules/icons/components/IconAlertCircle.js +1 -13
- package/dist/modules/icons/components/IconAlertTriangle.js +1 -13
- package/dist/modules/icons/components/IconAlignCenter.js +1 -12
- package/dist/modules/icons/components/IconAlignJustify.js +1 -12
- package/dist/modules/icons/components/IconAlignLeft.js +1 -12
- package/dist/modules/icons/components/IconAlignRight.js +1 -12
- package/dist/modules/icons/components/IconAnswer.js +1 -13
- package/dist/modules/icons/components/IconApplications.js +1 -12
- package/dist/modules/icons/components/IconArrowDown.js +1 -13
- package/dist/modules/icons/components/IconArrowLeft.js +1 -13
- package/dist/modules/icons/components/IconArrowRight.js +1 -13
- package/dist/modules/icons/components/IconArrowUp.js +1 -13
- package/dist/modules/icons/components/IconBlock.js +1 -12
- package/dist/modules/icons/components/IconBlur.js +1 -13
- package/dist/modules/icons/components/IconBookmark.js +1 -12
- package/dist/modules/icons/components/IconBulle.js +1 -16
- package/dist/modules/icons/components/IconBulleError.js +1 -13
- package/dist/modules/icons/components/IconBulleSuccess.js +1 -13
- package/dist/modules/icons/components/IconBulletList.js +1 -16
- package/dist/modules/icons/components/IconBurgerMenu.js +1 -12
- package/dist/modules/icons/components/IconCalendar.js +1 -12
- package/dist/modules/icons/components/IconCalendarEdit.js +1 -12
- package/dist/modules/icons/components/IconCalendarLight.js +1 -12
- package/dist/modules/icons/components/IconCamera.js +1 -13
- package/dist/modules/icons/components/IconCantoo.js +1 -23
- package/dist/modules/icons/components/IconCenter.js +1 -12
- package/dist/modules/icons/components/IconCheck.js +1 -12
- package/dist/modules/icons/components/IconChecklist.js +1 -13
- package/dist/modules/icons/components/IconClass.js +1 -13
- package/dist/modules/icons/components/IconClock.js +1 -12
- package/dist/modules/icons/components/IconClockAlert.js +1 -17
- package/dist/modules/icons/components/IconClose.js +1 -13
- package/dist/modules/icons/components/IconCloseFullScreen.js +1 -12
- package/dist/modules/icons/components/IconCode.js +1 -12
- package/dist/modules/icons/components/IconCollect.js +1 -12
- package/dist/modules/icons/components/IconCopy.js +1 -12
- package/dist/modules/icons/components/IconCrop.js +1 -13
- package/dist/modules/icons/components/IconCut.js +1 -13
- package/dist/modules/icons/components/IconDelete.js +1 -12
- package/dist/modules/icons/components/IconDeleteColor.js +1 -13
- package/dist/modules/icons/components/IconDeleteColumn.js +1 -12
- package/dist/modules/icons/components/IconDeleteColumnHighlight.js +1 -12
- package/dist/modules/icons/components/IconDeleteRow.js +1 -12
- package/dist/modules/icons/components/IconDeleteRowHighlight.js +1 -12
- package/dist/modules/icons/components/IconDepositeInbox.js +1 -13
- package/dist/modules/icons/components/IconDownload.js +1 -17
- package/dist/modules/icons/components/IconEdit.js +1 -13
- package/dist/modules/icons/components/IconError.js +1 -12
- package/dist/modules/icons/components/IconExercizerAi.js +1 -14
- package/dist/modules/icons/components/IconExternalLink.js +1 -13
- package/dist/modules/icons/components/IconFiles.js +1 -12
- package/dist/modules/icons/components/IconFilter.js +1 -12
- package/dist/modules/icons/components/IconFlag.js +1 -12
- package/dist/modules/icons/components/IconFolder.js +1 -12
- package/dist/modules/icons/components/IconFolderAdd.js +1 -13
- package/dist/modules/icons/components/IconFolderDelete.js +1 -12
- package/dist/modules/icons/components/IconFolderMove.js +1 -17
- package/dist/modules/icons/components/IconForgoing.js +1 -12
- package/dist/modules/icons/components/IconFullScreen.js +1 -12
- package/dist/modules/icons/components/IconGlobe.js +1 -12
- package/dist/modules/icons/components/IconGlobe2.js +1 -16
- package/dist/modules/icons/components/IconGroupAvatar.js +1 -12
- package/dist/modules/icons/components/IconHandMove.js +1 -12
- package/dist/modules/icons/components/IconHeadphone.js +1 -12
- package/dist/modules/icons/components/IconHide.js +1 -13
- package/dist/modules/icons/components/IconHighlightColumn.js +1 -12
- package/dist/modules/icons/components/IconHighlightRow.js +1 -12
- package/dist/modules/icons/components/IconHome.js +1 -12
- package/dist/modules/icons/components/IconHourglass.js +1 -12
- package/dist/modules/icons/components/IconImageSizeLarge.js +1 -12
- package/dist/modules/icons/components/IconImageSizeMedium.js +1 -12
- package/dist/modules/icons/components/IconImageSizeSmall.js +1 -12
- package/dist/modules/icons/components/IconInbox.js +1 -12
- package/dist/modules/icons/components/IconInfoCircle.js +1 -13
- package/dist/modules/icons/components/IconInfoRectangle.js +1 -13
- package/dist/modules/icons/components/IconLabel.js +1 -12
- package/dist/modules/icons/components/IconLandscape.js +1 -12
- package/dist/modules/icons/components/IconLibrary.js +1 -12
- package/dist/modules/icons/components/IconLink.js +1 -16
- package/dist/modules/icons/components/IconListOrder.js +1 -12
- package/dist/modules/icons/components/IconLoader.js +1 -12
- package/dist/modules/icons/components/IconLock.js +1 -12
- package/dist/modules/icons/components/IconLsuArt.js +1 -13
- package/dist/modules/icons/components/IconLsuCompetenceNumerique.js +1 -12
- package/dist/modules/icons/components/IconLsuEmc.js +1 -13
- package/dist/modules/icons/components/IconLsuFrancais.js +1 -13
- package/dist/modules/icons/components/IconLsuHistoireGeo.js +1 -12
- package/dist/modules/icons/components/IconLsuLangue.js +1 -16
- package/dist/modules/icons/components/IconLsuLangue2.js +1 -13
- package/dist/modules/icons/components/IconLsuMath.js +1 -16
- package/dist/modules/icons/components/IconLsuParcoursEducatif.js +1 -12
- package/dist/modules/icons/components/IconLsuSport.js +1 -12
- package/dist/modules/icons/components/IconLsuSvt.js +1 -12
- package/dist/modules/icons/components/IconMail.js +1 -13
- package/dist/modules/icons/components/IconMailRecall.js +1 -13
- package/dist/modules/icons/components/IconMegaphone.js +1 -12
- package/dist/modules/icons/components/IconMergeCells.js +1 -13
- package/dist/modules/icons/components/IconMessageInfo.js +1 -13
- package/dist/modules/icons/components/IconMic.js +1 -12
- package/dist/modules/icons/components/IconMicOff.js +1 -12
- package/dist/modules/icons/components/IconMinus.js +1 -12
- package/dist/modules/icons/components/IconMove.js +1 -14
- package/dist/modules/icons/components/IconNoColors.js +1 -12
- package/dist/modules/icons/components/IconNotes.js +1 -13
- package/dist/modules/icons/components/IconNotification.js +1 -12
- package/dist/modules/icons/components/IconOptions.js +1 -14
- package/dist/modules/icons/components/IconOrderedList.js +1 -16
- package/dist/modules/icons/components/IconPaperclip.js +1 -12
- package/dist/modules/icons/components/IconParcoursCitoyen.js +1 -14
- package/dist/modules/icons/components/IconParcoursSecours.js +1 -14
- package/dist/modules/icons/components/IconPause.js +1 -12
- package/dist/modules/icons/components/IconPinOff.js +1 -12
- package/dist/modules/icons/components/IconPinOn.js +1 -12
- package/dist/modules/icons/components/IconPlaceholder.js +1 -16
- package/dist/modules/icons/components/IconPlay.js +1 -12
- package/dist/modules/icons/components/IconPlayFilled.js +1 -12
- package/dist/modules/icons/components/IconPlus.js +1 -12
- package/dist/modules/icons/components/IconPointerDefault.js +1 -12
- package/dist/modules/icons/components/IconPointerHand.js +1 -12
- package/dist/modules/icons/components/IconPrint.js +1 -12
- package/dist/modules/icons/components/IconQuestion.js +1 -14
- package/dist/modules/icons/components/IconQuestionMark.js +1 -13
- package/dist/modules/icons/components/IconRafterDown.js +1 -12
- package/dist/modules/icons/components/IconRafterLeft.js +1 -12
- package/dist/modules/icons/components/IconRafterRight.js +1 -12
- package/dist/modules/icons/components/IconRafterUp.js +1 -12
- package/dist/modules/icons/components/IconReaction.js +1 -12
- package/dist/modules/icons/components/IconReadMail.js +1 -16
- package/dist/modules/icons/components/IconRecord.js +1 -12
- package/dist/modules/icons/components/IconRecordPause.js +1 -12
- package/dist/modules/icons/components/IconRecordStop.js +1 -12
- package/dist/modules/icons/components/IconRecordVideo.js +1 -12
- package/dist/modules/icons/components/IconRedo.js +1 -13
- package/dist/modules/icons/components/IconRefresh.js +1 -13
- package/dist/modules/icons/components/IconReset.js +1 -12
- package/dist/modules/icons/components/IconRestart.js +1 -12
- package/dist/modules/icons/components/IconRestore.js +1 -12
- package/dist/modules/icons/components/IconSave.js +1 -12
- package/dist/modules/icons/components/IconSearch.js +1 -12
- package/dist/modules/icons/components/IconSee.js +1 -13
- package/dist/modules/icons/components/IconSend.js +1 -12
- package/dist/modules/icons/components/IconSetBackground.js +1 -17
- package/dist/modules/icons/components/IconSettings.js +1 -16
- package/dist/modules/icons/components/IconShare.js +1 -12
- package/dist/modules/icons/components/IconSignature.js +1 -13
- package/dist/modules/icons/components/IconSmartphone.js +1 -13
- package/dist/modules/icons/components/IconSmiley.js +1 -13
- package/dist/modules/icons/components/IconSortAscendingLetters.js +1 -13
- package/dist/modules/icons/components/IconSortDescending.js +1 -13
- package/dist/modules/icons/components/IconSortDescendingLetters.js +1 -13
- package/dist/modules/icons/components/IconSortTime.js +1 -14
- package/dist/modules/icons/components/IconSpeechToText.js +1 -12
- package/dist/modules/icons/components/IconSplitCells.js +1 -13
- package/dist/modules/icons/components/IconSquareRoot.js +1 -12
- package/dist/modules/icons/components/IconStar.js +1 -13
- package/dist/modules/icons/components/IconStarFull.js +1 -13
- package/dist/modules/icons/components/IconSubmission.js +1 -12
- package/dist/modules/icons/components/IconSubmitToValidate.js +1 -12
- package/dist/modules/icons/components/IconSubscript.js +1 -12
- package/dist/modules/icons/components/IconSuccessFill.js +1 -12
- package/dist/modules/icons/components/IconSuccessOutline.js +1 -13
- package/dist/modules/icons/components/IconSuperscript.js +1 -12
- package/dist/modules/icons/components/IconTable.js +1 -12
- package/dist/modules/icons/components/IconTeacher.js +1 -12
- package/dist/modules/icons/components/IconTextBold.js +1 -12
- package/dist/modules/icons/components/IconTextColor.js +1 -16
- package/dist/modules/icons/components/IconTextHighlight.js +1 -16
- package/dist/modules/icons/components/IconTextItalic.js +1 -12
- package/dist/modules/icons/components/IconTextPage.js +1 -12
- package/dist/modules/icons/components/IconTextSize.js +1 -12
- package/dist/modules/icons/components/IconTextToSpeech.js +1 -12
- package/dist/modules/icons/components/IconTextToSpeechOff.js +1 -12
- package/dist/modules/icons/components/IconTextTypo.js +1 -12
- package/dist/modules/icons/components/IconTextUnderline.js +1 -13
- package/dist/modules/icons/components/IconTextVanilla.js +1 -13
- package/dist/modules/icons/components/IconThumbDown.js +1 -12
- package/dist/modules/icons/components/IconThumbUp.js +1 -12
- package/dist/modules/icons/components/IconTool.js +1 -12
- package/dist/modules/icons/components/IconToolCenter.js +1 -12
- package/dist/modules/icons/components/IconTrendingUp.js +1 -16
- package/dist/modules/icons/components/IconUndo.js +1 -13
- package/dist/modules/icons/components/IconUndoAll.js +1 -14
- package/dist/modules/icons/components/IconUndoSlashed.js +1 -12
- package/dist/modules/icons/components/IconUnion.js +1 -15
- package/dist/modules/icons/components/IconUnlink.js +1 -13
- package/dist/modules/icons/components/IconUnlock.js +1 -13
- package/dist/modules/icons/components/IconUnreadMail.js +1 -16
- package/dist/modules/icons/components/IconUpload.js +1 -18
- package/dist/modules/icons/components/IconUser.js +1 -12
- package/dist/modules/icons/components/IconUserSearch.js +1 -13
- package/dist/modules/icons/components/IconUsers.js +1 -13
- package/dist/modules/icons/components/IconVideo.js +1 -12
- package/dist/modules/icons/components/IconViewCalendar.js +1 -12
- package/dist/modules/icons/components/IconViewList.js +1 -15
- package/dist/modules/icons/components/IconWand.js +1 -12
- package/dist/modules/icons/components/IconWrite.js +1 -12
- package/dist/modules/icons/components/IconZoomIn.js +1 -12
- package/dist/modules/icons/components/IconZoomOut.js +1 -12
- package/dist/modules/icons/components/apps/IconAccount.js +1 -12
- package/dist/modules/icons/components/apps/IconActualites.js +1 -12
- package/dist/modules/icons/components/apps/IconAdmin.js +1 -12
- package/dist/modules/icons/components/apps/IconAdminPortal.js +1 -12
- package/dist/modules/icons/components/apps/IconAdmissionPostBac.js +1 -12
- package/dist/modules/icons/components/apps/IconAgenda.js +1 -13
- package/dist/modules/icons/components/apps/IconAppointments.js +1 -12
- package/dist/modules/icons/components/apps/IconArchive.js +1 -12
- package/dist/modules/icons/components/apps/IconAssistance.js +1 -12
- package/dist/modules/icons/components/apps/IconAssistancetic.js +1 -14
- package/dist/modules/icons/components/apps/IconAssr.js +1 -12
- package/dist/modules/icons/components/apps/IconAward.js +1 -12
- package/dist/modules/icons/components/apps/IconBanquesavoir.js +1 -12
- package/dist/modules/icons/components/apps/IconBcdi.js +1 -12
- package/dist/modules/icons/components/apps/IconBiblionisep.js +1 -12
- package/dist/modules/icons/components/apps/IconBlog.js +1 -12
- package/dist/modules/icons/components/apps/IconBookmarkEmpty.js +1 -12
- package/dist/modules/icons/components/apps/IconCahierDeTexte.js +1 -12
- package/dist/modules/icons/components/apps/IconCahierTextes.js +1 -12
- package/dist/modules/icons/components/apps/IconCalendar.js +1 -13
- package/dist/modules/icons/components/apps/IconCanalNumerique.js +1 -12
- package/dist/modules/icons/components/apps/IconCcn.js +1 -12
- package/dist/modules/icons/components/apps/IconCerise.js +1 -12
- package/dist/modules/icons/components/apps/IconCervoprint.js +1 -12
- package/dist/modules/icons/components/apps/IconCharlemagne.js +1 -12
- package/dist/modules/icons/components/apps/IconCharte.js +1 -12
- package/dist/modules/icons/components/apps/IconChat.js +1 -12
- package/dist/modules/icons/components/apps/IconCidj.js +1 -12
- package/dist/modules/icons/components/apps/IconCns.js +1 -12
- package/dist/modules/icons/components/apps/IconCollaborativeWall.js +1 -12
- package/dist/modules/icons/components/apps/IconCommunities.js +1 -12
- package/dist/modules/icons/components/apps/IconCommunity.js +1 -12
- package/dist/modules/icons/components/apps/IconCompetences.js +1 -12
- package/dist/modules/icons/components/apps/IconConnecteurGenerique1.js +1 -12
- package/dist/modules/icons/components/apps/IconConnecteurGenerique2.js +1 -12
- package/dist/modules/icons/components/apps/IconConversation.js +1 -12
- package/dist/modules/icons/components/apps/IconDirectory.js +1 -12
- package/dist/modules/icons/components/apps/IconEdt.js +1 -12
- package/dist/modules/icons/components/apps/IconEducagri.js +1 -12
- package/dist/modules/icons/components/apps/IconEdumedia.js +1 -12
- package/dist/modules/icons/components/apps/IconEdumoov.js +1 -12
- package/dist/modules/icons/components/apps/IconEdutheque.js +1 -12
- package/dist/modules/icons/components/apps/IconElectron.js +1 -12
- package/dist/modules/icons/components/apps/IconElyceepicardie.js +1 -12
- package/dist/modules/icons/components/apps/IconEsidoc.js +1 -12
- package/dist/modules/icons/components/apps/IconEuropress.js +1 -12
- package/dist/modules/icons/components/apps/IconExercizer.js +1 -12
- package/dist/modules/icons/components/apps/IconForms.js +1 -12
- package/dist/modules/icons/components/apps/IconForum.js +1 -12
- package/dist/modules/icons/components/apps/IconGeogebra.js +1 -12
- package/dist/modules/icons/components/apps/IconGepi.js +1 -12
- package/dist/modules/icons/components/apps/IconGlpi.js +1 -12
- package/dist/modules/icons/components/apps/IconHiboutheque.js +1 -12
- package/dist/modules/icons/components/apps/IconItopstore.js +1 -12
- package/dist/modules/icons/components/apps/IconKne.js +1 -12
- package/dist/modules/icons/components/apps/IconLeSiteTv.js +1 -12
- package/dist/modules/icons/components/apps/IconLemonde.js +1 -12
- package/dist/modules/icons/components/apps/IconLesechos.js +1 -12
- package/dist/modules/icons/components/apps/IconLibrary.js +1 -12
- package/dist/modules/icons/components/apps/IconLivretScolaire.js +1 -13
- package/dist/modules/icons/components/apps/IconLool.js +1 -15
- package/dist/modules/icons/components/apps/IconLsu.js +1 -12
- package/dist/modules/icons/components/apps/IconMadmagz.js +1 -12
- package/dist/modules/icons/components/apps/IconMagneto.js +1 -13
- package/dist/modules/icons/components/apps/IconMatholycee.js +1 -12
- package/dist/modules/icons/components/apps/IconMaxicours.js +1 -12
- package/dist/modules/icons/components/apps/IconMediacentre.js +1 -12
- package/dist/modules/icons/components/apps/IconMindmap.js +1 -12
- package/dist/modules/icons/components/apps/IconMinetest.js +1 -12
- package/dist/modules/icons/components/apps/IconMinibadge.js +1 -12
- package/dist/modules/icons/components/apps/IconMonorientationenligne.js +1 -12
- package/dist/modules/icons/components/apps/IconMonstageenligne.js +1 -12
- package/dist/modules/icons/components/apps/IconMoodle.js +1 -12
- package/dist/modules/icons/components/apps/IconMuseefrancaisphoto.js +1 -12
- package/dist/modules/icons/components/apps/IconMyNetwork.js +1 -12
- package/dist/modules/icons/components/apps/IconNabook.js +1 -16
- package/dist/modules/icons/components/apps/IconNetvibes.js +1 -12
- package/dist/modules/icons/components/apps/IconNextcloudDeck.js +1 -12
- package/dist/modules/icons/components/apps/IconNextcloudFiles.js +1 -12
- package/dist/modules/icons/components/apps/IconNextcloudForms.js +1 -12
- package/dist/modules/icons/components/apps/IconNextcloudNotes.js +1 -12
- package/dist/modules/icons/components/apps/IconNextcloudTalk.js +1 -12
- package/dist/modules/icons/components/apps/IconNote.js +1 -12
- package/dist/modules/icons/components/apps/IconNotebook.js +1 -12
- package/dist/modules/icons/components/apps/IconNotes.js +1 -12
- package/dist/modules/icons/components/apps/IconOnisep.js +1 -12
- package/dist/modules/icons/components/apps/IconOnisep2.js +1 -12
- package/dist/modules/icons/components/apps/IconPad.js +1 -12
- package/dist/modules/icons/components/apps/IconPages.js +1 -12
- package/dist/modules/icons/components/apps/IconParametrage.js +1 -12
- package/dist/modules/icons/components/apps/IconParametrages.js +1 -12
- package/dist/modules/icons/components/apps/IconParaschool.js +1 -12
- package/dist/modules/icons/components/apps/IconParcours.js +1 -12
- package/dist/modules/icons/components/apps/IconPearltrees.js +1 -12
- package/dist/modules/icons/components/apps/IconPeertube.js +1 -21
- package/dist/modules/icons/components/apps/IconPicardieCursus.js +1 -12
- package/dist/modules/icons/components/apps/IconPlaceholder.js +1 -16
- package/dist/modules/icons/components/apps/IconPoll.js +1 -12
- package/dist/modules/icons/components/apps/IconPresences.js +1 -12
- package/dist/modules/icons/components/apps/IconProeps.js +1 -12
- package/dist/modules/icons/components/apps/IconPronote.js +1 -12
- package/dist/modules/icons/components/apps/IconPublic.js +1 -12
- package/dist/modules/icons/components/apps/IconQwant.js +1 -12
- package/dist/modules/icons/components/apps/IconQwantJunior.js +1 -12
- package/dist/modules/icons/components/apps/IconRack.js +1 -12
- package/dist/modules/icons/components/apps/IconRbs.js +1 -12
- package/dist/modules/icons/components/apps/IconResidenceArtiste.js +1 -12
- package/dist/modules/icons/components/apps/IconRessourcesdepartementale91.js +1 -12
- package/dist/modules/icons/components/apps/IconSacoche.js +1 -12
- package/dist/modules/icons/components/apps/IconSchoolbook.js +1 -12
- package/dist/modules/icons/components/apps/IconScolinfo.js +1 -12
- package/dist/modules/icons/components/apps/IconScrapbook.js +1 -12
- package/dist/modules/icons/components/apps/IconSearchengine.js +1 -12
- package/dist/modules/icons/components/apps/IconSettingsClass.js +1 -12
- package/dist/modules/icons/components/apps/IconSharebigfiles.js +1 -12
- package/dist/modules/icons/components/apps/IconStatistics.js +1 -12
- package/dist/modules/icons/components/apps/IconStats.js +1 -12
- package/dist/modules/icons/components/apps/IconSuitcase.js +1 -12
- package/dist/modules/icons/components/apps/IconSupport.js +1 -12
- package/dist/modules/icons/components/apps/IconTimeline.js +1 -12
- package/dist/modules/icons/components/apps/IconTimelinegenerator.js +1 -12
- package/dist/modules/icons/components/apps/IconTurboself.js +1 -12
- package/dist/modules/icons/components/apps/IconUniversalis.js +1 -12
- package/dist/modules/icons/components/apps/IconUnstagepourtous.js +1 -12
- package/dist/modules/icons/components/apps/IconUserbook.js +1 -12
- package/dist/modules/icons/components/apps/IconVideo.js +1 -12
- package/dist/modules/icons/components/apps/IconVieScolaire.js +1 -12
- package/dist/modules/icons/components/apps/IconVisioconf.js +1 -12
- package/dist/modules/icons/components/apps/IconVotil.js +1 -14
- package/dist/modules/icons/components/apps/IconWebclasseur.js +1 -12
- package/dist/modules/icons/components/apps/IconWebsite.js +1 -12
- package/dist/modules/icons/components/apps/IconWiki.js +1 -13
- package/dist/modules/icons/components/apps/IconWorkspace.js +1 -12
- package/dist/modules/icons/components/audience/IconCongrats.js +1 -22
- package/dist/modules/icons/components/audience/IconCongratsCounter.js +1 -21
- package/dist/modules/icons/components/audience/IconGreat.js +1 -16
- package/dist/modules/icons/components/audience/IconGreatCounter.js +1 -14
- package/dist/modules/icons/components/audience/IconGuest.js +1 -12
- package/dist/modules/icons/components/audience/IconInteresting.js +1 -15
- package/dist/modules/icons/components/audience/IconInterestingCounter.js +1 -17
- package/dist/modules/icons/components/audience/IconParent.js +1 -12
- package/dist/modules/icons/components/audience/IconPersonnel.js +1 -12
- package/dist/modules/icons/components/audience/IconStudent.js +1 -20
- package/dist/modules/icons/components/audience/IconTeacher.js +1 -12
- package/dist/modules/icons/components/audience/IconThanks.js +1 -18
- package/dist/modules/icons/components/audience/IconThanksCounter.js +1 -16
- package/dist/modules/icons/components/logo/IconLogoEdificeFull.js +1 -26
- package/dist/modules/icons/components/logo/IconLogoEdificeSmall.js +1 -17
- package/dist/modules/icons/components/nav/IconCommunities.js +1 -12
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +1 -18
- package/dist/modules/icons/components/nav/IconCommunity.js +1 -12
- package/dist/modules/icons/components/nav/IconDisconnect.js +1 -12
- package/dist/modules/icons/components/nav/IconHome.js +1 -12
- package/dist/modules/icons/components/nav/IconHomeBeta.js +1 -13
- package/dist/modules/icons/components/nav/IconMessagesBeta.js +1 -18
- package/dist/modules/icons/components/nav/IconMyApps.js +1 -12
- package/dist/modules/icons/components/nav/IconMyAppsBeta.js +1 -13
- package/dist/modules/icons/components/nav/IconNeoAssistance.js +1 -12
- package/dist/modules/icons/components/nav/IconNeoMessaging.js +1 -12
- package/dist/modules/icons/components/nav/IconNewRelease.js +1 -12
- package/dist/modules/icons/components/nav/IconNotificationBeta.js +1 -14
- package/dist/modules/icons/components/nav/IconOneAssistance.js +1 -12
- package/dist/modules/icons/components/nav/IconOneMessaging.js +1 -12
- package/dist/modules/icons/components/nav/IconOneProfile.js +1 -13
- package/dist/modules/icons/components/nav/IconProfile.js +1 -12
- package/dist/modules/icons/components/nav/IconSearch.js +1 -12
- package/dist/modules/icons/components/nav/IconUserbook.js +1 -12
- package/dist/modules/modals/ConfirmModal/ConfirmModal.js +1 -37
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +1 -77
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.js +1 -38
- package/dist/modules/modals/PublishModal/PublishModal.js +1 -120
- package/dist/modules/modals/PublishModal/components/ActivitiesDropdown.js +1 -29
- package/dist/modules/modals/PublishModal/components/AgeSelect.js +1 -20
- package/dist/modules/modals/PublishModal/components/LangSelect.js +1 -19
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js +1 -23
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.js +1 -29
- package/dist/modules/modals/PublishModal/components/ToastError.js +1 -24
- package/dist/modules/modals/PublishModal/components/ToastSuccess.js +1 -18
- package/dist/modules/modals/PublishModal/constants/ageOptions.js +1 -4
- package/dist/modules/modals/PublishModal/hooks/useActivitiesOptions.js +1 -34
- package/dist/modules/modals/PublishModal/hooks/useLanguageOptions.js +1 -43
- package/dist/modules/modals/PublishModal/hooks/usePublishModal.js +1 -106
- package/dist/modules/modals/PublishModal/hooks/useSubjectsOptions.js +1 -118
- package/dist/modules/modals/ResourceModal/ResourceModal.js +1 -164
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.js +1 -62
- package/dist/modules/modals/ResourceModal/hooks/useSlug.js +1 -41
- package/dist/modules/modals/ResourceModal/hooks/useThumb.js +1 -17
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.js +1 -12
- package/dist/modules/modals/ShareModal/ShareBookmark.js +1 -25
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.js +1 -55
- package/dist/modules/modals/ShareModal/ShareModal.js +1 -40
- package/dist/modules/modals/ShareModal/ShareResources.js +1 -149
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js +1 -43
- package/dist/modules/modals/ShareModal/hooks/useSearch.js +1 -174
- package/dist/modules/modals/ShareModal/hooks/useShare.js +1 -199
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +1 -68
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.js +1 -15
- package/dist/modules/modals/ShareModal/hooks/useShareRightDisabled.js +1 -11
- package/dist/modules/modals/ShareModal/hooks/useShareRightVisible.js +1 -11
- package/dist/modules/modals/ShareModal/utils/hasRight.js +1 -4
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.js +1 -4
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +1 -53
- package/dist/modules/multimedia/AudioRecorder/AudioRecorderTimer.js +1 -26
- package/dist/modules/multimedia/AudioRecorder/useAudioRecorder.js +1 -314
- package/dist/modules/multimedia/Embed/Embed.js +1 -32
- package/dist/modules/multimedia/FileCard/FileCard.js +1 -104
- package/dist/modules/multimedia/FileCard/FileIcon.js +1 -15
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +1 -130
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.js +1 -72
- package/dist/modules/multimedia/ImageEditor/effects/blur.js +1 -80
- package/dist/modules/multimedia/ImageEditor/effects/constants.js +1 -4
- package/dist/modules/multimedia/ImageEditor/effects/crop.js +1 -171
- package/dist/modules/multimedia/ImageEditor/effects/misc.js +1 -177
- package/dist/modules/multimedia/ImageEditor/effects/resize.js +1 -166
- package/dist/modules/multimedia/ImageEditor/effects/rotate.js +1 -32
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js +1 -65
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEditor.js +1 -82
- package/dist/modules/multimedia/ImageEditor/hooks/useImageEffects.js +1 -55
- package/dist/modules/multimedia/ImageEditor/utilities/aggregate.js +1 -13
- package/dist/modules/multimedia/ImagePicker/ImagePicker.js +1 -40
- package/dist/modules/multimedia/Linker/ExternalLinker/ExternalLinker.js +1 -45
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +1 -151
- package/dist/modules/multimedia/LinkerCard/LinkerCard.js +1 -34
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +1 -1
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +1 -226
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.js +1 -12
- package/dist/modules/multimedia/MediaLibrary/innertabs/Audio.js +1 -19
- package/dist/modules/multimedia/MediaLibrary/innertabs/ExternalLink.js +1 -17
- package/dist/modules/multimedia/MediaLibrary/innertabs/Iframe.js +1 -14
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.js +1 -35
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +1 -68
- package/dist/modules/multimedia/MediaLibrary/innertabs/Video.js +1 -22
- package/dist/modules/multimedia/MediaLibrary/innertabs/VideoEmbedder.js +1 -15
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +1 -31
- package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +1 -21
- package/dist/modules/multimedia/UploadCard/UploadCard.js +1 -75
- package/dist/modules/multimedia/UploadFiles/UploadFiles.js +1 -56
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js +1 -76
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +1 -156
- package/dist/modules/multimedia/VideoRecorder/VideoRecorderToolbar.js +1 -96
- package/dist/modules/multimedia/VideoRecorder/useCameras.js +1 -86
- package/dist/modules/multimedia/Workspace/Workspace.js +1 -172
- package/dist/modules/multimedia/WorkspaceFolders/WorkspaceFolders.js +1 -55
- package/dist/modules/multimedia/WorkspaceFolders/components/NewFolderForm.js +1 -39
- package/dist/multimedia.js +1 -32
- package/dist/providers/AntThemeProvider/AntProvider.js +1 -28
- package/dist/providers/AntThemeProvider/antThemeConfig.js +1 -9
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.context.js +1 -5
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.hook.js +1 -11
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.js +1 -54
- package/dist/providers/EdificeScreebProvider/EdificeScreebProvider.js +1 -52
- package/dist/providers/EdificeThemeProvider/EdificeThemeProvider.context.js +1 -5
- package/dist/providers/EdificeThemeProvider/EdificeThemeProvider.hook.js +1 -11
- package/dist/providers/EdificeThemeProvider/EdificeThemeProvider.js +1 -47
- package/dist/providers/MockedProvider/MockedProvider.js +1 -29
- package/dist/providers/MockedProvider/MockedProvider.mocks.js +1 -119
- package/dist/react.css +2 -0
- package/dist/utilities/check-user-rights/check-user-rights.js +1 -46
- package/dist/utilities/create-selectors/create-selectors.js +1 -11
- package/dist/utilities/emptyscreen-mapping/emptyscreen-mapping.js +1 -49
- package/dist/utilities/mime-types/mime-types-utils.js +1 -4
- package/dist/utilities/react-query/react-query-utils.js +1 -13
- package/dist/utilities/refs/ref.js +1 -14
- package/dist/utilities/rotate-transition-style/get-rotate-transition-style.js +1 -12
- package/package.json +11 -12
- package/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/_virtual/isSameOrAfter.js +0 -4
- package/dist/_virtual/isToday.js +0 -4
- package/dist/_virtual/localeData.js +0 -4
- package/dist/_virtual/weekday.js +0 -4
- package/dist/modules/comments/constants.js +0 -10
- package/dist/modules/multimedia/testing/mediaHarness.d.ts +0 -154
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isSameOrAfter.js +0 -18
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isToday.js +0 -19
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/localeData.js +0 -82
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/weekday.js +0 -19
- package/dist/style.css +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __defProp=Object.defineProperty,__exportAll=(all,no_symbols)=>{let target={};for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0});return no_symbols||__defProp(target,Symbol.toStringTag,{value:`Module`}),target};export{__exportAll};
|
package/dist/audience.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { default as default3 } from "./modules/audience/ViewsModal.js";
|
|
3
|
-
import { default as default4 } from "./modules/audience/ReactionSummary.js";
|
|
4
|
-
import { default as default5 } from "./modules/audience/ReactionChoice.js";
|
|
5
|
-
import { default as default6 } from "./modules/audience/ReactionModal.js";
|
|
6
|
-
import { default as default7 } from "./modules/audience/hooks/useReactions.js";
|
|
7
|
-
import { default as default8 } from "./modules/audience/hooks/useReactionIcons.js";
|
|
8
|
-
export {
|
|
9
|
-
default5 as ReactionChoice,
|
|
10
|
-
default6 as ReactionModal,
|
|
11
|
-
default4 as ReactionSummary,
|
|
12
|
-
default2 as ViewsCounter,
|
|
13
|
-
default3 as ViewsModal,
|
|
14
|
-
default8 as useReactionIcons,
|
|
15
|
-
default7 as useReactions
|
|
16
|
-
};
|
|
1
|
+
import ViewsCounter from"./modules/audience/ViewsCounter.js";import ViewsModal from"./modules/audience/ViewsModal.js";import useReactionIcons from"./modules/audience/hooks/useReactionIcons.js";import ReactionSummary from"./modules/audience/ReactionSummary.js";import ReactionChoice from"./modules/audience/ReactionChoice.js";import ReactionModal from"./modules/audience/ReactionModal.js";import useReactions from"./modules/audience/hooks/useReactions.js";export{ReactionChoice,ReactionModal,ReactionSummary,ViewsCounter,ViewsModal,useReactionIcons,useReactions};
|
package/dist/comments.js
CHANGED
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
const ActionBar = /* @__PURE__ */ forwardRef(({
|
|
4
|
-
children
|
|
5
|
-
}, ref) => /* @__PURE__ */ jsx("div", { ref, className: "actionbar", children }));
|
|
6
|
-
export {
|
|
7
|
-
ActionBar as default
|
|
8
|
-
};
|
|
1
|
+
import{forwardRef}from"react";import{jsx}from"react/jsx-runtime";var ActionBar=forwardRef(({children},ref)=>jsx(`div`,{ref,className:`actionbar`,children}));export{ActionBar as default};
|
|
@@ -1,75 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import { useRef, useState } from "react";
|
|
4
|
-
import { useTranslation } from "react-i18next";
|
|
5
|
-
import SvgIconDelete from "../../modules/icons/components/IconDelete.js";
|
|
6
|
-
import SvgIconDownload from "../../modules/icons/components/IconDownload.js";
|
|
7
|
-
import SvgIconFolderAdd from "../../modules/icons/components/IconFolderAdd.js";
|
|
8
|
-
import SvgIconPlus from "../../modules/icons/components/IconPlus.js";
|
|
9
|
-
import { AddAttachmentToWorkspaceModal } from "./components/AddAttachmentToWorkspaceModal.js";
|
|
10
|
-
import { SingleAttachment } from "./components/SingleAttachment.js";
|
|
11
|
-
import { useFileToAttachment } from "./hooks/useFileToAttachment.js";
|
|
12
|
-
import Flex from "../Flex/Flex.js";
|
|
13
|
-
import IconButton from "../Button/IconButton.js";
|
|
14
|
-
import Button from "../Button/Button.js";
|
|
15
|
-
const AddAttachments = ({
|
|
16
|
-
attachments,
|
|
17
|
-
onChange,
|
|
18
|
-
onFilesSelected,
|
|
19
|
-
onRemoveAttachment,
|
|
20
|
-
editMode = !1,
|
|
21
|
-
isMutating = !1,
|
|
22
|
-
onCopyToWorkspace,
|
|
23
|
-
getDownloadUrl,
|
|
24
|
-
downloadAllUrl
|
|
25
|
-
}) => {
|
|
26
|
-
const {
|
|
27
|
-
t
|
|
28
|
-
} = useTranslation(), inputRef = useRef(null), fileToAttachment = useFileToAttachment(), [attachmentsToAddToWorkspace, setAttachmentsToAddToWorkspace] = useState(void 0);
|
|
29
|
-
if (!editMode && !attachments.length) return null;
|
|
30
|
-
const resetInputValue = () => {
|
|
31
|
-
inputRef.current && (inputRef.current.value = "");
|
|
32
|
-
}, handleAttachClick = () => {
|
|
33
|
-
var _a;
|
|
34
|
-
return (_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.click();
|
|
35
|
-
}, handleFileChange = (event) => {
|
|
36
|
-
const files = Array.from(event.target.files ?? []);
|
|
37
|
-
if (files.length > 0) {
|
|
38
|
-
const newAttachments = files.map(fileToAttachment);
|
|
39
|
-
onChange == null || onChange([...attachments, ...newAttachments]), onFilesSelected == null || onFilesSelected(files);
|
|
40
|
-
}
|
|
41
|
-
resetInputValue();
|
|
42
|
-
}, handleDetachAllClick = () => {
|
|
43
|
-
onChange == null || onChange([]), attachments.forEach((a) => onRemoveAttachment == null ? void 0 : onRemoveAttachment(a.id)), resetInputValue();
|
|
44
|
-
}, handleDetachClick = (attachmentId) => {
|
|
45
|
-
const next = attachments.filter((a) => a.id !== attachmentId);
|
|
46
|
-
onChange == null || onChange(next), onRemoveAttachment == null || onRemoveAttachment(attachmentId), resetInputValue();
|
|
47
|
-
}, handleCopyToWorkspace = (attachments2) => {
|
|
48
|
-
setAttachmentsToAddToWorkspace(attachments2);
|
|
49
|
-
}, className = clsx("bg-gray-200 rounded px-12 py-8 message-attachments align-self-start gap-8 d-flex flex-column mw-100", {
|
|
50
|
-
"border add-attachments-edit mx-16": editMode
|
|
51
|
-
});
|
|
52
|
-
return /* @__PURE__ */ jsxs("div", { className, "data-drag-handle": !0, children: [
|
|
53
|
-
!!attachments.length && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
54
|
-
/* @__PURE__ */ jsxs(Flex, { direction: "row", align: "center", justify: "between", className: "border-bottom", children: [
|
|
55
|
-
/* @__PURE__ */ jsx("span", { className: "caption fw-bold my-8", children: t("attachments") }),
|
|
56
|
-
attachments.length > 1 && /* @__PURE__ */ jsxs("div", { children: [
|
|
57
|
-
onCopyToWorkspace && /* @__PURE__ */ jsx(IconButton, { title: t("conversation.copy.all.toworkspace"), color: "tertiary", type: "button", icon: /* @__PURE__ */ jsx(SvgIconFolderAdd, {}), onClick: () => handleCopyToWorkspace(attachments), variant: "ghost" }),
|
|
58
|
-
downloadAllUrl && /* @__PURE__ */ jsx("a", { href: downloadAllUrl, download: !0, children: /* @__PURE__ */ jsx(IconButton, { title: t("download.all.attachment"), color: "tertiary", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDownload, {}), variant: "ghost" }) }),
|
|
59
|
-
editMode && /* @__PURE__ */ jsx(IconButton, { title: t("remove.all.attachment"), color: "danger", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDelete, {}), variant: "ghost", onClick: handleDetachAllClick, disabled: isMutating })
|
|
60
|
-
] })
|
|
61
|
-
] }),
|
|
62
|
-
/* @__PURE__ */ jsx("ul", { className: "d-flex gap-8 flex-column list-unstyled m-0", children: attachments.map((attachment) => /* @__PURE__ */ jsx("li", { className: "mw-100", children: /* @__PURE__ */ jsx(SingleAttachment, { attachment, editMode, onDelete: handleDetachClick, onCopyToWorkspace: onCopyToWorkspace ? (attachment2) => handleCopyToWorkspace([attachment2]) : void 0, getDownloadUrl, disabled: isMutating }) }, `${attachment.id}-${attachment.name}`)) })
|
|
63
|
-
] }),
|
|
64
|
-
editMode && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
65
|
-
/* @__PURE__ */ jsx(Button, { color: "secondary", variant: "ghost", isLoading: isMutating, onClick: handleAttachClick, disabled: isMutating, className: "align-self-start", leftIcon: /* @__PURE__ */ jsx(SvgIconPlus, {}), "data-testid": "common-add-attachments-button-add-attachment", children: t("add.attachment") }),
|
|
66
|
-
/* @__PURE__ */ jsx("input", { ref: inputRef, multiple: !0, type: "file", name: "attachment-input", id: "attachment-input", onChange: handleFileChange, hidden: !0 })
|
|
67
|
-
] }),
|
|
68
|
-
onCopyToWorkspace && !!attachmentsToAddToWorkspace && /* @__PURE__ */ jsx(AddAttachmentToWorkspaceModal, { isOpen: !0, onModalClose: () => setAttachmentsToAddToWorkspace(void 0), attachments: attachmentsToAddToWorkspace, onCopyToWorkspace })
|
|
69
|
-
] });
|
|
70
|
-
};
|
|
71
|
-
export {
|
|
72
|
-
AddAttachments,
|
|
73
|
-
AddAttachments as default,
|
|
74
|
-
useFileToAttachment
|
|
75
|
-
};
|
|
1
|
+
import SvgIconDelete from"../../modules/icons/components/IconDelete.js";import SvgIconDownload from"../../modules/icons/components/IconDownload.js";import SvgIconFolderAdd from"../../modules/icons/components/IconFolderAdd.js";import SvgIconPlus from"../../modules/icons/components/IconPlus.js";import Button from"../Button/Button.js";import Flex from"../Flex/Flex.js";import IconButton from"../Button/IconButton.js";import{AddAttachmentToWorkspaceModal}from"./components/AddAttachmentToWorkspaceModal.js";import{SingleAttachment}from"./components/SingleAttachment.js";import{useFileToAttachment}from"./hooks/useFileToAttachment.js";import clsx$1 from"clsx";import{useRef,useState}from"react";import{Fragment as Fragment$1,jsx,jsxs}from"react/jsx-runtime";import{useTranslation}from"react-i18next";var AddAttachments=({attachments,onChange,onFilesSelected,onRemoveAttachment,editMode=!1,isMutating=!1,onCopyToWorkspace,getDownloadUrl,downloadAllUrl})=>{let{t}=useTranslation(),inputRef=useRef(null),fileToAttachment=useFileToAttachment(),[attachmentsToAddToWorkspace,setAttachmentsToAddToWorkspace]=useState(void 0);if(!editMode&&!attachments.length)return null;let resetInputValue=()=>{inputRef.current&&(inputRef.current.value=``)},handleAttachClick=()=>inputRef?.current?.click(),handleFileChange=event=>{let files=Array.from(event.target.files??[]);if(files.length>0){let newAttachments=files.map(fileToAttachment);onChange?.([...attachments,...newAttachments]),onFilesSelected?.(files)}resetInputValue()},handleDetachAllClick=()=>{onChange?.([]),attachments.forEach(a=>onRemoveAttachment?.(a.id)),resetInputValue()},handleDetachClick=attachmentId=>{let next=attachments.filter(a=>a.id!==attachmentId);onChange?.(next),onRemoveAttachment?.(attachmentId),resetInputValue()},handleCopyToWorkspace=attachments=>{setAttachmentsToAddToWorkspace(attachments)};return jsxs(`div`,{className:clsx$1(`bg-gray-200 rounded px-12 py-8 message-attachments align-self-start gap-8 d-flex flex-column mw-100`,{"border add-attachments-edit mx-16":editMode}),"data-drag-handle":!0,children:[!!attachments.length&&jsxs(Fragment$1,{children:[jsxs(Flex,{direction:`row`,align:`center`,justify:`between`,className:`border-bottom`,children:[jsx(`span`,{className:`caption fw-bold my-8`,children:t(`attachments`)}),attachments.length>1&&jsxs(`div`,{children:[onCopyToWorkspace&&jsx(IconButton,{title:t(`conversation.copy.all.toworkspace`),color:`tertiary`,type:`button`,icon:jsx(SvgIconFolderAdd,{}),onClick:()=>handleCopyToWorkspace(attachments),variant:`ghost`}),downloadAllUrl&&jsx(`a`,{href:downloadAllUrl,download:!0,children:jsx(IconButton,{title:t(`download.all.attachment`),color:`tertiary`,type:`button`,icon:jsx(SvgIconDownload,{}),variant:`ghost`})}),editMode&&jsx(IconButton,{title:t(`remove.all.attachment`),color:`danger`,type:`button`,icon:jsx(SvgIconDelete,{}),variant:`ghost`,onClick:handleDetachAllClick,disabled:isMutating})]})]}),jsx(`ul`,{className:`d-flex gap-8 flex-column list-unstyled m-0`,children:attachments.map(attachment=>jsx(`li`,{className:`mw-100`,children:jsx(SingleAttachment,{attachment,editMode,onDelete:handleDetachClick,onCopyToWorkspace:onCopyToWorkspace?attachment=>handleCopyToWorkspace([attachment]):void 0,getDownloadUrl,disabled:isMutating})},`${attachment.id}-${attachment.name}`))})]}),editMode&&jsxs(Fragment$1,{children:[jsx(Button,{color:`secondary`,variant:`ghost`,isLoading:isMutating,onClick:handleAttachClick,disabled:isMutating,className:`align-self-start`,leftIcon:jsx(SvgIconPlus,{}),"data-testid":`common-add-attachments-button-add-attachment`,children:t(`add.attachment`)}),jsx(`input`,{ref:inputRef,multiple:!0,type:`file`,name:`attachment-input`,id:`attachment-input`,onChange:handleFileChange,hidden:!0})]}),onCopyToWorkspace&&!!attachmentsToAddToWorkspace&&jsx(AddAttachmentToWorkspaceModal,{isOpen:!0,onModalClose:()=>setAttachmentsToAddToWorkspace(void 0),attachments:attachmentsToAddToWorkspace,onCopyToWorkspace})]})};export{AddAttachments as default};
|
|
@@ -1,41 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { useState, useEffect } from "react";
|
|
3
|
-
import { createPortal } from "react-dom";
|
|
4
|
-
import { toast } from "react-hot-toast";
|
|
5
|
-
import { useTranslation } from "react-i18next";
|
|
6
|
-
import Modal from "../../Modal/Modal.js";
|
|
7
|
-
import WorkspaceFolders from "../../../modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
8
|
-
import Button from "../../Button/Button.js";
|
|
9
|
-
function AddAttachmentToWorkspaceModal({
|
|
10
|
-
attachments,
|
|
11
|
-
isOpen = !1,
|
|
12
|
-
onModalClose,
|
|
13
|
-
onCopyToWorkspace
|
|
14
|
-
}) {
|
|
15
|
-
const {
|
|
16
|
-
t
|
|
17
|
-
} = useTranslation(), [selectedFolderIdToCopyFile, setSelectedFolderIdToCopyFile] = useState(void 0), [isLoading, setIsLoading] = useState(!1), [disabled, setDisabled] = useState(!1), handleFolderSelected = (folderId, canCopyFileInto) => {
|
|
18
|
-
setSelectedFolderIdToCopyFile(canCopyFileInto ? folderId : void 0);
|
|
19
|
-
}, handleAddAttachmentToWorkspace = async () => {
|
|
20
|
-
if (selectedFolderIdToCopyFile === void 0) return;
|
|
21
|
-
setIsLoading(!0), await onCopyToWorkspace(attachments, selectedFolderIdToCopyFile) ? onModalClose() : toast.error(t("attachments.add.to.folder.modal.error")), setIsLoading(!1);
|
|
22
|
-
};
|
|
23
|
-
return useEffect(() => {
|
|
24
|
-
setDisabled(selectedFolderIdToCopyFile === void 0);
|
|
25
|
-
}, [selectedFolderIdToCopyFile]), /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { isOpen, onModalClose, id: "add-attachment-to-workspace-modal", size: "md", children: [
|
|
26
|
-
/* @__PURE__ */ jsx(Modal.Header, { onModalClose, children: t("attachments.add.to.folder.modal.title") }),
|
|
27
|
-
/* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsxs("div", { className: "d-flex flex-column gap-12", children: [
|
|
28
|
-
/* @__PURE__ */ jsx("p", { children: t("attachments.add.to.folder.modal.description", {
|
|
29
|
-
count: attachments.length
|
|
30
|
-
}) }),
|
|
31
|
-
/* @__PURE__ */ jsx(WorkspaceFolders, { onFolderSelected: handleFolderSelected })
|
|
32
|
-
] }) }),
|
|
33
|
-
/* @__PURE__ */ jsxs(Modal.Footer, { children: [
|
|
34
|
-
/* @__PURE__ */ jsx(Button, { type: "button", color: "tertiary", variant: "ghost", onClick: onModalClose, children: t("attachments.add.to.folder.modal.cancel") }),
|
|
35
|
-
/* @__PURE__ */ jsx(Button, { color: "primary", variant: "filled", onClick: handleAddAttachmentToWorkspace, disabled: isLoading || disabled, isLoading, children: t("attachments.add.to.folder.modal.add") })
|
|
36
|
-
] })
|
|
37
|
-
] }), document.getElementById("portal"));
|
|
38
|
-
}
|
|
39
|
-
export {
|
|
40
|
-
AddAttachmentToWorkspaceModal
|
|
41
|
-
};
|
|
1
|
+
import Button from"../../Button/Button.js";import WorkspaceFolders from"../../../modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";import Modal from"../../Modal/Modal.js";import{useEffect,useState}from"react";import{jsx,jsxs}from"react/jsx-runtime";import{useTranslation}from"react-i18next";import{createPortal}from"react-dom";import{toast as toast$1}from"react-hot-toast";function AddAttachmentToWorkspaceModal({attachments,isOpen=!1,onModalClose,onCopyToWorkspace}){let{t}=useTranslation(),[selectedFolderIdToCopyFile,setSelectedFolderIdToCopyFile]=useState(void 0),[isLoading,setIsLoading]=useState(!1),[disabled,setDisabled]=useState(!1);return useEffect(()=>{setDisabled(selectedFolderIdToCopyFile===void 0)},[selectedFolderIdToCopyFile]),createPortal(jsxs(Modal,{isOpen,onModalClose,id:`add-attachment-to-workspace-modal`,size:`md`,children:[jsx(Modal.Header,{onModalClose,children:t(`attachments.add.to.folder.modal.title`)}),jsx(Modal.Body,{children:jsxs(`div`,{className:`d-flex flex-column gap-12`,children:[jsx(`p`,{children:t(`attachments.add.to.folder.modal.description`,{count:attachments.length})}),jsx(WorkspaceFolders,{onFolderSelected:(folderId,canCopyFileInto)=>{setSelectedFolderIdToCopyFile(canCopyFileInto?folderId:void 0)}})]})}),jsxs(Modal.Footer,{children:[jsx(Button,{type:`button`,color:`tertiary`,variant:`ghost`,onClick:onModalClose,children:t(`attachments.add.to.folder.modal.cancel`)}),jsx(Button,{color:`primary`,variant:`filled`,onClick:async()=>{selectedFolderIdToCopyFile!==void 0&&(setIsLoading(!0),await onCopyToWorkspace(attachments,selectedFolderIdToCopyFile)?onModalClose():toast$1.error(t(`attachments.add.to.folder.modal.error`)),setIsLoading(!1))},disabled:isLoading||disabled,isLoading,children:t(`attachments.add.to.folder.modal.add`)})]})]}),document.getElementById(`portal`))}export{AddAttachmentToWorkspaceModal};
|
|
@@ -1,27 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import SvgIconDelete from "../../../modules/icons/components/IconDelete.js";
|
|
3
|
-
import SvgIconDownload from "../../../modules/icons/components/IconDownload.js";
|
|
4
|
-
import SvgIconFolderAdd from "../../../modules/icons/components/IconFolderAdd.js";
|
|
5
|
-
import { useTranslation } from "react-i18next";
|
|
6
|
-
import Attachment from "../../Attachment/Attachment.js";
|
|
7
|
-
import IconButton from "../../Button/IconButton.js";
|
|
8
|
-
function SingleAttachment({
|
|
9
|
-
attachment,
|
|
10
|
-
onDelete,
|
|
11
|
-
editMode = !1,
|
|
12
|
-
onCopyToWorkspace,
|
|
13
|
-
getDownloadUrl,
|
|
14
|
-
disabled = !1
|
|
15
|
-
}) {
|
|
16
|
-
const {
|
|
17
|
-
t
|
|
18
|
-
} = useTranslation(), downloadUrl = getDownloadUrl == null ? void 0 : getDownloadUrl(attachment.id);
|
|
19
|
-
return /* @__PURE__ */ jsx(Attachment, { name: attachment.filename, options: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
|
-
onCopyToWorkspace && /* @__PURE__ */ jsx(IconButton, { title: t("conversation.copy.toworkspace"), color: "tertiary", type: "button", icon: /* @__PURE__ */ jsx(SvgIconFolderAdd, {}), variant: "ghost", onClick: () => onCopyToWorkspace(attachment), disabled }),
|
|
21
|
-
downloadUrl !== void 0 && /* @__PURE__ */ jsx("a", { href: downloadUrl, download: !0, children: /* @__PURE__ */ jsx(IconButton, { title: t("download.attachment"), color: "tertiary", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDownload, {}), variant: "ghost", disabled }) }),
|
|
22
|
-
editMode && /* @__PURE__ */ jsx(IconButton, { title: t("remove.attachment"), color: "danger", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDelete, {}), variant: "ghost", onClick: () => onDelete(attachment.id), disabled })
|
|
23
|
-
] }) });
|
|
24
|
-
}
|
|
25
|
-
export {
|
|
26
|
-
SingleAttachment
|
|
27
|
-
};
|
|
1
|
+
import SvgIconDelete from"../../../modules/icons/components/IconDelete.js";import SvgIconDownload from"../../../modules/icons/components/IconDownload.js";import SvgIconFolderAdd from"../../../modules/icons/components/IconFolderAdd.js";import IconButton from"../../Button/IconButton.js";import Attachment from"../../Attachment/Attachment.js";import{Fragment,jsx,jsxs}from"react/jsx-runtime";import{useTranslation}from"react-i18next";function SingleAttachment({attachment,onDelete,editMode=!1,onCopyToWorkspace,getDownloadUrl,disabled=!1}){let{t}=useTranslation(),downloadUrl=getDownloadUrl?.(attachment.id);return jsx(Attachment,{name:attachment.filename,options:jsxs(Fragment,{children:[onCopyToWorkspace&&jsx(IconButton,{title:t(`conversation.copy.toworkspace`),color:`tertiary`,type:`button`,icon:jsx(SvgIconFolderAdd,{}),variant:`ghost`,onClick:()=>onCopyToWorkspace(attachment),disabled}),downloadUrl!==void 0&&jsx(`a`,{href:downloadUrl,download:!0,children:jsx(IconButton,{title:t(`download.attachment`),color:`tertiary`,type:`button`,icon:jsx(SvgIconDownload,{}),variant:`ghost`,disabled})}),editMode&&jsx(IconButton,{title:t(`remove.attachment`),color:`danger`,type:`button`,icon:jsx(SvgIconDelete,{}),variant:`ghost`,onClick:()=>onDelete(attachment.id),disabled})]})})}export{SingleAttachment};
|
|
@@ -1,16 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
function useFileToAttachment() {
|
|
3
|
-
return useCallback((file) => ({
|
|
4
|
-
id: `${file.name}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`,
|
|
5
|
-
charset: "UTF-8",
|
|
6
|
-
contentTransferEncoding: "binary",
|
|
7
|
-
contentType: file.type || "application/octet-stream",
|
|
8
|
-
filename: file.name,
|
|
9
|
-
name: file.name,
|
|
10
|
-
size: file.size,
|
|
11
|
-
file
|
|
12
|
-
}), []);
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
useFileToAttachment
|
|
16
|
-
};
|
|
1
|
+
import{useCallback}from"react";function useFileToAttachment(){return useCallback(file=>({id:`${file.name}-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,charset:`UTF-8`,contentTransferEncoding:`binary`,contentType:file.type||`application/octet-stream`,filename:file.name,name:file.name,size:file.size,file}),[])}export{useFileToAttachment};
|
|
@@ -1,105 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef, useState, useRef, useCallback, useEffect, useImperativeHandle, useLayoutEffect } from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { useTranslation } from "react-i18next";
|
|
5
|
-
import SvgIconAlertTriangle from "../../modules/icons/components/IconAlertTriangle.js";
|
|
6
|
-
import SvgIconClose from "../../modules/icons/components/IconClose.js";
|
|
7
|
-
import SvgIconError from "../../modules/icons/components/IconError.js";
|
|
8
|
-
import SvgIconInfoCircle from "../../modules/icons/components/IconInfoCircle.js";
|
|
9
|
-
import SvgIconSuccessOutline from "../../modules/icons/components/IconSuccessOutline.js";
|
|
10
|
-
import ButtonBeta from "../ButtonBeta/ButtonBeta.js";
|
|
11
|
-
const TOAST_EXIT_ANIMATION_DURATION = 240, getToastAnimationClass = (position, isClosing) => position === "top-left" || position === "bottom-left" ? isClosing ? "alert-slide-out-left" : "alert-slide-in-left" : position === "top-right" || position === "bottom-right" ? isClosing ? "alert-slide-out-right" : "alert-slide-in-right" : isClosing ? "alert-fade-out" : "alert-fade-in", Alert = /* @__PURE__ */ forwardRef(({
|
|
12
|
-
type = "success",
|
|
13
|
-
className = "",
|
|
14
|
-
children,
|
|
15
|
-
button,
|
|
16
|
-
isDismissible = !1,
|
|
17
|
-
isToast = !1,
|
|
18
|
-
isConfirm = !1,
|
|
19
|
-
position = "none",
|
|
20
|
-
autoClose = !1,
|
|
21
|
-
autoCloseDelay = 3e3,
|
|
22
|
-
onClose,
|
|
23
|
-
onVisibilityChange
|
|
24
|
-
}, ref) => {
|
|
25
|
-
const [isVisible, setVisibleStatus] = useState(!0), [isClosing, setIsClosing] = useState(!1), refAlert = useRef(null), {
|
|
26
|
-
t
|
|
27
|
-
} = useTranslation(), hide = useCallback(() => {
|
|
28
|
-
if (isToast) {
|
|
29
|
-
setIsClosing(!0);
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
setVisibleStatus(!1), onClose == null || onClose();
|
|
33
|
-
}, [isToast, onClose]);
|
|
34
|
-
useEffect(() => {
|
|
35
|
-
if (!isClosing)
|
|
36
|
-
return;
|
|
37
|
-
const timeoutId = setTimeout(() => {
|
|
38
|
-
setVisibleStatus(!1), onClose == null || onClose();
|
|
39
|
-
}, TOAST_EXIT_ANIMATION_DURATION);
|
|
40
|
-
return () => clearTimeout(timeoutId);
|
|
41
|
-
}, [isClosing, onClose]);
|
|
42
|
-
const handleToastClick = () => {
|
|
43
|
-
isToast && !isConfirm && hide();
|
|
44
|
-
};
|
|
45
|
-
useImperativeHandle(ref, () => ({
|
|
46
|
-
show,
|
|
47
|
-
hide,
|
|
48
|
-
...refAlert.current
|
|
49
|
-
})), useLayoutEffect(() => {
|
|
50
|
-
onVisibilityChange == null || onVisibilityChange(isVisible);
|
|
51
|
-
}, [isVisible, onVisibilityChange]);
|
|
52
|
-
const shouldAutoClose = autoClose && isVisible && !isClosing, showProgress = autoClose && isToast && !isDismissible && !isClosing, remainingRef = useRef(autoCloseDelay), timeoutRef = useRef(), startedAtRef = useRef(0), [isPaused, setIsPaused] = useState(!1), clearAutoCloseTimeout = useCallback(() => {
|
|
53
|
-
timeoutRef.current && (clearTimeout(timeoutRef.current), timeoutRef.current = void 0);
|
|
54
|
-
}, []);
|
|
55
|
-
useEffect(() => {
|
|
56
|
-
if (shouldAutoClose)
|
|
57
|
-
return remainingRef.current = autoCloseDelay, startedAtRef.current = Date.now(), timeoutRef.current = setTimeout(hide, autoCloseDelay), clearAutoCloseTimeout;
|
|
58
|
-
}, [shouldAutoClose, autoCloseDelay, hide, clearAutoCloseTimeout]);
|
|
59
|
-
const handleMouseEnter = () => {
|
|
60
|
-
!shouldAutoClose || isPaused || (clearAutoCloseTimeout(), remainingRef.current = Math.max(remainingRef.current - (Date.now() - startedAtRef.current), 0), setIsPaused(!0));
|
|
61
|
-
}, handleMouseLeave = () => {
|
|
62
|
-
!shouldAutoClose || !isPaused || (startedAtRef.current = Date.now(), timeoutRef.current = setTimeout(hide, remainingRef.current), setIsPaused(!1));
|
|
63
|
-
}, show = () => {
|
|
64
|
-
setIsClosing(!1), setVisibleStatus(!0);
|
|
65
|
-
}, mapping = {
|
|
66
|
-
success: {
|
|
67
|
-
icon: /* @__PURE__ */ jsx(SvgIconSuccessOutline, {}),
|
|
68
|
-
classModifier: "alert-success"
|
|
69
|
-
},
|
|
70
|
-
warning: {
|
|
71
|
-
icon: /* @__PURE__ */ jsx(SvgIconAlertTriangle, {}),
|
|
72
|
-
classModifier: "alert-warning"
|
|
73
|
-
},
|
|
74
|
-
info: {
|
|
75
|
-
icon: /* @__PURE__ */ jsx(SvgIconInfoCircle, {}),
|
|
76
|
-
classModifier: "alert-info"
|
|
77
|
-
},
|
|
78
|
-
danger: {
|
|
79
|
-
icon: /* @__PURE__ */ jsx(SvgIconError, {}),
|
|
80
|
-
classModifier: "alert-danger"
|
|
81
|
-
}
|
|
82
|
-
}, toastClasses = {
|
|
83
|
-
"is-dismissible": isDismissible,
|
|
84
|
-
"is-toast": isToast
|
|
85
|
-
}, confirmClasses = {
|
|
86
|
-
"is-confirm": isConfirm
|
|
87
|
-
}, divContainerClasses = clsx("alert gap-12", mapping[type].classModifier, toastClasses, confirmClasses, position, isToast && getToastAnimationClass(position, isClosing), className);
|
|
88
|
-
return /* @__PURE__ */ jsx(Fragment, { children: isVisible ? /* @__PURE__ */ jsxs("div", { ref: refAlert, className: divContainerClasses, role: "alert", onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, onClick: handleToastClick, children: [
|
|
89
|
-
!isConfirm && mapping[type].icon,
|
|
90
|
-
/* @__PURE__ */ jsx("div", { className: "alert-content small flex-grow-1", children }),
|
|
91
|
-
button && /* @__PURE__ */ jsxs("div", { className: "alert-actions", onClick: (e) => e.stopPropagation(), children: [
|
|
92
|
-
button,
|
|
93
|
-
isConfirm && /* @__PURE__ */ jsx(ButtonBeta, { onClick: hide, children: t("close") })
|
|
94
|
-
] }),
|
|
95
|
-
(isDismissible || isConfirm) && /* @__PURE__ */ jsx("div", { className: "btn-close-container", onClick: (e) => e.stopPropagation(), children: /* @__PURE__ */ jsx(ButtonBeta, { type: "button", leftIcon: /* @__PURE__ */ jsx(SvgIconClose, {}), variant: "ghost", color: "tertiary", "aria-label": t("close"), title: t("close"), onClick: hide }) }),
|
|
96
|
-
showProgress && /* @__PURE__ */ jsx("div", { className: clsx("alert-progress", {
|
|
97
|
-
"is-paused": isPaused
|
|
98
|
-
}), style: {
|
|
99
|
-
"--alert-progress-duration": `${autoCloseDelay}ms`
|
|
100
|
-
} })
|
|
101
|
-
] }) : null });
|
|
102
|
-
});
|
|
103
|
-
export {
|
|
104
|
-
Alert as default
|
|
105
|
-
};
|
|
1
|
+
import SvgIconAlertTriangle from"../../modules/icons/components/IconAlertTriangle.js";import SvgIconClose from"../../modules/icons/components/IconClose.js";import SvgIconError from"../../modules/icons/components/IconError.js";import SvgIconInfoCircle from"../../modules/icons/components/IconInfoCircle.js";import SvgIconSuccessOutline from"../../modules/icons/components/IconSuccessOutline.js";import ButtonBeta from"../ButtonBeta/ButtonBeta.js";import clsx$1 from"clsx";import{forwardRef,useCallback,useEffect,useImperativeHandle,useLayoutEffect,useRef,useState}from"react";import{Fragment as Fragment$1,jsx,jsxs}from"react/jsx-runtime";import{useTranslation}from"react-i18next";var TOAST_EXIT_ANIMATION_DURATION=240,getToastAnimationClass=(position,isClosing)=>position===`top-left`||position===`bottom-left`?isClosing?`alert-slide-out-left`:`alert-slide-in-left`:position===`top-right`||position===`bottom-right`?isClosing?`alert-slide-out-right`:`alert-slide-in-right`:isClosing?`alert-fade-out`:`alert-fade-in`,Alert=forwardRef(({type=`success`,className=``,children,button,isDismissible=!1,isToast=!1,isConfirm=!1,position=`none`,autoClose=!1,autoCloseDelay=3e3,onClose,onVisibilityChange},ref)=>{let[isVisible,setVisibleStatus]=useState(!0),[isClosing,setIsClosing]=useState(!1),refAlert=useRef(null),{t}=useTranslation(),hide=useCallback(()=>{if(isToast){setIsClosing(!0);return}setVisibleStatus(!1),onClose?.()},[isToast,onClose]);useEffect(()=>{if(!isClosing)return;let timeoutId=setTimeout(()=>{setVisibleStatus(!1),onClose?.()},TOAST_EXIT_ANIMATION_DURATION);return()=>clearTimeout(timeoutId)},[isClosing,onClose]);let handleToastClick=()=>{isToast&&!isConfirm&&hide()};useImperativeHandle(ref,()=>({show,hide,...refAlert.current})),useLayoutEffect(()=>{onVisibilityChange?.(isVisible)},[isVisible,onVisibilityChange]);let shouldAutoClose=autoClose&&isVisible&&!isClosing,showProgress=autoClose&&isToast&&!isDismissible&&!isClosing,remainingRef=useRef(autoCloseDelay),timeoutRef=useRef(),startedAtRef=useRef(0),[isPaused,setIsPaused]=useState(!1),clearAutoCloseTimeout=useCallback(()=>{timeoutRef.current&&=(clearTimeout(timeoutRef.current),void 0)},[]);useEffect(()=>{if(shouldAutoClose)return remainingRef.current=autoCloseDelay,startedAtRef.current=Date.now(),timeoutRef.current=setTimeout(hide,autoCloseDelay),clearAutoCloseTimeout},[shouldAutoClose,autoCloseDelay,hide,clearAutoCloseTimeout]);let handleMouseEnter=()=>{!shouldAutoClose||isPaused||(clearAutoCloseTimeout(),remainingRef.current=Math.max(remainingRef.current-(Date.now()-startedAtRef.current),0),setIsPaused(!0))},handleMouseLeave=()=>{!shouldAutoClose||!isPaused||(startedAtRef.current=Date.now(),timeoutRef.current=setTimeout(hide,remainingRef.current),setIsPaused(!1))},show=()=>{setIsClosing(!1),setVisibleStatus(!0)},mapping={success:{icon:jsx(SvgIconSuccessOutline,{}),classModifier:`alert-success`},warning:{icon:jsx(SvgIconAlertTriangle,{}),classModifier:`alert-warning`},info:{icon:jsx(SvgIconInfoCircle,{}),classModifier:`alert-info`},danger:{icon:jsx(SvgIconError,{}),classModifier:`alert-danger`}},toastClasses={"is-dismissible":isDismissible,"is-toast":isToast},confirmClasses={"is-confirm":isConfirm},divContainerClasses=clsx$1(`alert gap-12`,mapping[type].classModifier,toastClasses,confirmClasses,position,isToast&&getToastAnimationClass(position,isClosing),className);return jsx(Fragment$1,{children:isVisible?jsxs(`div`,{ref:refAlert,className:divContainerClasses,role:`alert`,onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,onClick:handleToastClick,children:[!isConfirm&&mapping[type].icon,jsx(`div`,{className:`alert-content small flex-grow-1`,children}),button&&jsxs(`div`,{className:`alert-actions`,onClick:e=>e.stopPropagation(),children:[button,isConfirm&&jsx(ButtonBeta,{onClick:hide,children:t(`close`)})]}),(isDismissible||isConfirm)&&jsx(`div`,{className:`btn-close-container`,onClick:e=>e.stopPropagation(),children:jsx(ButtonBeta,{type:`button`,leftIcon:jsx(SvgIconClose,{}),variant:`ghost`,color:`tertiary`,"aria-label":t(`close`),title:t(`close`),onClick:hide})}),showProgress&&jsx(`div`,{className:clsx$1(`alert-progress`,{"is-paused":isPaused}),style:{"--alert-progress-duration":`${autoCloseDelay}ms`}})]}):null})});export{Alert as default};
|
|
@@ -1,22 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
const AppHeader = /* @__PURE__ */ forwardRef(({
|
|
5
|
-
children,
|
|
6
|
-
render,
|
|
7
|
-
isFullscreen = !1,
|
|
8
|
-
...restProps
|
|
9
|
-
}, ref) => {
|
|
10
|
-
const classes = clsx("d-flex flex-wrap p-16 gap-8 border-bottom bg-white", {
|
|
11
|
-
"justify-content-between": render,
|
|
12
|
-
"mx-n16": !isFullscreen,
|
|
13
|
-
"z-3 top-0 start-0 end-0": isFullscreen
|
|
14
|
-
});
|
|
15
|
-
return /* @__PURE__ */ jsxs("div", { ref, className: classes, ...restProps, children: [
|
|
16
|
-
children,
|
|
17
|
-
render ? /* @__PURE__ */ jsx("div", { className: "d-flex align-items-center ms-auto gap-8", children: render() }) : null
|
|
18
|
-
] });
|
|
19
|
-
});
|
|
20
|
-
export {
|
|
21
|
-
AppHeader as default
|
|
22
|
-
};
|
|
1
|
+
import clsx$1 from"clsx";import{forwardRef}from"react";import{jsx,jsxs}from"react/jsx-runtime";var AppHeader=forwardRef(({children,render,isFullscreen=!1,...restProps},ref)=>jsxs(`div`,{ref,className:clsx$1(`d-flex flex-wrap p-16 gap-8 border-bottom bg-white`,{"justify-content-between":render,"mx-n16":!isFullscreen,"z-3 top-0 start-0 end-0":isFullscreen}),...restProps,children:[children,render?jsx(`div`,{className:`d-flex align-items-center ms-auto gap-8`,children:render()}):null]}));export{AppHeader as default};
|
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { IWebApp } from '@edifice.io/client';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Predefined icon sizes (in px). These keep their exact historical padding
|
|
4
|
+
* when `iconFit="ratio"`.
|
|
5
|
+
*/
|
|
6
|
+
export type PredefinedAppIconSize = '24' | '32' | '40' | '48' | '80' | '160';
|
|
7
|
+
/**
|
|
8
|
+
* Icon size, in px, as a numeric string. Accepts the predefined sizes as well
|
|
9
|
+
* as any custom numeric value (e.g. `'16'`, `'20'`). In `iconFit="ratio"`
|
|
10
|
+
* mode, custom sizes get an automatically computed padding (no CSS override
|
|
11
|
+
* needed).
|
|
12
|
+
*
|
|
13
|
+
* Values with a unit (e.g. `'24px'`, `'2rem'`) are rejected: the component
|
|
14
|
+
* appends `px` itself.
|
|
15
|
+
*/
|
|
16
|
+
export type AppIconSize = PredefinedAppIconSize | `${number}`;
|
|
3
17
|
export interface BaseProps {
|
|
4
18
|
/**
|
|
5
19
|
* Define icon size
|
|
@@ -1,60 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { forwardRef, useState, useEffect } from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import * as iconsApps from "../../icons-apps.js";
|
|
5
|
-
import useEdificeIcons from "../../hooks/useEdificeIcons/useEdificeIcons.js";
|
|
6
|
-
import SvgIconPlaceholder from "../../modules/icons/components/apps/IconPlaceholder.js";
|
|
7
|
-
import Image from "../Image/Image.js";
|
|
8
|
-
const AppIcon = /* @__PURE__ */ forwardRef(({
|
|
9
|
-
app,
|
|
10
|
-
size = "24",
|
|
11
|
-
iconFit = "contain",
|
|
12
|
-
variant = "square",
|
|
13
|
-
className = ""
|
|
14
|
-
}, ref) => {
|
|
15
|
-
const {
|
|
16
|
-
isIconUrl,
|
|
17
|
-
getIconCode
|
|
18
|
-
} = useEdificeIcons(), [imageLoadFailed, setImageLoadFailed] = useState(!1), isSquare = variant === "square", isRounded = variant === "rounded", isCircle = variant === "circle", isContain = iconFit === "contain", isRatio = iconFit === "ratio", iconSizes = {
|
|
19
|
-
"icon-xs": size === "24",
|
|
20
|
-
"icon-sm": size === "40",
|
|
21
|
-
"icon-md": size === "48",
|
|
22
|
-
"icon-lg": size === "80",
|
|
23
|
-
"icon-xl": size === "160"
|
|
24
|
-
}, iconVariant = {
|
|
25
|
-
square: isSquare,
|
|
26
|
-
rounded: isRounded,
|
|
27
|
-
"rounded-circle": isCircle
|
|
28
|
-
}, iconFits = {
|
|
29
|
-
"icon-contain": isContain,
|
|
30
|
-
"icon-ratio": isRatio
|
|
31
|
-
}, icon = typeof app == "string" ? app : (app == null ? void 0 : app.icon) !== void 0 ? app.icon : "placeholder", displayName = typeof app != "string" && ((app == null ? void 0 : app.displayName) || (app == null ? void 0 : app.name)) || "", code = app ? getIconCode(app) : "", iconIsUrl = !!isIconUrl(icon), isIconURL = iconIsUrl && !imageLoadFailed, showLetterFallback = iconIsUrl && imageLoadFailed && !!displayName;
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
setImageLoadFailed(!1);
|
|
34
|
-
}, [icon]);
|
|
35
|
-
const appCode = iconIsUrl ? "placeholder" : code || "placeholder", classes = clsx("app-icon", {
|
|
36
|
-
...iconSizes,
|
|
37
|
-
...iconVariant,
|
|
38
|
-
...iconFits,
|
|
39
|
-
[`bg-light-${appCode}`]: !isContain,
|
|
40
|
-
[`color-app-${appCode}`]: appCode,
|
|
41
|
-
"bg-app-light": !isContain,
|
|
42
|
-
"color-app": appCode,
|
|
43
|
-
[`app-${appCode}`]: appCode
|
|
44
|
-
}, className), IconComponent = iconsApps[`Icon${appCode.split("-").map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join("")}`] ?? SvgIconPlaceholder;
|
|
45
|
-
if (isIconURL) {
|
|
46
|
-
const classes2 = clsx("h-full", className);
|
|
47
|
-
return /* @__PURE__ */ jsx(Image, { src: icon, alt: displayName, objectFit: "contain", width: size, height: size, className: classes2, style: {
|
|
48
|
-
minWidth: size + "px"
|
|
49
|
-
}, onError: () => setImageLoadFailed(!0) });
|
|
50
|
-
}
|
|
51
|
-
return /* @__PURE__ */ jsx("div", { ref, className: classes, style: {
|
|
52
|
-
width: size + "px",
|
|
53
|
-
height: size + "px"
|
|
54
|
-
}, children: showLetterFallback ? /* @__PURE__ */ jsx("span", { className: "app-icon-letter", style: {
|
|
55
|
-
fontSize: size + "px"
|
|
56
|
-
}, children: displayName.charAt(0).toUpperCase() }) : /* @__PURE__ */ jsx(IconComponent, { width: size, height: size }) });
|
|
57
|
-
});
|
|
58
|
-
export {
|
|
59
|
-
AppIcon as default
|
|
60
|
-
};
|
|
1
|
+
import useEdificeIcons from"../../hooks/useEdificeIcons/useEdificeIcons.js";import Image from"../Image/Image.js";import SvgIconPlaceholder from"../../modules/icons/components/apps/IconPlaceholder.js";import{apps_exports}from"../../icons-apps.js";import clsx$1 from"clsx";import{forwardRef,useEffect,useState}from"react";import{jsx}from"react/jsx-runtime";var AppIcon=forwardRef(({app,size=`24`,iconFit=`contain`,variant=`square`,className=``},ref)=>{let{isIconUrl,getIconCode}=useEdificeIcons(),[imageLoadFailed,setImageLoadFailed]=useState(!1),isSquare=variant===`square`,isRounded=variant===`rounded`,isCircle=variant===`circle`,isContain=iconFit===`contain`,isRatio=iconFit===`ratio`,iconSizes={"icon-xs":size===`24`,"icon-sm":size===`40`,"icon-md":size===`48`,"icon-lg":size===`80`,"icon-xl":size===`160`},iconVariant={square:isSquare,rounded:isRounded,"rounded-circle":isCircle},iconFits={"icon-contain":isContain,"icon-ratio":isRatio},icon=typeof app==`string`?app:app?.icon===void 0?`placeholder`:app.icon,displayName=typeof app==`string`?``:app?.displayName||app?.name||``,code=app?getIconCode(app):``,iconIsUrl=!!isIconUrl(icon),isIconURL=iconIsUrl&&!imageLoadFailed,showLetterFallback=iconIsUrl&&imageLoadFailed&&!!displayName;useEffect(()=>{setImageLoadFailed(!1)},[icon]);let appCode=iconIsUrl?`placeholder`:code||`placeholder`,classes=clsx$1(`app-icon`,{...iconSizes,...iconVariant,...iconFits,[`bg-light-${appCode}`]:!isContain,[`color-app-${appCode}`]:appCode,"bg-app-light":!isContain,"color-app":appCode,[`app-${appCode}`]:appCode},className),IconComponent=apps_exports[`Icon${appCode.split(`-`).map(part=>part.charAt(0).toUpperCase()+part.slice(1)).join(``)}`]??SvgIconPlaceholder;return isIconURL?jsx(Image,{src:icon,alt:displayName,objectFit:`contain`,width:size,height:size,className:clsx$1(`h-full`,className),style:{minWidth:size+`px`},onError:()=>setImageLoadFailed(!0)}):jsx(`div`,{ref,className:classes,style:{width:size+`px`,height:size+`px`,"--app-icon-size":size+`px`},children:showLetterFallback?jsx(`span`,{className:`app-icon-letter`,style:{fontSize:size+`px`},children:displayName.charAt(0).toUpperCase()}):jsx(IconComponent,{width:size,height:size})})});export{AppIcon as default};
|
|
@@ -1,18 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import SvgIconPaperclip from "../../modules/icons/components/IconPaperclip.js";
|
|
4
|
-
import Tooltip from "../Tooltip/Tooltip.js";
|
|
5
|
-
const Attachment = /* @__PURE__ */ forwardRef(({
|
|
6
|
-
name = "Attachment Name",
|
|
7
|
-
options,
|
|
8
|
-
...restProps
|
|
9
|
-
}, ref) => /* @__PURE__ */ jsxs("div", { ref, className: "attachment px-12 py-8", ...restProps, tabIndex: 0, children: [
|
|
10
|
-
/* @__PURE__ */ jsxs(Tooltip, { message: name, className: "filename text-truncate d-flex align-items-center gap-8", children: [
|
|
11
|
-
/* @__PURE__ */ jsx(SvgIconPaperclip, { height: 22, width: 22 }),
|
|
12
|
-
/* @__PURE__ */ jsx("div", { className: "filename text-truncate", children: name })
|
|
13
|
-
] }),
|
|
14
|
-
options && /* @__PURE__ */ jsx("div", { className: "options ps-12", children: options })
|
|
15
|
-
] }));
|
|
16
|
-
export {
|
|
17
|
-
Attachment as default
|
|
18
|
-
};
|
|
1
|
+
import SvgIconPaperclip from"../../modules/icons/components/IconPaperclip.js";import Tooltip from"../Tooltip/Tooltip.js";import{forwardRef}from"react";import{jsx,jsxs}from"react/jsx-runtime";var Attachment=forwardRef(({name=`Attachment Name`,options,...restProps},ref)=>jsxs(`div`,{ref,className:`attachment px-12 py-8`,...restProps,tabIndex:0,children:[jsxs(Tooltip,{message:name,className:`filename text-truncate d-flex align-items-center gap-8`,children:[jsx(SvgIconPaperclip,{height:22,width:22}),jsx(`div`,{className:`filename text-truncate`,children:name})]}),options&&jsx(`div`,{className:`options ps-12`,children:options})]}));export{Attachment as default};
|
|
@@ -1,53 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import noAvatar from "@edifice.io/bootstrap/dist/images/avatar/no-avatar.svg";
|
|
5
|
-
import Image from "../Image/Image.js";
|
|
6
|
-
const Avatar = /* @__PURE__ */ forwardRef(({
|
|
7
|
-
variant = "square",
|
|
8
|
-
size = "md",
|
|
9
|
-
alt,
|
|
10
|
-
src,
|
|
11
|
-
imgPlaceholder,
|
|
12
|
-
className,
|
|
13
|
-
innerBorderColor,
|
|
14
|
-
innerBorderWidth,
|
|
15
|
-
outerBorderColor,
|
|
16
|
-
outerBorderWidth,
|
|
17
|
-
outerBorderOffset,
|
|
18
|
-
cover,
|
|
19
|
-
...restProps
|
|
20
|
-
}, ref) => {
|
|
21
|
-
const placeholder = imgPlaceholder || noAvatar, classes = clsx("avatar", {
|
|
22
|
-
...{
|
|
23
|
-
"avatar-xs": size === "xs",
|
|
24
|
-
"avatar-sm": size === "sm",
|
|
25
|
-
"avatar-md": size === "md",
|
|
26
|
-
"avatar-lg": size === "lg",
|
|
27
|
-
"avatar-xl": size === "xl",
|
|
28
|
-
"avatar-auto": size === "auto"
|
|
29
|
-
},
|
|
30
|
-
...{
|
|
31
|
-
square: variant === "square",
|
|
32
|
-
rounded: variant === "rounded",
|
|
33
|
-
"rounded-circle": variant === "circle"
|
|
34
|
-
}
|
|
35
|
-
}, {
|
|
36
|
-
"avatar-with-cover": cover
|
|
37
|
-
}, className), style = {
|
|
38
|
-
...outerBorderColor && {
|
|
39
|
-
outline: `${outerBorderWidth}px solid var(--edifice-${outerBorderColor})`,
|
|
40
|
-
outlineOffset: outerBorderOffset
|
|
41
|
-
},
|
|
42
|
-
...innerBorderColor && {
|
|
43
|
-
border: `${innerBorderWidth}px solid var(--edifice-${innerBorderColor})`
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
return /* @__PURE__ */ jsxs("div", { ref, className: classes, style, children: [
|
|
47
|
-
/* @__PURE__ */ jsx(Image, { src: src || placeholder, alt, imgPlaceholder: placeholder, ...restProps }),
|
|
48
|
-
cover && /* @__PURE__ */ jsx("div", { className: "avatar-cover", children: cover })
|
|
49
|
-
] });
|
|
50
|
-
});
|
|
51
|
-
export {
|
|
52
|
-
Avatar as default
|
|
53
|
-
};
|
|
1
|
+
import Image from"../Image/Image.js";import clsx$1 from"clsx";import{forwardRef}from"react";import{jsx,jsxs}from"react/jsx-runtime";import noAvatar from"@edifice.io/bootstrap/dist/images/avatar/no-avatar.svg";var Avatar=forwardRef(({variant=`square`,size=`md`,alt,src,imgPlaceholder,className,innerBorderColor,innerBorderWidth,outerBorderColor,outerBorderWidth,outerBorderOffset,cover,...restProps},ref)=>{let placeholder=imgPlaceholder||noAvatar,isSquare=variant===`square`,isRounded=variant===`rounded`,isCircle=variant===`circle`,avatarSizes={"avatar-xs":size===`xs`,"avatar-sm":size===`sm`,"avatar-md":size===`md`,"avatar-lg":size===`lg`,"avatar-xl":size===`xl`,"avatar-auto":size===`auto`},avatarVariants={square:isSquare,rounded:isRounded,"rounded-circle":isCircle};return jsxs(`div`,{ref,className:clsx$1(`avatar`,{...avatarSizes,...avatarVariants},{"avatar-with-cover":cover},className),style:{...outerBorderColor&&{outline:`${outerBorderWidth}px solid var(--edifice-${outerBorderColor})`,outlineOffset:outerBorderOffset},...innerBorderColor&&{border:`${innerBorderWidth}px solid var(--edifice-${innerBorderColor})`}},children:[jsx(Image,{src:src||placeholder,alt,imgPlaceholder:placeholder,...restProps}),cover&&jsx(`div`,{className:`avatar-cover`,children:cover})]})});export{Avatar as default};
|
|
@@ -1,24 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import StackedGroup from "../StackedGroup/StackedGroup.js";
|
|
5
|
-
import Avatar from "../Avatar/Avatar.js";
|
|
6
|
-
const AvatarGroup = /* @__PURE__ */ forwardRef(({
|
|
7
|
-
src,
|
|
8
|
-
maxAvatars = 3,
|
|
9
|
-
overlap = 20,
|
|
10
|
-
className,
|
|
11
|
-
size = "md",
|
|
12
|
-
variant = "circle",
|
|
13
|
-
alt,
|
|
14
|
-
stackingOrder = "leftFirst",
|
|
15
|
-
wrap = !1,
|
|
16
|
-
lastItemCover,
|
|
17
|
-
...restProps
|
|
18
|
-
}, ref) => {
|
|
19
|
-
const visibleAvatars = src.slice(0, maxAvatars), classes = clsx("avatar-group d-flex", className);
|
|
20
|
-
return /* @__PURE__ */ jsx("div", { ref, className: classes, children: /* @__PURE__ */ jsx(StackedGroup, { overlap, stackingOrder, wrap, children: visibleAvatars.map((avatarSrc, index) => /* @__PURE__ */ jsx(Avatar, { src: avatarSrc, size, variant, alt: `${alt} ${index + 1}`, cover: index === maxAvatars - 1 ? lastItemCover : void 0, ...restProps }, index)) }) });
|
|
21
|
-
});
|
|
22
|
-
export {
|
|
23
|
-
AvatarGroup as default
|
|
24
|
-
};
|
|
1
|
+
import Avatar from"../Avatar/Avatar.js";import StackedGroup from"../StackedGroup/StackedGroup.js";import clsx$1 from"clsx";import{forwardRef}from"react";import{jsx}from"react/jsx-runtime";var AvatarGroup=forwardRef(({src,maxAvatars=3,overlap=20,className,size=`md`,variant=`circle`,alt,stackingOrder=`leftFirst`,wrap=!1,lastItemCover,...restProps},ref)=>{let visibleAvatars=src.slice(0,maxAvatars);return jsx(`div`,{ref,className:clsx$1(`avatar-group d-flex`,className),children:jsx(StackedGroup,{overlap,stackingOrder,wrap,children:visibleAvatars.map((avatarSrc,index)=>jsx(Avatar,{src:avatarSrc,size,variant,alt:`${alt} ${index+1}`,cover:index===maxAvatars-1?lastItemCover:void 0,...restProps},index))})})});export{AvatarGroup as default};
|
|
@@ -1,33 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import useEdificeIcons from "../../hooks/useEdificeIcons/useEdificeIcons.js";
|
|
5
|
-
const Badge = /* @__PURE__ */ forwardRef(({
|
|
6
|
-
className,
|
|
7
|
-
variant = {
|
|
8
|
-
type: "notification",
|
|
9
|
-
level: "info"
|
|
10
|
-
},
|
|
11
|
-
children,
|
|
12
|
-
...restProps
|
|
13
|
-
}, ref) => {
|
|
14
|
-
const {
|
|
15
|
-
getIconClass,
|
|
16
|
-
getBackgroundLightIconClass,
|
|
17
|
-
getBorderIconClass
|
|
18
|
-
} = useEdificeIcons();
|
|
19
|
-
let appVersionBadgeColorClassName = "";
|
|
20
|
-
if (variant.type === "appVersion" && variant.app) {
|
|
21
|
-
const colorAppClassName = getIconClass(variant.app), backgroundLightAppClassName = getBackgroundLightIconClass(variant.app), borderAppClassName = getBorderIconClass(variant.app);
|
|
22
|
-
appVersionBadgeColorClassName = `${colorAppClassName} ${backgroundLightAppClassName} ${borderAppClassName}`;
|
|
23
|
-
}
|
|
24
|
-
const classes = clsx("badge rounded-pill", (variant.type === "content" || variant.type === "user") && "background" in variant ? "bg-gray-200" : (variant.type === "content" || variant.type === "user") && !("background" in variant) ? "border border-0" : "", variant.type === "content" && `text-${variant.level}`, variant.type === "notification" && `badge-notification bg-${variant.level} text-light border border-0`, variant.type === "status" && `badge-status badge-status-${variant.level} caption fw-normal`, variant.type === "user" && `badge-profile-${variant.profile.toLowerCase()}`, variant.type === "link" && "badge-link border border-0", variant.type === "chip" && "bg-gray-200", variant.type === "appVersion" && appVersionBadgeColorClassName, className);
|
|
25
|
-
return /* @__PURE__ */ jsxs("span", { ref, className: classes, ...restProps, children: [
|
|
26
|
-
variant.type === "chip" && /* @__PURE__ */ jsx("div", { className: "d-flex fw-800 align-items-center", children }),
|
|
27
|
-
variant.type === "appVersion" && (children ?? "BÊTA"),
|
|
28
|
-
variant.type !== "chip" && variant.type !== "appVersion" && children
|
|
29
|
-
] });
|
|
30
|
-
});
|
|
31
|
-
export {
|
|
32
|
-
Badge as default
|
|
33
|
-
};
|
|
1
|
+
import useEdificeIcons from"../../hooks/useEdificeIcons/useEdificeIcons.js";import clsx$1 from"clsx";import{forwardRef}from"react";import{jsx,jsxs}from"react/jsx-runtime";var Badge=forwardRef(({className,variant={type:`notification`,level:`info`},children,...restProps},ref)=>{let{getIconClass,getBackgroundLightIconClass,getBorderIconClass}=useEdificeIcons(),appVersionBadgeColorClassName=``;return variant.type===`appVersion`&&variant.app&&(appVersionBadgeColorClassName=`${getIconClass(variant.app)} ${getBackgroundLightIconClass(variant.app)} ${getBorderIconClass(variant.app)}`),jsxs(`span`,{ref,className:clsx$1(`badge rounded-pill`,(variant.type===`content`||variant.type===`user`)&&`background`in variant?`bg-gray-200`:(variant.type===`content`||variant.type===`user`)&&!(`background`in variant)?`border border-0`:``,variant.type===`content`&&`text-${variant.level}`,variant.type===`notification`&&`badge-notification bg-${variant.level} text-light border border-0`,variant.type===`status`&&`badge-status badge-status-${variant.level} caption fw-normal`,variant.type===`user`&&`badge-profile-${variant.profile.toLowerCase()}`,variant.type===`link`&&`badge-link border border-0`,variant.type===`chip`&&`bg-gray-200`,variant.type===`appVersion`&&appVersionBadgeColorClassName,className),...restProps,children:[variant.type===`chip`&&jsx(`div`,{className:`d-flex fw-800 align-items-center`,children}),variant.type===`appVersion`&&(children??`BÊTA`),variant.type!==`chip`&&variant.type!==`appVersion`&&children]})});export{Badge as default};
|