@edifice.io/react 2.0.0-develop-rc.13 → 2.0.0-develop-rc.14
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/common/PublishModal/hooks/usePublishModal.d.ts +1 -1
- package/dist/common/ResourceModal/hooks/useThumb.d.ts +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/CardBody.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +0 -3
- package/dist/core/useUploadFiles/useUploadFiles.d.ts +2 -2
- package/dist/hooks/useToast/useToast.d.ts +1 -1
- package/dist/icons/dist/index.js +1282 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +224 -224
- package/dist/{common → ui/src/common}/ResourceModal/apps/BlogPublic.js +3 -3
- package/dist/{common → ui/src/common}/ShareModal/ShareBookmark.js +2 -2
- package/dist/{common → ui/src/common}/ShareModal/ShareBookmarkLine.js +5 -5
- package/dist/{common → ui/src/common}/ShareModal/ShareModal.js +5 -5
- package/dist/{common → ui/src/common}/ShareModal/hooks/useSearch.js +2 -2
- package/dist/{components → ui/src/components}/Alert/Alert.js +7 -7
- package/dist/{components → ui/src/components}/Attachment/Attachment.js +2 -2
- package/dist/{components → ui/src/components}/Audience/ViewsByProfileCard.js +2 -2
- package/dist/{components → ui/src/components}/Audience/ViewsCounter.js +2 -2
- package/dist/{components → ui/src/components}/Audience/ViewsModal.js +3 -3
- package/dist/{components → ui/src/components}/Audience/hooks/useReactionIcons.js +2 -2
- package/dist/{components → ui/src/components}/Avatar/Avatar.js +2 -2
- package/dist/{components → ui/src/components}/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/{components → ui/src/components}/Button/Button.js +2 -2
- package/dist/{components → ui/src/components}/Button/SearchButton.js +2 -2
- package/dist/{components → ui/src/components}/Card/CardHeader.js +2 -2
- package/dist/{components → ui/src/components}/Checkbox/Checkbox.js +2 -2
- package/dist/{components → ui/src/components}/ColorPicker/ColorPicker.js +3 -3
- package/dist/ui/src/components/ColorPicker/ColorPickerItem.js +13 -0
- package/dist/{components → ui/src/components}/Combobox/Combobox.js +1 -2
- package/dist/{components → ui/src/components}/Dropdown/DropdownTrigger.js +2 -2
- package/dist/{components → ui/src/components}/Dropzone/DropzoneFile.js +2 -2
- package/dist/{components → ui/src/components}/Dropzone/DropzoneImport.js +2 -2
- package/dist/{components → ui/src/components}/FileCard/FileCard.js +5 -5
- package/dist/{components → ui/src/components}/FileCard/FileIcon.js +2 -2
- package/dist/{components → ui/src/components}/Form/FormControl.js +2 -2
- package/dist/{components → ui/src/components}/Heading/Heading.js +2 -2
- package/dist/{components → ui/src/components}/ImagePicker/ImagePicker.js +3 -3
- package/dist/{components → ui/src/components}/Input/Input.js +2 -2
- package/dist/{components → ui/src/components}/Label/Label.js +2 -2
- package/dist/{components → ui/src/components}/Loading/Loading.js +2 -2
- package/dist/{components → ui/src/components}/LoadingScreen/LoadingScreen.js +2 -2
- package/dist/{components → ui/src/components}/Modal/Modal.js +2 -2
- package/dist/{components → ui/src/components}/Modal/ModalHeader.js +2 -2
- package/dist/{components → ui/src/components}/Radio/Radio.js +2 -2
- package/dist/{components → ui/src/components}/SearchBar/SearchBar.js +3 -3
- package/dist/{components → ui/src/components}/TextArea/TextArea.js +2 -2
- package/dist/{components → ui/src/components}/Tooltip/Tooltip.js +2 -2
- package/dist/{components → ui/src/components}/TreeView/TreeItem.js +5 -5
- package/dist/{components → ui/src/components}/UploadCard/UploadCard.js +5 -5
- package/dist/{components → ui/src/components}/VisuallyHidden/VisuallyHidden.js +2 -2
- package/dist/{core → ui/src/core}/useMediaLibrary/useMediaLibrary.js +2 -2
- package/dist/{multimedia → ui/src/multimedia}/AudioRecorder/AudioRecorder.js +2 -2
- package/dist/{multimedia → ui/src/multimedia}/AudioRecorder/AudioRecorderTimer.js +3 -3
- package/dist/{multimedia → ui/src/multimedia}/AudioRecorder/useAudioRecorder.js +9 -9
- package/dist/{multimedia → ui/src/multimedia}/Embed/Embed.js +3 -3
- package/dist/{multimedia → ui/src/multimedia}/ImageEditor/components/ImageEditorToolbar.js +5 -5
- package/dist/{multimedia → ui/src/multimedia}/ImagePickerWorkspace/ImagePickerWorkspace.js +3 -3
- package/dist/{multimedia → ui/src/multimedia}/Linker/InternalLinker.js +2 -2
- package/dist/{multimedia → ui/src/multimedia}/LinkerCard/LinkerCard.js +2 -2
- package/dist/{multimedia → ui/src/multimedia}/MediaLibrary/MediaLibrary.js +9 -9
- package/dist/{multimedia → ui/src/multimedia}/VideoEmbed/VideoEmbed.js +6 -6
- package/dist/{multimedia → ui/src/multimedia}/VideoRecorder/VideoRecorder.js +12 -12
- package/dist/{multimedia → ui/src/multimedia}/Workspace/Workspace.js +5 -5
- package/dist/{portal → ui/src/portal}/Header/Header.js +5 -5
- package/dist/{portal → ui/src/portal}/Help/hooks/useHelp.js +3 -3
- package/package.json +7 -7
- package/dist/components/ColorPicker/ColorPickerItem.js +0 -13
- package/dist/{common → ui/src/common}/OnboardingModal/OnboardingModal.js +0 -0
- package/dist/{common → ui/src/common}/OnboardingModal/useOnboardingModal.js +0 -0
- package/dist/{common → ui/src/common}/PublishModal/PublishModal.js +3 -3
- package/dist/{common → ui/src/common}/PublishModal/components/ActivitiesDropdown.js +0 -0
- package/dist/{common → ui/src/common}/PublishModal/components/AgeSelect.js +0 -0
- package/dist/{common → ui/src/common}/PublishModal/components/LangSelect.js +0 -0
- package/dist/{common → ui/src/common}/PublishModal/components/PublishModalFooter.js +0 -0
- package/dist/{common → ui/src/common}/PublishModal/components/SubjectsDropdown.js +0 -0
- package/dist/{common → ui/src/common}/PublishModal/components/ToastError.js +0 -0
- package/dist/{common → ui/src/common}/PublishModal/components/ToastSuccess.js +0 -0
- package/dist/{common → ui/src/common}/PublishModal/constants/ageOptions.js +0 -0
- package/dist/{common → ui/src/common}/PublishModal/hooks/useActivitiesOptions.js +0 -0
- package/dist/{common → ui/src/common}/PublishModal/hooks/useLanguageOptions.js +0 -0
- package/dist/{common → ui/src/common}/PublishModal/hooks/usePublishModal.js +0 -0
- package/dist/{common → ui/src/common}/PublishModal/hooks/useSubjectsOptions.js +0 -0
- package/dist/{common → ui/src/common}/ResourceModal/ResourceModal.js +2 -2
- package/dist/{common → ui/src/common}/ResourceModal/hooks/useSlug.js +0 -0
- package/dist/{common → ui/src/common}/ResourceModal/hooks/useThumb.js +0 -0
- package/dist/{common → ui/src/common}/ResourceModal/hooks/useUpdateMutation.js +0 -0
- package/dist/{common → ui/src/common}/ShareModal/apps/ShareBlog.js +1 -1
- package/dist/{common → ui/src/common}/ShareModal/hooks/useShare.js +0 -0
- package/dist/{common → ui/src/common}/ShareModal/hooks/useShareBookmark.js +0 -0
- package/dist/{common → ui/src/common}/ShareModal/hooks/useShareMutation.js +0 -0
- package/dist/{common → ui/src/common}/ShareModal/utils/hasRight.js +0 -0
- package/dist/{common → ui/src/common}/ShareModal/utils/showShareRightLine.js +0 -0
- package/dist/{components → ui/src/components}/ActionBar/ActionBar.js +0 -0
- package/dist/{components → ui/src/components}/AppHeader/AppHeader.js +0 -0
- package/dist/{components → ui/src/components}/AppIcon/AppIcon.js +0 -0
- package/dist/{components → ui/src/components}/Audience/ReactionChoice.js +0 -0
- package/dist/{components → ui/src/components}/Audience/ReactionModal.Card.js +0 -0
- package/dist/{components → ui/src/components}/Audience/ReactionModal.js +0 -0
- package/dist/{components → ui/src/components}/Audience/ReactionSummary.js +0 -0
- package/dist/{components → ui/src/components}/Audience/hooks/useReactions.js +0 -0
- package/dist/{components → ui/src/components}/Badge/Badge.js +0 -0
- package/dist/{components → ui/src/components}/Breadcrumb/BreadcrumbItem.js +0 -0
- package/dist/{components → ui/src/components}/Breadcrumb/BreadcrumbList.js +0 -0
- package/dist/{components → ui/src/components}/Breadcrumb/BreadcrumbNav.js +0 -0
- package/dist/{components → ui/src/components}/Button/IconButton.js +0 -0
- package/dist/{components → ui/src/components}/Card/Card.js +0 -0
- package/dist/{components → ui/src/components}/Card/CardBody.js +0 -0
- package/dist/{components → ui/src/components}/Card/CardContext.js +0 -0
- package/dist/{components → ui/src/components}/Card/CardFooter.js +0 -0
- package/dist/{components → ui/src/components}/Card/CardImage.js +0 -0
- package/dist/{components → ui/src/components}/Card/CardText.js +0 -0
- package/dist/{components → ui/src/components}/Card/CardTitle.js +0 -0
- package/dist/{components → ui/src/components}/Card/CardUser.js +0 -0
- package/dist/{components → ui/src/components}/ColorPicker/ColorPalette.js +0 -0
- package/dist/{components → ui/src/components}/Combobox/ComboboxTrigger.js +0 -0
- package/dist/{components → ui/src/components}/Dropdown/Dropdown.js +0 -0
- package/dist/{components → ui/src/components}/Dropdown/DropdownCheckboxItem.js +0 -0
- package/dist/{components → ui/src/components}/Dropdown/DropdownContext.js +0 -0
- package/dist/{components → ui/src/components}/Dropdown/DropdownItem.js +0 -0
- package/dist/{components → ui/src/components}/Dropdown/DropdownMenu.js +0 -0
- package/dist/{components → ui/src/components}/Dropdown/DropdownMenuGroup.js +0 -0
- package/dist/{components → ui/src/components}/Dropdown/DropdownRadioItem.js +0 -0
- package/dist/{components → ui/src/components}/Dropdown/DropdownSeparator.js +0 -0
- package/dist/{components → ui/src/components}/Dropzone/Dropzone.js +0 -0
- package/dist/{components → ui/src/components}/Dropzone/DropzoneContext.js +0 -0
- package/dist/{components → ui/src/components}/Dropzone/DropzoneDrag.js +0 -0
- package/dist/{components → ui/src/components}/EmptyScreen/EmptyScreen.js +0 -0
- package/dist/{components → ui/src/components}/Form/FormContext.js +0 -0
- package/dist/{components → ui/src/components}/Form/FormText.js +0 -0
- package/dist/{components → ui/src/components}/Grid/Grid.js +0 -0
- package/dist/{components → ui/src/components}/Image/Image.js +0 -0
- package/dist/{components → ui/src/components}/Logo/Logo.js +0 -0
- package/dist/{components → ui/src/components}/Menu/Menu.js +0 -0
- package/dist/{components → ui/src/components}/Menu/MenuButton.js +0 -0
- package/dist/{components → ui/src/components}/Menu/MenuContext.js +0 -0
- package/dist/{components → ui/src/components}/Menu/MenuItem.js +0 -0
- package/dist/{components → ui/src/components}/Modal/ModalBody.js +0 -0
- package/dist/{components → ui/src/components}/Modal/ModalContext.js +0 -0
- package/dist/{components → ui/src/components}/Modal/ModalFooter.js +0 -0
- package/dist/{components → ui/src/components}/Modal/ModalSubtitle.js +0 -0
- package/dist/{components → ui/src/components}/Popover/Popover.js +0 -0
- package/dist/{components → ui/src/components}/Select/Select.js +0 -0
- package/dist/{components → ui/src/components}/Select/SelectTrigger.js +0 -0
- package/dist/{components → ui/src/components}/Table/Table.components.js +0 -0
- package/dist/{components → ui/src/components}/Table/Table.js +0 -0
- package/dist/{components → ui/src/components}/Tabs/Tabs.js +0 -0
- package/dist/{components → ui/src/components}/Tabs/TabsContext.js +0 -0
- package/dist/{components → ui/src/components}/Tabs/TabsItem.js +0 -0
- package/dist/{components → ui/src/components}/Tabs/TabsList.js +0 -0
- package/dist/{components → ui/src/components}/Tabs/TabsPanel.js +0 -0
- package/dist/{components → ui/src/components}/TextArea/TextareaCounter.js +0 -0
- package/dist/{components → ui/src/components}/Toolbar/Toolbar.js +0 -0
- package/dist/{components → ui/src/components}/TreeView/TreeView.js +0 -0
- package/dist/{components → ui/src/components}/TreeView/hooks/useTreeItemEvents.js +0 -0
- package/dist/{core → ui/src/core}/OdeClientProvider/OdeClientProvider.js +0 -0
- package/dist/{core → ui/src/core}/ThemeProvider/ThemeProvider.js +0 -0
- package/dist/{core → ui/src/core}/useAvatar/useAvatar.js +0 -0
- package/dist/{core → ui/src/core}/useBookmark/useBookmark.js +0 -0
- package/dist/{core → ui/src/core}/useCantoo/useCantoo.js +0 -0
- package/dist/{core → ui/src/core}/useConf/useConf.js +0 -0
- package/dist/{core → ui/src/core}/useConversation/useConversation.js +0 -0
- package/dist/{core → ui/src/core}/useCookiesConsent/useCookiesConsent.js +0 -0
- package/dist/{core → ui/src/core}/useDate/useDate.js +0 -0
- package/dist/{core → ui/src/core}/useHasWorkflow/useHasWorkflow.js +0 -0
- package/dist/{core → ui/src/core}/useHeader/useHeader.js +0 -0
- package/dist/{core → ui/src/core}/useHttpErrorToast/useHttpErrorToast.js +0 -0
- package/dist/{core → ui/src/core}/useIsAdml/useIsAdml.js +0 -0
- package/dist/{core → ui/src/core}/useLibraryUrl/useLibraryUrl.js +0 -0
- package/dist/{core → ui/src/core}/useOdeIcons/useOdeIcons.js +0 -0
- package/dist/{core → ui/src/core}/usePaths/usePaths.js +0 -0
- package/dist/{core → ui/src/core}/usePreferences/usePreferences.js +0 -0
- package/dist/{core → ui/src/core}/useResource/useResource.js +0 -0
- package/dist/{core → ui/src/core}/useResourceSearch/useResourceSearch.js +0 -0
- package/dist/{core → ui/src/core}/useSession/useSession.js +0 -0
- package/dist/{core → ui/src/core}/useTrashedResource/useTrashedResource.js +0 -0
- package/dist/{core → ui/src/core}/useUpload/useUpload.js +0 -0
- package/dist/{core → ui/src/core}/useUploadFiles/useUploadFiles.js +0 -0
- package/dist/{core → ui/src/core}/useUser/useUser.js +0 -0
- package/dist/{core → ui/src/core}/useWorkspaceFile/useWorkspaceFile.js +0 -0
- package/dist/{core → ui/src/core}/useWorkspaceSearch/useWorkspaceSearch.js +0 -0
- package/dist/{core → ui/src/core}/useXitiTrackPageLoad/useXitiTrackPageLoad.js +0 -0
- package/dist/{core → ui/src/core}/useZendeskGuide/useZendeskGuide.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useBrowserInfo/useBrowserInfo.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useClickOutside/useClickOutside.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useDebounce/useDebounce.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useDropdown/useDropdown.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useDropzone/useDropzone.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useHover/useHover.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useImage/useImage.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useImageResizer/useImageResizer.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useKeyPress/useKeyPress.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useScrollToTop/useScrollToTop.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useThumbnail/useThumbnail.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useTitle/useTitle.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useToast/useToast.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useToggle/useToggle.js +0 -0
- package/dist/{hooks → ui/src/hooks}/useTrapFocus/useTrapFocus.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/ImageEditor/components/ImageEditor.js +1 -1
- package/dist/{multimedia → ui/src/multimedia}/ImageEditor/effects/blur.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/ImageEditor/effects/crop.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/ImageEditor/effects/misc.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/ImageEditor/effects/resize.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/ImageEditor/effects/rotate.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/ImageEditor/hooks/useHistoryTool.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/ImageEditor/hooks/useImageEditor.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/ImageEditor/hooks/useImageEffects.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/ImageEditor/utils/aggregate.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/Linker/ExternalLinker.js +2 -2
- package/dist/{multimedia → ui/src/multimedia}/MediaLibrary/MediaLibraryContext.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/MediaLibrary/innertabs/Audio.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/MediaLibrary/innertabs/ExternalLink.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/MediaLibrary/innertabs/Iframe.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/MediaLibrary/innertabs/InternalLink.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/MediaLibrary/innertabs/Upload.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/MediaLibrary/innertabs/Video.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/MediaLibrary/innertabs/VideoEmbedder.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/MediaLibrary/innertabs/Workspace.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/MediaLibrary/innertabs/index.js +0 -0
- package/dist/{multimedia → ui/src/multimedia}/UploadFiles/UploadFiles.js +0 -0
- package/dist/{portal → ui/src/portal}/Header/Badge.js +0 -0
- package/dist/{portal → ui/src/portal}/Header/NavItem.js +0 -0
- package/dist/{portal → ui/src/portal}/Header/NavLink.js +0 -0
- package/dist/{portal → ui/src/portal}/Header/Navbar.js +0 -0
- package/dist/{portal → ui/src/portal}/Header/NavbarNav.js +0 -0
- package/dist/{portal → ui/src/portal}/Header/WidgetApps.js +0 -0
- package/dist/{portal → ui/src/portal}/Help/Help.js +0 -0
- package/dist/{portal → ui/src/portal}/Layout/Layout.js +0 -0
- package/dist/{portal → ui/src/portal}/SearchEngine/SearchEngine.js +1 -1
- /package/dist/{utils → ui/src/utils}/MockedDataProvider/MockedDataProvider.js +0 -0
- /package/dist/{utils → ui/src/utils}/StringUtils.js +0 -0
- /package/dist/{utils → ui/src/utils}/addTimestampToUrl.js +0 -0
- /package/dist/{utils → ui/src/utils}/blob.js +0 -0
- /package/dist/{utils → ui/src/utils}/checkUserRight.js +0 -0
- /package/dist/{utils → ui/src/utils}/fileSize.js +0 -0
- /package/dist/{utils → ui/src/utils}/findTreeNode.js +0 -0
- /package/dist/{utils → ui/src/utils}/isActionAvailable.js +0 -0
- /package/dist/{utils → ui/src/utils}/libraryMaps.js +0 -0
- /package/dist/{utils → ui/src/utils}/noop.js +0 -0
- /package/dist/{utils → ui/src/utils}/ref.js +0 -0
- /package/dist/{utils → ui/src/utils}/thumbnail.js +0 -0
- /package/dist/{utils → ui/src/utils}/time.js +0 -0
- /package/dist/{utils → ui/src/utils}/treeview.js +0 -0
- /package/dist/{utils → ui/src/utils}/video.js +0 -0
- /package/dist/{widgets → ui/src/widgets}/BookmarkedApps/BookmarkedApps.js +0 -0
- /package/dist/{widgets → ui/src/widgets}/Widget/Widget.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { Bookmark, RafterDown, InfoCircle } from "
|
|
3
|
+
import { Bookmark as SvgBookmark$1, RafterDown as SvgRafterDown$1, InfoCircle as SvgInfoCircle$1 } from "../../../../icons/dist/index.js";
|
|
4
4
|
import { createPortal } from "react-dom";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { ShareBookmark } from "./ShareBookmark.js";
|
|
@@ -8,15 +8,15 @@ import { ShareBookmarkLine } from "./ShareBookmarkLine.js";
|
|
|
8
8
|
import { useSearch } from "./hooks/useSearch.js";
|
|
9
9
|
import useShare from "./hooks/useShare.js";
|
|
10
10
|
import { useShareBookmark } from "./hooks/useShareBookmark.js";
|
|
11
|
-
import VisuallyHidden from "../../components/VisuallyHidden/VisuallyHidden.js";
|
|
12
|
-
import Combobox from "../../components/Combobox/Combobox.js";
|
|
13
11
|
import Modal from "../../components/Modal/Modal.js";
|
|
14
12
|
import Heading from "../../components/Heading/Heading.js";
|
|
15
13
|
import LoadingScreen from "../../components/LoadingScreen/LoadingScreen.js";
|
|
14
|
+
import VisuallyHidden from "../../components/VisuallyHidden/VisuallyHidden.js";
|
|
16
15
|
import Avatar from "../../components/Avatar/Avatar.js";
|
|
17
16
|
import Checkbox from "../../components/Checkbox/Checkbox.js";
|
|
18
17
|
import Button from "../../components/Button/Button.js";
|
|
19
18
|
import Tooltip from "../../components/Tooltip/Tooltip.js";
|
|
19
|
+
import Combobox from "../../components/Combobox/Combobox.js";
|
|
20
20
|
function ShareResourceModal({
|
|
21
21
|
isOpen,
|
|
22
22
|
shareOptions,
|
|
@@ -103,7 +103,7 @@ function ShareResourceModal({
|
|
|
103
103
|
] })
|
|
104
104
|
] }) }),
|
|
105
105
|
/* @__PURE__ */ jsxs("div", { className: "mt-16", children: [
|
|
106
|
-
/* @__PURE__ */ jsx(Button, { color: "tertiary", leftIcon: /* @__PURE__ */ jsx(
|
|
106
|
+
/* @__PURE__ */ jsx(Button, { color: "tertiary", leftIcon: /* @__PURE__ */ jsx(SvgBookmark$1, {}), rightIcon: /* @__PURE__ */ jsx(SvgRafterDown$1, { title: t("show"), className: "w-16 min-w-0", style: {
|
|
107
107
|
transition: "rotate 0.2s ease-out",
|
|
108
108
|
rotate: showBookmarkInput ? "-180deg" : "0deg"
|
|
109
109
|
} }), type: "button", variant: "ghost", className: "fw-normal", onClick: () => toggleBookmarkInput(!showBookmarkInput), children: t("share.save.sharebookmark") }),
|
|
@@ -112,7 +112,7 @@ function ShareResourceModal({
|
|
|
112
112
|
/* @__PURE__ */ jsx("hr", {}),
|
|
113
113
|
/* @__PURE__ */ jsxs(Heading, { headingStyle: "h4", level: "h3", className: "mb-16 d-flex align-items-center", children: [
|
|
114
114
|
/* @__PURE__ */ jsx("div", { className: "me-8", children: t("explorer.modal.share.search") }),
|
|
115
|
-
/* @__PURE__ */ jsx(Tooltip, { message: "Vos favoris de partage s’affichent en priorité dans votre liste lorsque vous recherchez un groupe ou une personne, vous pouvez les retrouver dans l’annuaire.", placement: "top", children: /* @__PURE__ */ jsx(
|
|
115
|
+
/* @__PURE__ */ jsx(Tooltip, { message: "Vos favoris de partage s’affichent en priorité dans votre liste lorsque vous recherchez un groupe ou une personne, vous pouvez les retrouver dans l’annuaire.", placement: "top", children: /* @__PURE__ */ jsx(SvgInfoCircle$1, { className: "c-pointer", height: "18" }) })
|
|
116
116
|
] }),
|
|
117
117
|
/* @__PURE__ */ jsx("div", { className: "row", children: /* @__PURE__ */ jsx("div", { className: "col-10", children: /* @__PURE__ */ jsx(Combobox, { value: searchInputValue, placeholder: searchPlaceholder, isLoading: showSearchLoading(), noResult: showSearchNoResults(), options: searchResults, searchMinLength: getSearchMinLength(), onSearchInputChange: handleSearchInputChange, onSearchResultsChange: handleSearchResultsChange }) }) }),
|
|
118
118
|
children
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useReducer, useEffect } from "react";
|
|
3
|
-
import { Bookmark } from "
|
|
3
|
+
import { Bookmark as SvgBookmark$1 } from "../../../../../icons/dist/index.js";
|
|
4
4
|
import { odeServices } from "edifice-ts-client";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import useDebounce from "../../../hooks/useDebounce/useDebounce.js";
|
|
@@ -92,7 +92,7 @@ const defaultActions = [{
|
|
|
92
92
|
return searchResult.type === "user" && searchResult.profile ? label = `${label} (${t(searchResult.profile)})` : searchResult.type === "group" && searchResult.structureName && (label = `${label} (${searchResult.structureName})`), {
|
|
93
93
|
value: searchResult.id,
|
|
94
94
|
label,
|
|
95
|
-
icon: searchResult.type === "sharebookmark" ? /* @__PURE__ */ jsx(
|
|
95
|
+
icon: searchResult.type === "sharebookmark" ? /* @__PURE__ */ jsx(SvgBookmark$1, {}) : null
|
|
96
96
|
};
|
|
97
97
|
});
|
|
98
98
|
dispatch({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useRef, useCallback, useImperativeHandle, useLayoutEffect, useEffect } from "react";
|
|
3
|
-
import { SuccessOutline, AlertCircle, InfoCircle, Error } from "@edifice.io/icons";
|
|
4
3
|
import clsx from "clsx";
|
|
5
4
|
import { useTranslation } from "react-i18next";
|
|
5
|
+
import { SuccessOutline as SvgSuccessOutline$1, AlertCircle as SvgAlertCircle$1, InfoCircle as SvgInfoCircle$1, Error as SvgError$1 } from "../../../../icons/dist/index.js";
|
|
6
6
|
import Button from "../Button/Button.js";
|
|
7
7
|
const Alert = /* @__PURE__ */ forwardRef(({
|
|
8
8
|
type = "success",
|
|
@@ -38,19 +38,19 @@ const Alert = /* @__PURE__ */ forwardRef(({
|
|
|
38
38
|
setVisibleStatus(!0);
|
|
39
39
|
}, mapping = {
|
|
40
40
|
success: {
|
|
41
|
-
icon: /* @__PURE__ */ jsx(
|
|
41
|
+
icon: /* @__PURE__ */ jsx(SvgSuccessOutline$1, {}),
|
|
42
42
|
classModifier: "alert-success"
|
|
43
43
|
},
|
|
44
44
|
warning: {
|
|
45
|
-
icon: /* @__PURE__ */ jsx(
|
|
45
|
+
icon: /* @__PURE__ */ jsx(SvgAlertCircle$1, {}),
|
|
46
46
|
classModifier: "alert-warning"
|
|
47
47
|
},
|
|
48
48
|
info: {
|
|
49
|
-
icon: /* @__PURE__ */ jsx(
|
|
49
|
+
icon: /* @__PURE__ */ jsx(SvgInfoCircle$1, {}),
|
|
50
50
|
classModifier: "alert-info"
|
|
51
51
|
},
|
|
52
52
|
danger: {
|
|
53
|
-
icon: /* @__PURE__ */ jsx(
|
|
53
|
+
icon: /* @__PURE__ */ jsx(SvgError$1, {}),
|
|
54
54
|
classModifier: "alert-danger"
|
|
55
55
|
}
|
|
56
56
|
}, toastClasses = {
|
|
@@ -72,7 +72,7 @@ const Alert = /* @__PURE__ */ forwardRef(({
|
|
|
72
72
|
transform: "scaleX(0)"
|
|
73
73
|
} })
|
|
74
74
|
] }) : null });
|
|
75
|
-
})
|
|
75
|
+
});
|
|
76
76
|
export {
|
|
77
|
-
Alert
|
|
77
|
+
Alert as default
|
|
78
78
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { Paperclip } from "
|
|
3
|
+
import { Paperclip as SvgPaperclip$1 } from "../../../../icons/dist/index.js";
|
|
4
4
|
const Attachment = /* @__PURE__ */ forwardRef(({
|
|
5
5
|
name = "Attachment Name",
|
|
6
6
|
options,
|
|
7
7
|
...restProps
|
|
8
8
|
}, ref) => /* @__PURE__ */ jsxs("div", { ref, className: "attachment px-12 py-8", ...restProps, children: [
|
|
9
|
-
/* @__PURE__ */ jsx(
|
|
9
|
+
/* @__PURE__ */ jsx(SvgPaperclip$1, { height: 22, width: 22 }),
|
|
10
10
|
/* @__PURE__ */ jsx("div", { className: "filename text-truncate", children: name }),
|
|
11
11
|
options && /* @__PURE__ */ jsx("div", { className: "options ps-12", children: options })
|
|
12
12
|
] })), Attachment$1 = Attachment;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Users } from "@edifice.io/icons";
|
|
3
2
|
import { Guest, Personnel, Teacher, Parent, Student } from "@edifice.io/icons/audience";
|
|
4
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { Users as SvgUsers$1 } from "../../../../icons/dist/index.js";
|
|
5
5
|
import { StringUtils } from "../../utils/StringUtils.js";
|
|
6
6
|
const ViewsByProfileCard = ({
|
|
7
7
|
viewsByProfile
|
|
@@ -22,7 +22,7 @@ const ViewsByProfileCard = ({
|
|
|
22
22
|
case "guest":
|
|
23
23
|
return /* @__PURE__ */ jsx(Guest, {});
|
|
24
24
|
default:
|
|
25
|
-
return /* @__PURE__ */ jsx(
|
|
25
|
+
return /* @__PURE__ */ jsx(SvgUsers$1, {});
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
return /* @__PURE__ */ jsxs("div", { className: "views-detail-line p-8 ms-32 mb-12", children: [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { See } from "@edifice.io/icons";
|
|
3
2
|
import clsx from "clsx";
|
|
3
|
+
import { See as SvgSee$1 } from "../../../../icons/dist/index.js";
|
|
4
4
|
import Button from "../Button/Button.js";
|
|
5
5
|
import { StringUtils } from "../../utils/StringUtils.js";
|
|
6
6
|
const ViewsCounter = ({
|
|
@@ -11,7 +11,7 @@ const ViewsCounter = ({
|
|
|
11
11
|
const handleButtonClick = (event) => {
|
|
12
12
|
event.preventDefault(), event.stopPropagation(), onClick == null || onClick();
|
|
13
13
|
};
|
|
14
|
-
return className = clsx("text-gray-700 fw-normal py-4 px-8 btn-icon", className), /* @__PURE__ */ jsx(Button, { rightIcon: /* @__PURE__ */ jsx(
|
|
14
|
+
return className = clsx("text-gray-700 fw-normal py-4 px-8 btn-icon", className), /* @__PURE__ */ jsx(Button, { rightIcon: /* @__PURE__ */ jsx(SvgSee$1, {}), variant: "ghost", type: "button", className, onClick: handleButtonClick, disabled: !viewsCounter, children: StringUtils.toCounter(viewsCounter) });
|
|
15
15
|
}, ViewsCounter$1 = ViewsCounter;
|
|
16
16
|
export {
|
|
17
17
|
ViewsCounter$1 as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { See, Users } from "@edifice.io/icons";
|
|
3
2
|
import { createPortal } from "react-dom";
|
|
4
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { See as SvgSee$1, Users as SvgUsers$1 } from "../../../../icons/dist/index.js";
|
|
5
5
|
import ViewsByProfileCard from "./ViewsByProfileCard.js";
|
|
6
6
|
import Modal from "../Modal/Modal.js";
|
|
7
7
|
import Button from "../Button/Button.js";
|
|
@@ -19,12 +19,12 @@ const ViewsModal = ({
|
|
|
19
19
|
/* @__PURE__ */ jsx(Modal.Header, { onModalClose, children: t("audience.views.title") }),
|
|
20
20
|
/* @__PURE__ */ jsxs(Modal.Body, { children: [
|
|
21
21
|
/* @__PURE__ */ jsxs("div", { className: "views-detail-line p-8 mb-12", children: [
|
|
22
|
-
/* @__PURE__ */ jsx("div", { className: "views-detail-icon rounded p-8", children: /* @__PURE__ */ jsx(
|
|
22
|
+
/* @__PURE__ */ jsx("div", { className: "views-detail-icon rounded p-8", children: /* @__PURE__ */ jsx(SvgSee$1, {}) }),
|
|
23
23
|
/* @__PURE__ */ jsx("div", { className: "h3", children: StringUtils.toCounter(viewsDetails.viewsCounter) }),
|
|
24
24
|
/* @__PURE__ */ jsx("div", { children: t("audience.views.detail.viewsCounter") })
|
|
25
25
|
] }),
|
|
26
26
|
/* @__PURE__ */ jsxs("div", { className: "views-detail-line p-8 mb-12", children: [
|
|
27
|
-
/* @__PURE__ */ jsx("div", { className: "views-detail-icon rounded p-8", children: /* @__PURE__ */ jsx(
|
|
27
|
+
/* @__PURE__ */ jsx("div", { className: "views-detail-icon rounded p-8", children: /* @__PURE__ */ jsx(SvgUsers$1, {}) }),
|
|
28
28
|
hasUniqueViews ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
29
29
|
/* @__PURE__ */ jsx("div", { className: "h3", children: StringUtils.toCounter(viewsDetails.uniqueViewsCounter) }),
|
|
30
30
|
/* @__PURE__ */ jsx("div", { children: t("audience.views.detail.uniqueViewsCounter") })
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { InterestingCounter, Interesting, CongratsCounter, Congrats, GreatCounter, Great, ThanksCounter, Thanks } from "@edifice.io/icons/audience";
|
|
3
|
-
import { Reaction } from "
|
|
3
|
+
import { Reaction as SvgReaction$1 } from "../../../../../icons/dist/index.js";
|
|
4
4
|
function useReactionIcons() {
|
|
5
5
|
return {
|
|
6
6
|
getReactionIcon: (reactionType, asCounter) => {
|
|
@@ -14,7 +14,7 @@ function useReactionIcons() {
|
|
|
14
14
|
case "REACTION_4":
|
|
15
15
|
return asCounter ? /* @__PURE__ */ jsx(InterestingCounter, {}) : /* @__PURE__ */ jsx(Interesting, {});
|
|
16
16
|
default:
|
|
17
|
-
return /* @__PURE__ */ jsx(
|
|
17
|
+
return /* @__PURE__ */ jsx(SvgReaction$1, {});
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
getReactionLabel: (reactionType) => {
|
|
@@ -27,7 +27,7 @@ const Avatar = /* @__PURE__ */ forwardRef(({
|
|
|
27
27
|
}
|
|
28
28
|
}, className);
|
|
29
29
|
return /* @__PURE__ */ jsx("div", { ref, className: classes, children: /* @__PURE__ */ jsx(Image, { src: src || placeholder, alt, imgPlaceholder: placeholder, ...restProps }) });
|
|
30
|
-
})
|
|
30
|
+
});
|
|
31
31
|
export {
|
|
32
|
-
Avatar
|
|
32
|
+
Avatar as default
|
|
33
33
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { RafterRight } from "@edifice.io/icons";
|
|
4
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { RafterRight as SvgRafterRight$1 } from "../../../../icons/dist/index.js";
|
|
5
5
|
import Heading from "../Heading/Heading.js";
|
|
6
6
|
import BreadcrumbItem from "./BreadcrumbItem.js";
|
|
7
7
|
import BreadcrumbList from "./BreadcrumbList.js";
|
|
@@ -16,7 +16,7 @@ const Breadcrumb = /* @__PURE__ */ forwardRef(({
|
|
|
16
16
|
} = useTranslation();
|
|
17
17
|
return /* @__PURE__ */ jsx(BreadcrumbNav, { app, ref, className: "mw-100", children: /* @__PURE__ */ jsx(BreadcrumbList, { className: "gap-12 mw-100", children: name ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18
18
|
/* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx("a", { href: app == null ? void 0 : app.address, className: "d-flex", "aria-label": t(app == null ? void 0 : app.displayName), children: /* @__PURE__ */ jsx(AppIcon, { app, size: "40" }) }) }),
|
|
19
|
-
/* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(
|
|
19
|
+
/* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(SvgRafterRight$1, { color: "var(--edifice-gray-600)", width: 20, height: 20 }) }),
|
|
20
20
|
/* @__PURE__ */ jsx(BreadcrumbItem, { className: "text-truncate", children: /* @__PURE__ */ jsx(Heading, { level: "h1", headingStyle: "h3", className: "text-truncate", children: name }) })
|
|
21
21
|
] }) : /* @__PURE__ */ jsxs(BreadcrumbItem, { className: "gap-12 d-flex align-items-center", children: [
|
|
22
22
|
/* @__PURE__ */ jsx("a", { href: app == null ? void 0 : app.address, className: "d-flex", "aria-label": t(app == null ? void 0 : app.displayName), children: /* @__PURE__ */ jsx(AppIcon, { app, size: "40" }) }),
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { Search } from "@edifice.io/icons";
|
|
4
3
|
import clsx from "clsx";
|
|
4
|
+
import { Search as SvgSearch$1 } from "../../../../icons/dist/index.js";
|
|
5
5
|
import IconButton from "./IconButton.js";
|
|
6
6
|
const SearchButton = /* @__PURE__ */ forwardRef(({
|
|
7
|
-
icon = /* @__PURE__ */ jsx(
|
|
7
|
+
icon = /* @__PURE__ */ jsx(SvgSearch$1, {}),
|
|
8
8
|
onClick,
|
|
9
9
|
className,
|
|
10
10
|
...restProps
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Options } from "
|
|
2
|
+
import { Options as SvgOptions$1 } from "../../../../icons/dist/index.js";
|
|
3
3
|
import { useCardContext } from "./CardContext.js";
|
|
4
4
|
import IconButton from "../Button/IconButton.js";
|
|
5
5
|
const CardHeader = () => {
|
|
@@ -10,7 +10,7 @@ const CardHeader = () => {
|
|
|
10
10
|
onSelect
|
|
11
11
|
} = useCardContext();
|
|
12
12
|
return isSelectable || isClickable ? /* @__PURE__ */ jsxs("div", { className: "card-header", children: [
|
|
13
|
-
isSelectable ? /* @__PURE__ */ jsx(IconButton, { "aria-label": "Open Action Bar", className: "z-3 bg-white", color: "secondary", icon: /* @__PURE__ */ jsx(
|
|
13
|
+
isSelectable ? /* @__PURE__ */ jsx(IconButton, { "aria-label": "Open Action Bar", className: "z-3 bg-white", color: "secondary", icon: /* @__PURE__ */ jsx(SvgOptions$1, {}), onClick: onSelect, variant: "ghost" }) : null,
|
|
14
14
|
isClickable ? /* @__PURE__ */ jsx("button", { onClick, className: "position-absolute bottom-0 end-0 top-0 start-0 opacity-0 z-1 w-100", "aria-label": "Open resource" }) : null
|
|
15
15
|
] }) : null;
|
|
16
16
|
};
|
|
@@ -29,7 +29,7 @@ const Checkbox = /* @__PURE__ */ forwardRef(({
|
|
|
29
29
|
/* @__PURE__ */ jsx("input", { ...inputProps }),
|
|
30
30
|
label && /* @__PURE__ */ jsx("label", { className: "form-check-label", htmlFor: inputProps.id, children: label })
|
|
31
31
|
] });
|
|
32
|
-
})
|
|
32
|
+
});
|
|
33
33
|
export {
|
|
34
|
-
Checkbox
|
|
34
|
+
Checkbox as default
|
|
35
35
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { InfoCircle, DeleteColor } from "@edifice.io/icons";
|
|
4
3
|
import clsx from "clsx";
|
|
5
4
|
import { useTranslation } from "react-i18next";
|
|
5
|
+
import { InfoCircle as SvgInfoCircle$1, DeleteColor as SvgDeleteColor$1 } from "../../../../icons/dist/index.js";
|
|
6
6
|
import { DefaultPalette, AccessiblePalette } from "./ColorPalette.js";
|
|
7
7
|
import ColorPickerItem from "./ColorPickerItem.js";
|
|
8
8
|
import Tooltip from "../Tooltip/Tooltip.js";
|
|
@@ -20,13 +20,13 @@ const ColorPicker = /* @__PURE__ */ forwardRef(({
|
|
|
20
20
|
return /* @__PURE__ */ jsx("div", { ref, ...restProps, children: palettes.map((palette, paletteIdx) => /* @__PURE__ */ jsxs("div", { className: clsx("color-picker mx-8", palette.className), children: [
|
|
21
21
|
/* @__PURE__ */ jsxs("div", { className: "color-picker-label small mt-4 mb-8", children: [
|
|
22
22
|
t(palette.label),
|
|
23
|
-
palette.tooltip && /* @__PURE__ */ jsx(Tooltip, { message: "", placement: "auto", ...palette.tooltip, children: /* @__PURE__ */ jsx(
|
|
23
|
+
palette.tooltip && /* @__PURE__ */ jsx(Tooltip, { message: "", placement: "auto", ...palette.tooltip, children: /* @__PURE__ */ jsx(SvgInfoCircle$1, { width: 18, height: 18, className: "mx-4 position-relative", style: {
|
|
24
24
|
top: "4px"
|
|
25
25
|
} }) })
|
|
26
26
|
] }),
|
|
27
27
|
// Show/hide the reset option
|
|
28
28
|
palette.reset && /* @__PURE__ */ jsxs("button", { className: "color-picker-reset small my-8 gap-4", onClick: () => handleClick(palette.reset), children: [
|
|
29
|
-
/* @__PURE__ */ jsx(
|
|
29
|
+
/* @__PURE__ */ jsx(SvgDeleteColor$1, { width: 20, height: 20 }),
|
|
30
30
|
palette.reset.description
|
|
31
31
|
] }),
|
|
32
32
|
/* @__PURE__ */ jsx("div", { className: "color-picker-palette d-flex gap-2 justify-content-between", children: palette.colors.map((hues, hueIndex) => /* @__PURE__ */ jsx("div", { className: "color-picker-hue d-flex gap-2 justify-content-between flex-column ", children: hues.map((color) => /* @__PURE__ */ jsx("button", { "aria-label": color.description, className: "color-picker-hue-color", onClick: () => handleClick(color), children: /* @__PURE__ */ jsx(ColorPickerItem, { ...restProps, model: color, selected: model === color.value }) }, color.value)) }, hueIndex)) })
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import { DeleteColor as SvgDeleteColor$1 } from "../../../../icons/dist/index.js";
|
|
4
|
+
const ColorPickerItem = ({
|
|
5
|
+
model,
|
|
6
|
+
selected,
|
|
7
|
+
className
|
|
8
|
+
}) => model.isReset ? /* @__PURE__ */ jsx(SvgDeleteColor$1, {}) : /* @__PURE__ */ jsx("div", { "aria-label": model.description, className: clsx("color-picker-hue-color-item rounded-1", className, model.hue === "light" ? "light" : "dark", selected && "selected"), style: {
|
|
9
|
+
backgroundColor: model.value
|
|
10
|
+
} }), ColorPickerItem$1 = ColorPickerItem;
|
|
11
|
+
export {
|
|
12
|
+
ColorPickerItem$1 as default
|
|
13
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { RafterUp } from "@edifice.io/icons";
|
|
4
3
|
import clsx from "clsx";
|
|
4
|
+
import { RafterUp as SvgRafterUp$1 } from "../../../../icons/dist/index.js";
|
|
5
5
|
import { useDropdownContext } from "./DropdownContext.js";
|
|
6
6
|
const DropdownTrigger = /* @__PURE__ */ forwardRef(({
|
|
7
7
|
label,
|
|
@@ -26,7 +26,7 @@ const DropdownTrigger = /* @__PURE__ */ forwardRef(({
|
|
|
26
26
|
return /* @__PURE__ */ jsxs("button", { ref: forwardRef2, disabled, ...mergedProps, children: [
|
|
27
27
|
icon,
|
|
28
28
|
label,
|
|
29
|
-
badgeContent ? /* @__PURE__ */ jsx("span", { className: "badge text-bg-secondary rounded-pill", children: badgeContent }) : !hideCarret && /* @__PURE__ */ jsx(
|
|
29
|
+
badgeContent ? /* @__PURE__ */ jsx("span", { className: "badge text-bg-secondary rounded-pill", children: badgeContent }) : !hideCarret && /* @__PURE__ */ jsx(SvgRafterUp$1, { width: 16, height: 16, className: "dropdown-toggle-caret" })
|
|
30
30
|
] });
|
|
31
31
|
});
|
|
32
32
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Plus } from "@edifice.io/icons";
|
|
3
2
|
import clsx from "clsx";
|
|
4
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { Plus as SvgPlus$1 } from "../../../../icons/dist/index.js";
|
|
5
5
|
import { useMediaLibraryContext } from "../../multimedia/MediaLibrary/MediaLibraryContext.js";
|
|
6
6
|
import Button from "../Button/Button.js";
|
|
7
7
|
import { useDropzoneContext } from "./DropzoneContext.js";
|
|
@@ -20,7 +20,7 @@ const DropzoneFile = ({
|
|
|
20
20
|
"d-none": !hasFiles
|
|
21
21
|
});
|
|
22
22
|
return /* @__PURE__ */ jsxs("div", { className: classes, children: [
|
|
23
|
-
/* @__PURE__ */ jsx("div", { className: "drop-file-content", children: /* @__PURE__ */ jsx("div", { className: "add-button p-4", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", leftIcon: /* @__PURE__ */ jsx(
|
|
23
|
+
/* @__PURE__ */ jsx("div", { className: "drop-file-content", children: /* @__PURE__ */ jsx("div", { className: "add-button p-4", children: /* @__PURE__ */ jsx(Button, { variant: "ghost", leftIcon: /* @__PURE__ */ jsx(SvgPlus$1, {}), disabled: !multiple, onClick: () => {
|
|
24
24
|
var _a;
|
|
25
25
|
return (_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.click();
|
|
26
26
|
}, children: t("dropzone.add.more") }) }) }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Download } from "@edifice.io/icons";
|
|
3
2
|
import clsx from "clsx";
|
|
4
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { Download as SvgDownload$1 } from "../../../../icons/dist/index.js";
|
|
5
5
|
import Button from "../Button/Button.js";
|
|
6
6
|
import { useDropzoneContext } from "./DropzoneContext.js";
|
|
7
7
|
const DropzoneImport = () => {
|
|
@@ -15,7 +15,7 @@ const DropzoneImport = () => {
|
|
|
15
15
|
"d-none": hasFiles
|
|
16
16
|
});
|
|
17
17
|
return /* @__PURE__ */ jsxs("div", { className: classes, children: [
|
|
18
|
-
/* @__PURE__ */ jsx(
|
|
18
|
+
/* @__PURE__ */ jsx(SvgDownload$1, { height: 48, width: 48 }),
|
|
19
19
|
/* @__PURE__ */ jsx("p", { className: "my-16", children: t("dropzone.text") }),
|
|
20
20
|
/* @__PURE__ */ jsx(Button, { onClick: () => {
|
|
21
21
|
var _a;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useRef } from "react";
|
|
3
|
-
import { Mic, Landscape, Video, TextPage } from "@edifice.io/icons";
|
|
4
3
|
import clsx from "clsx";
|
|
5
4
|
import { DocumentHelper, odeServices } from "edifice-ts-client";
|
|
5
|
+
import { Mic as SvgMic$1, Landscape as SvgLandscape$1, Video as SvgVideo$1, TextPage as SvgTextPage$1 } from "../../../../icons/dist/index.js";
|
|
6
6
|
import Card from "../Card/Card.js";
|
|
7
7
|
import FileIcon from "./FileIcon.js";
|
|
8
8
|
import useThumbnail from "../../hooks/useThumbnail/useThumbnail.js";
|
|
@@ -39,7 +39,7 @@ const FileCard = ({
|
|
|
39
39
|
color: "bg-red-200"
|
|
40
40
|
},
|
|
41
41
|
audio: {
|
|
42
|
-
icon: /* @__PURE__ */ jsx(
|
|
42
|
+
icon: /* @__PURE__ */ jsx(SvgMic$1, { width: 22, height: 22 }),
|
|
43
43
|
color: "bg-red-200"
|
|
44
44
|
},
|
|
45
45
|
ppt: {
|
|
@@ -47,11 +47,11 @@ const FileCard = ({
|
|
|
47
47
|
color: "bg-yellow-200"
|
|
48
48
|
},
|
|
49
49
|
img: {
|
|
50
|
-
icon: /* @__PURE__ */ jsx(
|
|
50
|
+
icon: /* @__PURE__ */ jsx(SvgLandscape$1, { width: 22, height: 22 }),
|
|
51
51
|
color: "bg-green-200"
|
|
52
52
|
},
|
|
53
53
|
video: {
|
|
54
|
-
icon: /* @__PURE__ */ jsx(
|
|
54
|
+
icon: /* @__PURE__ */ jsx(SvgVideo$1, { width: 22, height: 22 }),
|
|
55
55
|
color: "bg-purple-200"
|
|
56
56
|
},
|
|
57
57
|
zip: {
|
|
@@ -63,7 +63,7 @@ const FileCard = ({
|
|
|
63
63
|
color: "bg-blue-200"
|
|
64
64
|
},
|
|
65
65
|
unknown: {
|
|
66
|
-
icon: /* @__PURE__ */ jsx(
|
|
66
|
+
icon: /* @__PURE__ */ jsx(SvgTextPage$1, { width: 22, height: 22 }),
|
|
67
67
|
color: "bg-gray-300"
|
|
68
68
|
}
|
|
69
69
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Paperclip } from "@edifice.io/icons";
|
|
3
2
|
import clsx from "clsx";
|
|
3
|
+
import { Paperclip as SvgPaperclip$1 } from "../../../../icons/dist/index.js";
|
|
4
4
|
const FileIcon = ({
|
|
5
5
|
type,
|
|
6
6
|
roleMap
|
|
@@ -8,7 +8,7 @@ const FileIcon = ({
|
|
|
8
8
|
const hasNoShadow = typeof (roleMap == null ? void 0 : roleMap.icon) != "string" && type !== "unknown", fileicon = clsx("position-absolute top-50 start-50 translate-middle", {
|
|
9
9
|
"p-12 rounded-circle shadow": hasNoShadow
|
|
10
10
|
}, roleMap == null ? void 0 : roleMap.color);
|
|
11
|
-
return /* @__PURE__ */ jsx("div", { className: fileicon, children: (roleMap == null ? void 0 : roleMap.icon) ?? /* @__PURE__ */ jsx(
|
|
11
|
+
return /* @__PURE__ */ jsx("div", { className: fileicon, children: (roleMap == null ? void 0 : roleMap.icon) ?? /* @__PURE__ */ jsx(SvgPaperclip$1, {}) });
|
|
12
12
|
};
|
|
13
13
|
export {
|
|
14
14
|
FileIcon as default
|
|
@@ -10,7 +10,7 @@ const Heading = /* @__PURE__ */ forwardRef(({
|
|
|
10
10
|
}, ref) => {
|
|
11
11
|
const classes = clsx(headingStyle, className);
|
|
12
12
|
return /* @__PURE__ */ jsx(Component, { ref, className: classes, ...restProps, children });
|
|
13
|
-
})
|
|
13
|
+
});
|
|
14
14
|
export {
|
|
15
|
-
Heading
|
|
15
|
+
Heading as default
|
|
16
16
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useEffect } from "react";
|
|
3
|
-
import { Edit, Delete } from "@edifice.io/icons";
|
|
4
3
|
import clsx from "clsx";
|
|
4
|
+
import { Edit as SvgEdit$1, Delete as SvgDelete$1 } from "../../../../icons/dist/index.js";
|
|
5
5
|
import FormControl from "../Form/FormControl.js";
|
|
6
6
|
import IconButton from "../Button/IconButton.js";
|
|
7
7
|
import Input from "../Input/Input.js";
|
|
@@ -43,8 +43,8 @@ const ImagePicker = /* @__PURE__ */ forwardRef(({
|
|
|
43
43
|
}, classes = clsx("image-input", className);
|
|
44
44
|
return /* @__PURE__ */ jsxs(FormControl, { id: "image-input", className: classes, onDragEnter: handleDragging, onDragOver: handleDragging, onDragLeave: handleDragLeave, onDrop: handleDrop, ref, children: [
|
|
45
45
|
/* @__PURE__ */ jsxs("div", { className: "image-input-actions gap-8", children: [
|
|
46
|
-
/* @__PURE__ */ jsx(IconButton, { "aria-label": addButtonLabel, color: "tertiary", icon: /* @__PURE__ */ jsx(
|
|
47
|
-
/* @__PURE__ */ jsx(IconButton, { "aria-label": deleteButtonLabel, color: "danger", disabled: !preview, icon: /* @__PURE__ */ jsx(
|
|
46
|
+
/* @__PURE__ */ jsx(IconButton, { "aria-label": addButtonLabel, color: "tertiary", icon: /* @__PURE__ */ jsx(SvgEdit$1, {}), onClick: handleClick, type: "button", variant: "ghost" }),
|
|
47
|
+
/* @__PURE__ */ jsx(IconButton, { "aria-label": deleteButtonLabel, color: "danger", disabled: !preview, icon: /* @__PURE__ */ jsx(SvgDelete$1, { width: "20", height: "20" }), onClick: handleClean, type: "button", variant: "ghost" })
|
|
48
48
|
] }),
|
|
49
49
|
/* @__PURE__ */ jsxs(FormControl.Label, { children: [
|
|
50
50
|
/* @__PURE__ */ jsx("span", { className: "visually-hidden", children: label }),
|
|
@@ -25,7 +25,7 @@ const Input = /* @__PURE__ */ forwardRef(({
|
|
|
25
25
|
"no-validation-icon": noValidationIcon
|
|
26
26
|
}, className);
|
|
27
27
|
return /* @__PURE__ */ jsx("input", { ref, id, className: classes, type, placeholder, required: isRequired, readOnly: isReadOnly, ...restProps });
|
|
28
|
-
})
|
|
28
|
+
});
|
|
29
29
|
export {
|
|
30
|
-
Input
|
|
30
|
+
Input as default
|
|
31
31
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
|
-
import { Loader } from "@edifice.io/icons";
|
|
4
3
|
import clsx from "clsx";
|
|
4
|
+
import { Loader as SvgLoader$1 } from "../../../../icons/dist/index.js";
|
|
5
5
|
const Loading = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
6
6
|
const {
|
|
7
7
|
isLoading,
|
|
@@ -12,7 +12,7 @@ const Loading = /* @__PURE__ */ forwardRef((props, ref) => {
|
|
|
12
12
|
...restProps
|
|
13
13
|
} = props, getLoadingIcon = () => {
|
|
14
14
|
let icon;
|
|
15
|
-
return loadingIcon ? icon = loadingIcon : icon = /* @__PURE__ */ jsx(
|
|
15
|
+
return loadingIcon ? icon = loadingIcon : icon = /* @__PURE__ */ jsx(SvgLoader$1, { ...restProps, "aria-label": "Loading" }), icon;
|
|
16
16
|
}, classes = clsx("loading d-flex align-items-center gap-8", {
|
|
17
17
|
"is-loading": isLoading
|
|
18
18
|
}, className);
|
|
@@ -19,7 +19,7 @@ const LoadingScreen = /* @__PURE__ */ forwardRef(({
|
|
|
19
19
|
] }),
|
|
20
20
|
!position && /* @__PURE__ */ jsx("div", { className: "modal-backdrop fade show" })
|
|
21
21
|
] });
|
|
22
|
-
})
|
|
22
|
+
});
|
|
23
23
|
export {
|
|
24
|
-
LoadingScreen
|
|
24
|
+
LoadingScreen as default
|
|
25
25
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useEffect } from "react";
|
|
3
|
-
import { Close } from "@edifice.io/icons";
|
|
4
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { Close as SvgClose$1 } from "../../../../icons/dist/index.js";
|
|
5
5
|
import IconButton from "../Button/IconButton.js";
|
|
6
6
|
import { useModalContext } from "./ModalContext.js";
|
|
7
7
|
const ModalHeader = (props) => {
|
|
@@ -19,7 +19,7 @@ const ModalHeader = (props) => {
|
|
|
19
19
|
focusId || (_a = closeButtonRef.current) == null || _a.focus();
|
|
20
20
|
}, [focusId]), /* @__PURE__ */ jsxs("div", { className: "modal-header", children: [
|
|
21
21
|
/* @__PURE__ */ jsx("h2", { id: ariaLabelId, className: "modal-title", tabIndex: -1, children }),
|
|
22
|
-
/* @__PURE__ */ jsx(IconButton, { ref: closeButtonRef, "aria-label": t("close"), color: "tertiary", icon: /* @__PURE__ */ jsx(
|
|
22
|
+
/* @__PURE__ */ jsx(IconButton, { ref: closeButtonRef, "aria-label": t("close"), color: "tertiary", icon: /* @__PURE__ */ jsx(SvgClose$1, {}), type: "button", variant: "ghost", title: t("close"), onClick: onModalClose, className: "btn-close" })
|
|
23
23
|
] });
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
@@ -25,7 +25,7 @@ const Radio = /* @__PURE__ */ forwardRef(({
|
|
|
25
25
|
icon && /* @__PURE__ */ jsx("label", { htmlFor: inputProps.id, className: clsx("c-pointer", model !== restProps.value && "text-muted"), children: icon }),
|
|
26
26
|
!icon && label && /* @__PURE__ */ jsx("label", { className: "form-check-label", htmlFor: inputProps.id, children: label })
|
|
27
27
|
] });
|
|
28
|
-
})
|
|
28
|
+
});
|
|
29
29
|
export {
|
|
30
|
-
Radio
|
|
30
|
+
Radio as default
|
|
31
31
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Search } from "@edifice.io/icons";
|
|
3
2
|
import clsx from "clsx";
|
|
4
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { Search as SvgSearch$1 } from "../../../../icons/dist/index.js";
|
|
5
5
|
import FormControl from "../Form/FormControl.js";
|
|
6
6
|
import SearchButton from "../Button/SearchButton.js";
|
|
7
7
|
const SearchBar = ({
|
|
@@ -26,9 +26,9 @@ const SearchBar = ({
|
|
|
26
26
|
onClick == null || onClick();
|
|
27
27
|
};
|
|
28
28
|
return /* @__PURE__ */ jsxs(FormControl, { id: "search-bar", className: searchbar, children: [
|
|
29
|
-
isVariant && /* @__PURE__ */ jsx("div", { className: "position-absolute z-1 top-50 start-0 translate-middle-y border-0 ps-12 bg-transparent", children: /* @__PURE__ */ jsx(
|
|
29
|
+
isVariant && /* @__PURE__ */ jsx("div", { className: "position-absolute z-1 top-50 start-0 translate-middle-y border-0 ps-12 bg-transparent", children: /* @__PURE__ */ jsx(SvgSearch$1, {}) }),
|
|
30
30
|
/* @__PURE__ */ jsx(FormControl.Input, { type: "search", placeholder: t(placeholder), size, noValidationIcon: !0, className: input, onChange, disabled, ...restProps }),
|
|
31
|
-
!isVariant && /* @__PURE__ */ jsx(SearchButton, { type: "submit", "aria-label": t("search"), icon: /* @__PURE__ */ jsx(
|
|
31
|
+
!isVariant && /* @__PURE__ */ jsx(SearchButton, { type: "submit", "aria-label": t("search"), icon: /* @__PURE__ */ jsx(SvgSearch$1, {}), className: "border-start-0", onClick: handleClick })
|
|
32
32
|
] });
|
|
33
33
|
}, SearchBar$1 = SearchBar;
|
|
34
34
|
export {
|