@edifice.io/react 2.0.0-develop-rc.3 → 2.0.0-develop-rc.7
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/README.md +17 -88
- package/dist/components/ActionBar/ActionBar.d.ts +1 -1
- package/dist/components/ActionBar/ActionBar.js +3 -2
- package/dist/components/ActionBar/index.d.ts +0 -1
- package/dist/components/Alert/Alert.d.ts +1 -1
- package/dist/components/Alert/Alert.js +7 -6
- package/dist/components/Alert/index.d.ts +0 -1
- package/dist/components/AppHeader/AppHeader.d.ts +1 -1
- package/dist/components/AppHeader/AppHeader.js +3 -2
- package/dist/components/AppHeader/index.d.ts +0 -1
- package/dist/components/AppIcon/AppIcon.js +1 -1
- package/dist/components/Attachment/Attachment.d.ts +1 -1
- package/dist/components/Attachment/Attachment.js +3 -2
- package/dist/components/Attachment/index.d.ts +0 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +4 -3
- package/dist/components/Avatar/index.d.ts +0 -1
- package/dist/components/Badge/Badge.d.ts +1 -1
- package/dist/components/Badge/Badge.js +3 -2
- package/dist/components/Badge/index.d.ts +0 -1
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +4 -3
- package/dist/components/Button/IconButton.d.ts +1 -1
- package/dist/components/Button/IconButton.js +4 -3
- package/dist/components/Button/SearchButton.d.ts +1 -1
- package/dist/components/Button/SearchButton.js +4 -3
- package/dist/components/Button/index.d.ts +0 -3
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.js +3 -2
- package/dist/components/Card/CardHeader.js +1 -1
- package/dist/components/Card/CardImage.js +1 -1
- package/dist/components/Card/CardUser.js +1 -1
- package/dist/components/Card/index.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.js +3 -2
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +5 -4
- package/dist/components/ColorPicker/ColorPickerItem.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPickerItem.js +3 -2
- package/dist/components/ColorPicker/index.d.ts +1 -3
- package/dist/components/Combobox/Combobox.d.ts +1 -1
- package/dist/components/Combobox/Combobox.js +4 -4
- package/dist/components/Combobox/ComboboxTrigger.js +2 -2
- package/dist/components/Combobox/index.d.ts +0 -1
- package/dist/components/Dropdown/Dropdown.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.js +4 -3
- package/dist/components/Dropdown/DropdownCheckboxItem.js +1 -1
- package/dist/components/Dropdown/DropdownRadioItem.js +1 -1
- package/dist/components/Dropdown/index.d.ts +0 -1
- package/dist/components/Dropzone/Dropzone.d.ts +1 -1
- package/dist/components/Dropzone/Dropzone.js +2 -2
- package/dist/components/Dropzone/DropzoneFile.js +1 -1
- package/dist/components/Dropzone/DropzoneImport.js +1 -1
- package/dist/components/Dropzone/index.d.ts +0 -1
- package/dist/components/EmptyScreen/EmptyScreen.d.ts +1 -1
- package/dist/components/EmptyScreen/EmptyScreen.js +4 -3
- package/dist/components/EmptyScreen/index.d.ts +0 -1
- package/dist/components/FileCard/FileCard.d.ts +1 -1
- package/dist/components/FileCard/FileCard.js +4 -3
- package/dist/components/FileCard/index.d.ts +0 -1
- package/dist/components/Form/FormControl.d.ts +1 -1
- package/dist/components/Form/FormControl.js +6 -5
- package/dist/components/Form/FormText.d.ts +1 -1
- package/dist/components/Form/FormText.js +3 -2
- package/dist/components/Form/index.d.ts +1 -2
- package/dist/components/Heading/Heading.d.ts +1 -1
- package/dist/components/Heading/Heading.js +3 -2
- package/dist/components/Heading/index.d.ts +0 -1
- package/dist/components/Image/Image.d.ts +1 -1
- package/dist/components/Image/Image.js +3 -2
- package/dist/components/Image/index.d.ts +0 -1
- package/dist/components/ImagePicker/ImagePicker.js +4 -4
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Input/Input.js +3 -2
- package/dist/components/Input/index.d.ts +0 -1
- package/dist/components/Label/Label.d.ts +1 -1
- package/dist/components/Label/Label.js +3 -2
- package/dist/components/Label/index.d.ts +0 -1
- package/dist/components/Loading/Loading.d.ts +1 -1
- package/dist/components/Loading/Loading.js +3 -2
- package/dist/components/Loading/index.d.ts +0 -1
- package/dist/components/LoadingScreen/LoadingScreen.d.ts +1 -1
- package/dist/components/LoadingScreen/LoadingScreen.js +3 -2
- package/dist/components/LoadingScreen/index.d.ts +1 -1
- package/dist/components/Logo/Logo.d.ts +1 -1
- package/dist/components/Logo/Logo.js +3 -2
- package/dist/components/Logo/index.d.ts +0 -1
- package/dist/components/Menu/MenuButton.js +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Modal/Modal.js +3 -2
- package/dist/components/Modal/ModalHeader.js +1 -1
- package/dist/components/Modal/index.d.ts +0 -1
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/Radio/Radio.js +3 -2
- package/dist/components/Radio/index.d.ts +0 -1
- package/dist/components/SearchBar/SearchBar.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.js +5 -4
- package/dist/components/SearchBar/index.d.ts +0 -1
- package/dist/components/Select/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +4 -3
- package/dist/components/Select/SelectTrigger.js +1 -1
- package/dist/components/Select/index.d.ts +0 -1
- package/dist/components/Table/TableExplorer.d.ts +1 -1
- package/dist/components/Table/TableExplorer.js +4 -3
- package/dist/components/Table/index.d.ts +0 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/TabsList.js +1 -1
- package/dist/components/Tabs/index.d.ts +0 -1
- package/dist/components/TextArea/TextArea.d.ts +1 -1
- package/dist/components/TextArea/TextArea.js +5 -4
- package/dist/components/TextArea/index.d.ts +0 -1
- package/dist/components/Toolbar/Toolbar.d.ts +1 -1
- package/dist/components/Toolbar/Toolbar.js +7 -6
- package/dist/components/Toolbar/index.d.ts +0 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.js +3 -2
- package/dist/components/Tooltip/index.d.ts +0 -1
- package/dist/components/TreeView/TreeView.d.ts +1 -1
- package/dist/components/TreeView/TreeView.js +3 -2
- package/dist/components/TreeView/index.d.ts +0 -1
- package/dist/components/UploadCard/UploadCard.js +6 -6
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/dist/components/VisuallyHidden/VisuallyHidden.js +3 -2
- package/dist/components/VisuallyHidden/index.d.ts +1 -1
- package/dist/core/useAvatar/useAvatar.js +1 -1
- package/dist/core/useConversation/useConversation.js +2 -2
- package/dist/core/useHasWorkflow/useHasWorkflow.js +1 -1
- package/dist/core/useHeader/useHeader.js +3 -3
- package/dist/core/useLibraryUrl/useLibraryUrl.js +2 -2
- package/dist/core/useMediaLibrary/useMediaLibrary.js +2 -2
- package/dist/core/useOdeIcons/useOdeIcons.d.ts +1 -1
- package/dist/core/useResource/useResource.d.ts +0 -1
- package/dist/core/useTrashedResource/useTrashedResource.js +2 -2
- package/dist/core/useUpload/useUpload.d.ts +4 -5
- package/dist/core/useUpload/useUpload.js +1 -1
- package/dist/core/useUploadFiles/useUploadFiles.d.ts +5 -5
- package/dist/core/useUploadFiles/useUploadFiles.js +3 -3
- package/dist/core/useWorkspaceFile/useWorkspaceFile.d.ts +4 -4
- package/dist/core/useWorkspaceFile/useWorkspaceFile.js +2 -2
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.d.ts +2 -2
- package/dist/core/useWorkspaceSearch/useWorkspaceSearch.js +1 -1
- package/dist/editor.js +3 -3
- package/dist/hooks/useBrowserInfo/useBrowserInfo.js +1 -1
- package/dist/hooks/useDropdown/useDropdown.d.ts +1 -1
- package/dist/hooks/useDropdown/useDropdown.js +2 -2
- package/dist/hooks/useDropzone/useDropzone.js +2 -2
- package/dist/hooks/useToast/useToast.js +1 -1
- package/dist/index.js +142 -142
- package/dist/modals.js +14 -16
- package/dist/modules/audience/ReactionChoice.js +5 -5
- package/dist/modules/audience/ReactionModal.Card.js +1 -1
- package/dist/modules/audience/ReactionModal.js +4 -5
- package/dist/modules/audience/ReactionSummary.js +3 -3
- package/dist/modules/audience/ViewsCounter.js +3 -3
- package/dist/modules/audience/ViewsModal.js +4 -4
- package/dist/modules/audience/hooks/useReactions.d.ts +3 -5
- package/dist/modules/audience/hooks/useViews.d.ts +3 -3
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js +3 -3
- package/dist/modules/editor/components/Editor/Editor.js +4 -4
- package/dist/modules/editor/components/Editor/MathsModal.d.ts +0 -1
- package/dist/modules/editor/components/Editor/MathsModal.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.DropdownMenu.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Emoji.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.HighlightColor.js +4 -4
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.PlusMenu.js +1 -1
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextColor.js +4 -4
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.TextSize.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.Typography.js +3 -3
- package/dist/modules/editor/components/EditorToolbar/EditorToolbar.js +1 -1
- package/dist/modules/editor/components/NodeView/AttachmentNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/AudioNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/ImageNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/LinkerNodeView.js +2 -2
- package/dist/modules/editor/components/NodeView/VideoNodeView.js +2 -2
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +2 -2
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js +2 -2
- package/dist/modules/editor/components/Renderer/MediaRenderer.js +2 -2
- package/dist/modules/editor/components/Toolbar/LinkToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js +5 -5
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +2 -2
- package/dist/modules/editor/components/Toolbar/TableToolbar.CellColor.js +4 -4
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js +2 -2
- package/dist/modules/editor/components/Toolbar/TableToolbar.d.ts +1 -1
- package/dist/modules/editor/components/Toolbar/TableToolbar.js +6 -6
- package/dist/modules/editor/hooks/useImageModal.d.ts +1 -2
- package/dist/modules/modals/OnboardingModal/OnboardingModal.d.ts +0 -1
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +5 -5
- package/dist/modules/modals/PublishModal/PublishModal.js +8 -8
- package/dist/modules/modals/PublishModal/components/ActivitiesDropdown.js +1 -1
- package/dist/modules/modals/PublishModal/components/AgeSelect.js +1 -1
- package/dist/modules/modals/PublishModal/components/LangSelect.js +1 -1
- package/dist/modules/modals/PublishModal/components/PublishModalFooter.js +1 -1
- package/dist/modules/modals/PublishModal/components/SubjectsDropdown.js +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.js +12 -11
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/apps/BlogPublic.js +8 -7
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/hooks/useUpdateMutation.js +3 -2
- package/dist/modules/modals/ResourceModal/index.d.ts +3 -3
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.d.ts +1 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.d.ts +2 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js +3 -2
- package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +2 -2
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareMutation.js +3 -2
- package/dist/modules/modals/ShareModal/index.d.ts +3 -3
- package/dist/modules/modals/ShareModal/utils/hasRight.d.ts +0 -1
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.d.ts +0 -1
- package/dist/modules/multimedia/AudioRecorder/AudioRecorder.js +5 -5
- package/dist/modules/multimedia/Embed/Embed.js +4 -4
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +8 -8
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.js +1 -1
- package/dist/modules/multimedia/ImageEditor/hooks/useHistoryTool.js +36 -38
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js +2 -2
- package/dist/modules/multimedia/Linker/ExternalLinker.js +9 -9
- package/dist/modules/multimedia/Linker/InternalLinker.js +6 -6
- package/dist/modules/multimedia/LinkerCard/LinkerCard.d.ts +1 -1
- package/dist/modules/multimedia/LinkerCard/LinkerCard.js +5 -4
- package/dist/modules/multimedia/LinkerCard/index.d.ts +0 -1
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +5 -5
- package/dist/modules/multimedia/MediaLibrary/MediaLibraryContext.d.ts +3 -3
- package/dist/modules/multimedia/MediaLibrary/innertabs/InternalLink.js +1 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +1 -1
- package/dist/modules/multimedia/MediaLibrary/innertabs/Workspace.js +2 -2
- package/dist/modules/multimedia/UploadFiles/UploadFiles.d.ts +1 -1
- package/dist/modules/multimedia/VideoEmbed/VideoEmbed.js +7 -7
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +7 -7
- package/dist/modules/multimedia/Workspace/Workspace.js +10 -10
- package/dist/multimedia.js +18 -18
- package/dist/portal/Header/Header.js +3 -3
- package/dist/portal/Header/NavLink.js +1 -1
- package/dist/portal/Help/Help.d.ts +0 -1
- package/dist/portal/Help/Help.js +1 -1
- package/dist/portal/Help/hooks/useHelp.js +1 -1
- package/dist/portal/Layout/Layout.js +4 -4
- package/dist/portal/SearchEngine/SearchEngine.js +2 -2
- package/dist/utils/fileSize.js +1 -1
- package/dist/widgets/BookmarkedApps/BookmarkedApps.js +2 -2
- package/package.json +19 -28
- package/dist/modules/modals/ShareModal/ShareBookmark.js +0 -22
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.js +0 -42
- package/dist/modules/modals/ShareModal/ShareModal.js +0 -128
- package/dist/modules/modals/ShareModal/hooks/useSearch.js +0 -178
- package/dist/modules/modals/ShareModal/hooks/useShare.js +0 -192
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +0 -67
- package/dist/modules/modals/ShareModal/utils/hasRight.js +0 -4
- package/dist/modules/modals/ShareModal/utils/showShareRightLine.js +0 -4
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useEffect } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
+
import useDropdown from "../../hooks/useDropdown/useDropdown.js";
|
|
4
5
|
import DropdownCheckboxItem from "./DropdownCheckboxItem.js";
|
|
5
6
|
import { DropdownContext } from "./DropdownContext.js";
|
|
6
7
|
import DropdownItem from "./DropdownItem.js";
|
|
@@ -9,7 +10,6 @@ import DropdownMenuGroup from "./DropdownMenuGroup.js";
|
|
|
9
10
|
import DropdownRadioItem from "./DropdownRadioItem.js";
|
|
10
11
|
import DropdownSeparator from "./DropdownSeparator.js";
|
|
11
12
|
import DropdownTrigger from "./DropdownTrigger.js";
|
|
12
|
-
import useDropdown from "../../hooks/useDropdown/useDropdown.js";
|
|
13
13
|
import useClickOutside from "../../hooks/useClickOutside/useClickOutside.js";
|
|
14
14
|
const Root = ({
|
|
15
15
|
children,
|
|
@@ -54,7 +54,8 @@ const Root = ({
|
|
|
54
54
|
CheckboxItem: DropdownCheckboxItem,
|
|
55
55
|
RadioItem: DropdownRadioItem,
|
|
56
56
|
MenuGroup: DropdownMenuGroup
|
|
57
|
-
})
|
|
57
|
+
});
|
|
58
58
|
export {
|
|
59
|
-
Dropdown
|
|
59
|
+
Dropdown,
|
|
60
|
+
Dropdown as default
|
|
60
61
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useId } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { useDropdownContext } from "./DropdownContext.js";
|
|
5
|
-
import Checkbox from "../Checkbox/Checkbox.js";
|
|
5
|
+
import { Checkbox } from "../Checkbox/Checkbox.js";
|
|
6
6
|
const DropdownCheckboxItem = ({
|
|
7
7
|
children,
|
|
8
8
|
value,
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useId } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { useDropdownContext } from "./DropdownContext.js";
|
|
5
|
-
import Radio from "../Radio/Radio.js";
|
|
5
|
+
import { Radio } from "../Radio/Radio.js";
|
|
6
6
|
const DropdownRadioItem = ({
|
|
7
7
|
children,
|
|
8
8
|
value,
|
|
@@ -7,7 +7,7 @@ interface DropzoneProps {
|
|
|
7
7
|
handle?: boolean;
|
|
8
8
|
children?: ReactNode;
|
|
9
9
|
}
|
|
10
|
-
declare const Dropzone: {
|
|
10
|
+
export declare const Dropzone: {
|
|
11
11
|
({ className, accept, multiple, handle, children, }: DropzoneProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
File: {
|
|
13
13
|
({ children }: {
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { useMediaLibraryContext } from "../../modules/multimedia/MediaLibrary/MediaLibraryContext.js";
|
|
5
|
-
import Button from "../Button/Button.js";
|
|
5
|
+
import { Button } from "../Button/Button.js";
|
|
6
6
|
import { useDropzoneContext } from "./DropzoneContext.js";
|
|
7
7
|
import { Icon } from "../Icon/Icon.js";
|
|
8
8
|
const DropzoneFile = ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
-
import Button from "../Button/Button.js";
|
|
4
|
+
import { Button } from "../Button/Button.js";
|
|
5
5
|
import { useDropzoneContext } from "./DropzoneContext.js";
|
|
6
6
|
import { Icon } from "../Icon/Icon.js";
|
|
7
7
|
const DropzoneImport = () => {
|
|
@@ -20,7 +20,7 @@ export interface EmptyScreenProps {
|
|
|
20
20
|
*/
|
|
21
21
|
className?: string;
|
|
22
22
|
}
|
|
23
|
-
declare const EmptyScreen: {
|
|
23
|
+
export declare const EmptyScreen: {
|
|
24
24
|
({ imageSrc, imageAlt, title, text, className, }: EmptyScreenProps): import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
displayName: string;
|
|
26
26
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import Heading from "../Heading/Heading.js";
|
|
3
|
+
import { Heading } from "../Heading/Heading.js";
|
|
4
4
|
const EmptyScreen = ({
|
|
5
5
|
imageSrc,
|
|
6
6
|
imageAlt = "",
|
|
@@ -14,7 +14,8 @@ const EmptyScreen = ({
|
|
|
14
14
|
title && /* @__PURE__ */ jsx(Heading, { level: "h2", headingStyle: "h2", className: "text-secondary mb-8", children: title }),
|
|
15
15
|
text && /* @__PURE__ */ jsx("div", { className: textClass, children: text })
|
|
16
16
|
] });
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
18
|
export {
|
|
19
|
-
EmptyScreen
|
|
19
|
+
EmptyScreen,
|
|
20
|
+
EmptyScreen as default
|
|
20
21
|
};
|
|
@@ -6,7 +6,7 @@ export interface FileCardProps extends CardProps {
|
|
|
6
6
|
* */
|
|
7
7
|
doc: WorkspaceElement;
|
|
8
8
|
}
|
|
9
|
-
declare const FileCard: {
|
|
9
|
+
export declare const FileCard: {
|
|
10
10
|
({ doc, isClickable, isSelectable, isSelected, onClick, className, }: FileCardProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { DocumentHelper, odeServices } from "edifice-ts-client";
|
|
5
|
-
import Card from "../Card/Card.js";
|
|
5
|
+
import { Card } from "../Card/Card.js";
|
|
6
6
|
import FileIcon from "./FileIcon.js";
|
|
7
7
|
import useThumbnail from "../../hooks/useThumbnail/useThumbnail.js";
|
|
8
8
|
import { Icon } from "../Icon/Icon.js";
|
|
@@ -85,7 +85,8 @@ const FileCard = ({
|
|
|
85
85
|
/* @__PURE__ */ jsx(Card.Text, { className: "text-black-50", children: doc == null ? void 0 : doc.ownerName })
|
|
86
86
|
] })
|
|
87
87
|
] }) });
|
|
88
|
-
}
|
|
88
|
+
};
|
|
89
89
|
export {
|
|
90
|
-
FileCard
|
|
90
|
+
FileCard,
|
|
91
|
+
FileCard as default
|
|
91
92
|
};
|
|
@@ -29,7 +29,7 @@ export interface FormControlProps extends React.ComponentPropsWithRef<'div'> {
|
|
|
29
29
|
*/
|
|
30
30
|
status?: 'valid' | 'invalid';
|
|
31
31
|
}
|
|
32
|
-
declare const FormControl: import('react').ForwardRefExoticComponent<Omit<FormControlProps, "ref"> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
32
|
+
export declare const FormControl: import('react').ForwardRefExoticComponent<Omit<FormControlProps, "ref"> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
33
33
|
Label: import('react').ForwardRefExoticComponent<Omit<import('../Label').LabelProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
34
34
|
Input: import('react').ForwardRefExoticComponent<Omit<import('../Input').InputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
35
35
|
Text: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useMemo } from "react";
|
|
3
3
|
import { Context } from "./FormContext.js";
|
|
4
|
-
import FormText from "./FormText.js";
|
|
5
|
-
import Label from "../Label/Label.js";
|
|
6
|
-
import Input from "../Input/Input.js";
|
|
4
|
+
import { FormText } from "./FormText.js";
|
|
5
|
+
import { Label } from "../Label/Label.js";
|
|
6
|
+
import { Input } from "../Input/Input.js";
|
|
7
7
|
const Root = /* @__PURE__ */ forwardRef(({
|
|
8
8
|
children,
|
|
9
9
|
className,
|
|
@@ -26,7 +26,8 @@ const Root = /* @__PURE__ */ forwardRef(({
|
|
|
26
26
|
Label,
|
|
27
27
|
Input,
|
|
28
28
|
Text: FormText
|
|
29
|
-
})
|
|
29
|
+
});
|
|
30
30
|
export {
|
|
31
|
-
FormControl
|
|
31
|
+
FormControl,
|
|
32
|
+
FormControl as default
|
|
32
33
|
};
|
|
@@ -11,7 +11,8 @@ const FormText = ({
|
|
|
11
11
|
valid: status === "valid"
|
|
12
12
|
});
|
|
13
13
|
return /* @__PURE__ */ jsx("p", { className: classes, children: /* @__PURE__ */ jsx("em", { children }) });
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
export {
|
|
16
|
-
FormText
|
|
16
|
+
FormText,
|
|
17
|
+
FormText as default
|
|
17
18
|
};
|
|
@@ -23,5 +23,5 @@ export interface HeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
|
23
23
|
/**
|
|
24
24
|
* Heading component to display heading elements
|
|
25
25
|
*/
|
|
26
|
-
declare const Heading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
26
|
+
export declare const Heading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
27
27
|
export default Heading;
|
|
@@ -10,7 +10,8 @@ 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,
|
|
16
|
+
Heading as default
|
|
16
17
|
};
|
|
@@ -25,5 +25,5 @@ export interface ImageProps extends React.ComponentPropsWithRef<'img'> {
|
|
|
25
25
|
*/
|
|
26
26
|
className?: string;
|
|
27
27
|
}
|
|
28
|
-
declare const Image: import('react').ForwardRefExoticComponent<Omit<ImageProps, "ref"> & import('react').RefAttributes<HTMLImageElement>>;
|
|
28
|
+
export declare const Image: import('react').ForwardRefExoticComponent<Omit<ImageProps, "ref"> & import('react').RefAttributes<HTMLImageElement>>;
|
|
29
29
|
export default Image;
|
|
@@ -35,7 +35,8 @@ const Image = /* @__PURE__ */ forwardRef(({
|
|
|
35
35
|
...objectImage
|
|
36
36
|
}, className), renderImage = /* @__PURE__ */ jsx("img", { alt, onError, ref, src: imgSrc, className: classes, ...restProps });
|
|
37
37
|
return ratio ? /* @__PURE__ */ jsx("div", { className: ratioClasses, children: renderImage }) : renderImage;
|
|
38
|
-
})
|
|
38
|
+
});
|
|
39
39
|
export {
|
|
40
|
-
Image
|
|
40
|
+
Image,
|
|
41
|
+
Image as default
|
|
41
42
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useState, useEffect } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import FormControl from "../Form/FormControl.js";
|
|
5
|
-
import IconButton from "../Button/IconButton.js";
|
|
6
|
-
import Input from "../Input/Input.js";
|
|
7
|
-
import Avatar from "../Avatar/Avatar.js";
|
|
8
4
|
import useDropzone from "../../hooks/useDropzone/useDropzone.js";
|
|
5
|
+
import { FormControl } from "../Form/FormControl.js";
|
|
6
|
+
import { IconButton } from "../Button/IconButton.js";
|
|
9
7
|
import { Icon } from "../Icon/Icon.js";
|
|
8
|
+
import { Input } from "../Input/Input.js";
|
|
9
|
+
import { Avatar } from "../Avatar/Avatar.js";
|
|
10
10
|
import { AppIcon } from "../AppIcon/AppIcon.js";
|
|
11
11
|
const ImagePicker = /* @__PURE__ */ forwardRef(({
|
|
12
12
|
label,
|
|
@@ -29,5 +29,5 @@ export interface InputProps extends Omit<React.ComponentPropsWithRef<'input'>, O
|
|
|
29
29
|
/**
|
|
30
30
|
* Input Form Component
|
|
31
31
|
*/
|
|
32
|
-
declare const Input: import('react').ForwardRefExoticComponent<Omit<InputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
32
|
+
export declare const Input: import('react').ForwardRefExoticComponent<Omit<InputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
33
33
|
export default Input;
|
|
@@ -25,7 +25,8 @@ 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,
|
|
31
|
+
Input as default
|
|
31
32
|
};
|
|
@@ -22,5 +22,5 @@ export interface LabelProps extends Omit<React.ComponentPropsWithRef<'label'>, O
|
|
|
22
22
|
*/
|
|
23
23
|
className?: string;
|
|
24
24
|
}
|
|
25
|
-
declare const Label: import('react').ForwardRefExoticComponent<Omit<LabelProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
25
|
+
export declare const Label: import('react').ForwardRefExoticComponent<Omit<LabelProps, "ref"> & import('react').RefAttributes<HTMLLabelElement>>;
|
|
26
26
|
export default Label;
|
|
@@ -31,7 +31,8 @@ const Label = /* @__PURE__ */ forwardRef(({
|
|
|
31
31
|
] }),
|
|
32
32
|
requiredState && /* @__PURE__ */ jsx("em", { className: "required", children: requiredText })
|
|
33
33
|
] });
|
|
34
|
-
})
|
|
34
|
+
});
|
|
35
35
|
export {
|
|
36
|
-
Label
|
|
36
|
+
Label,
|
|
37
|
+
Label as default
|
|
37
38
|
};
|
|
@@ -25,5 +25,5 @@ export interface LoadingProps {
|
|
|
25
25
|
/**
|
|
26
26
|
* Inform user about loading status
|
|
27
27
|
*/
|
|
28
|
-
declare const Loading: import('react').ForwardRefExoticComponent<LoadingProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
28
|
+
export declare const Loading: import('react').ForwardRefExoticComponent<LoadingProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
29
29
|
export default Loading;
|
|
@@ -3,5 +3,5 @@ export interface LoadingScreenProps {
|
|
|
3
3
|
position?: boolean;
|
|
4
4
|
caption?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const LoadingScreen: import('react').ForwardRefExoticComponent<LoadingScreenProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const LoadingScreen: import('react').ForwardRefExoticComponent<LoadingScreenProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
7
|
export default LoadingScreen;
|
|
@@ -19,7 +19,8 @@ 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,
|
|
25
|
+
LoadingScreen as default
|
|
25
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from './LoadingScreen';
|
|
@@ -4,5 +4,5 @@ export interface LogoProps {
|
|
|
4
4
|
is1d?: boolean;
|
|
5
5
|
translate?: string;
|
|
6
6
|
}
|
|
7
|
-
declare const Logo: import('react').ForwardRefExoticComponent<LogoProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
7
|
+
export declare const Logo: import('react').ForwardRefExoticComponent<LogoProps & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
8
8
|
export default Logo;
|
|
@@ -8,7 +8,8 @@ const Logo = /* @__PURE__ */ forwardRef(({
|
|
|
8
8
|
}, ref) => {
|
|
9
9
|
const classes = clsx("navbar-brand d-none d-md-block");
|
|
10
10
|
return /* @__PURE__ */ jsx("a", { ref, className: classes, href: "/timeline/timeline", "aria-label": translate, children: /* @__PURE__ */ jsx("img", { className: "logo", src, alt: `logo ${is1d ? "ONE" : "NEO"}`, width: "300", height: "52" }) });
|
|
11
|
-
})
|
|
11
|
+
});
|
|
12
12
|
export {
|
|
13
|
-
Logo
|
|
13
|
+
Logo,
|
|
14
|
+
Logo as default
|
|
14
15
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { useMenuContext } from "./MenuContext.js";
|
|
4
|
-
import Button from "../Button/Button.js";
|
|
4
|
+
import { Button } from "../Button/Button.js";
|
|
5
5
|
const MenuButton = (props) => {
|
|
6
6
|
const {
|
|
7
7
|
selected,
|
|
@@ -35,7 +35,7 @@ export interface ModalProps {
|
|
|
35
35
|
*/
|
|
36
36
|
children: React.ReactNode;
|
|
37
37
|
}
|
|
38
|
-
declare const Modal: import('react').ForwardRefExoticComponent<ModalProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
38
|
+
export declare const Modal: import('react').ForwardRefExoticComponent<ModalProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
39
39
|
Header: {
|
|
40
40
|
(props: import('./ModalHeader').ModalHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
41
41
|
displayName: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useRef, useEffect } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
-
import IconButton from "../Button/IconButton.js";
|
|
4
|
+
import { IconButton } from "../Button/IconButton.js";
|
|
5
5
|
import { useModalContext } from "./ModalContext.js";
|
|
6
6
|
import { Icon } from "../Icon/Icon.js";
|
|
7
7
|
const ModalHeader = (props) => {
|
|
@@ -21,5 +21,5 @@ export interface RadioProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
21
21
|
*/
|
|
22
22
|
icon?: ReactNode;
|
|
23
23
|
}
|
|
24
|
-
declare const Radio: import('react').ForwardRefExoticComponent<RadioProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
24
|
+
export declare const Radio: import('react').ForwardRefExoticComponent<RadioProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
25
25
|
export default Radio;
|
|
@@ -25,7 +25,8 @@ 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,
|
|
31
|
+
Radio as default
|
|
31
32
|
};
|
|
@@ -44,7 +44,7 @@ type DynamicSearchBar = {
|
|
|
44
44
|
};
|
|
45
45
|
export type Props = DefaultSearchBar | DynamicSearchBar;
|
|
46
46
|
export type SearchBarProps = BaseProps & Props;
|
|
47
|
-
declare const SearchBar: {
|
|
47
|
+
export declare const SearchBar: {
|
|
48
48
|
({ isVariant, size, placeholder, className, disabled, onChange, onClick, ...restProps }: SearchBarProps): import("react/jsx-runtime").JSX.Element;
|
|
49
49
|
displayName: string;
|
|
50
50
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
-
import FormControl from "../Form/FormControl.js";
|
|
5
|
-
import SearchButton from "../Button/SearchButton.js";
|
|
4
|
+
import { FormControl } from "../Form/FormControl.js";
|
|
5
|
+
import { SearchButton } from "../Button/SearchButton.js";
|
|
6
6
|
import { Icon } from "../Icon/Icon.js";
|
|
7
7
|
const SearchBar = ({
|
|
8
8
|
isVariant = !1,
|
|
@@ -30,7 +30,8 @@ const SearchBar = ({
|
|
|
30
30
|
/* @__PURE__ */ jsx(FormControl.Input, { type: "search", placeholder: t(placeholder), size, noValidationIcon: !0, className: input, onChange, disabled, ...restProps }),
|
|
31
31
|
!isVariant && /* @__PURE__ */ jsx(SearchButton, { type: "submit", "aria-label": t("search"), icon: /* @__PURE__ */ jsx(Icon, { name: "search" }), className: "border-start-0", onClick: handleClick })
|
|
32
32
|
] });
|
|
33
|
-
}
|
|
33
|
+
};
|
|
34
34
|
export {
|
|
35
|
-
SearchBar
|
|
35
|
+
SearchBar,
|
|
36
|
+
SearchBar as default
|
|
36
37
|
};
|
|
@@ -32,7 +32,7 @@ export interface SelectProps extends Omit<DropdownProps, 'children'>, Omit<Dropd
|
|
|
32
32
|
*
|
|
33
33
|
* Select component is based on Dropdown Component. It extends `Dropdown` and `Dropdown.Trigger` props `block`, `overflow`, `icon`, `variant`, `size`, `disabled`
|
|
34
34
|
*/
|
|
35
|
-
declare const Select: {
|
|
35
|
+
export declare const Select: {
|
|
36
36
|
({ icon, options, overflow, block, variant, size, disabled, placeholderOption, onValueChange, }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
37
37
|
displayName: string;
|
|
38
38
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
+
import { Dropdown } from "../Dropdown/Dropdown.js";
|
|
4
5
|
import SelectTrigger from "./SelectTrigger.js";
|
|
5
|
-
import Dropdown from "../Dropdown/Dropdown.js";
|
|
6
6
|
const Select = ({
|
|
7
7
|
icon,
|
|
8
8
|
options,
|
|
@@ -31,7 +31,8 @@ const Select = ({
|
|
|
31
31
|
return /* @__PURE__ */ jsx(Dropdown.Item, { type: "action", onClick: () => setLocalValue(option), icon: icon2, children: label2 }, value);
|
|
32
32
|
}) })
|
|
33
33
|
] });
|
|
34
|
-
}
|
|
34
|
+
};
|
|
35
35
|
export {
|
|
36
|
-
Select
|
|
36
|
+
Select,
|
|
37
|
+
Select as default
|
|
37
38
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import Dropdown from "../Dropdown/Dropdown.js";
|
|
2
|
+
import { Dropdown } from "../Dropdown/Dropdown.js";
|
|
3
3
|
const SelectTrigger = (props) => /* @__PURE__ */ jsx(Dropdown.Trigger, { ...props, "aria-haspopup": "listbox", role: "combobox" });
|
|
4
4
|
export {
|
|
5
5
|
SelectTrigger as default
|
|
@@ -10,5 +10,5 @@ export type TableExplorerRef = HTMLTableElement;
|
|
|
10
10
|
export interface TableExplorerProps {
|
|
11
11
|
children?: Array<React.ReactElement<HTMLTableSectionElement>>;
|
|
12
12
|
}
|
|
13
|
-
declare const TableExplorer: import('react').ForwardRefExoticComponent<TableExplorerProps & import('react').RefAttributes<HTMLTableElement>>;
|
|
13
|
+
export declare const TableExplorer: import('react').ForwardRefExoticComponent<TableExplorerProps & import('react').RefAttributes<HTMLTableElement>>;
|
|
14
14
|
export default TableExplorer;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
const TableExplorer = /* @__PURE__ */ forwardRef(({
|
|
4
4
|
children
|
|
5
|
-
}, ref) => /* @__PURE__ */ jsx(
|
|
5
|
+
}, ref) => /* @__PURE__ */ jsx("table", { ref, className: "table-explorer", children }));
|
|
6
6
|
export {
|
|
7
|
-
TableExplorer
|
|
7
|
+
TableExplorer,
|
|
8
|
+
TableExplorer as default
|
|
8
9
|
};
|
|
@@ -21,7 +21,7 @@ export interface TabsProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* Tab Content displayed one at a time when a Tab Item is selected
|
|
23
23
|
*/
|
|
24
|
-
declare const Tabs: {
|
|
24
|
+
export declare const Tabs: {
|
|
25
25
|
({ defaultId, items, onChange, children }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
26
26
|
Item: {
|
|
27
27
|
({ icon, label, id, order, }: TabsItemProps & {
|