@edifice.io/react 2.0.0-develop-rc.3 → 2.0.0-develop-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/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 +2 -1
- 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 +3 -2
- 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 +3 -2
- 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/index.js +98 -98
- package/dist/modals.js +12 -14
- package/dist/modules/audience/ReactionChoice.js +3 -3
- package/dist/modules/audience/ReactionModal.Card.js +1 -1
- package/dist/modules/audience/ReactionModal.js +3 -3
- package/dist/modules/audience/ReactionSummary.js +1 -1
- package/dist/modules/audience/ViewsCounter.js +1 -1
- package/dist/modules/audience/ViewsModal.js +2 -2
- package/dist/modules/editor/components/BubbleMenuEditImage/BubbleMenuEditImage.js +1 -1
- package/dist/modules/editor/components/Editor/Editor.js +1 -1
- package/dist/modules/editor/components/Editor/MathsModal.js +2 -2
- 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/Renderer/AttachmentRenderer.js +2 -2
- package/dist/modules/editor/components/Renderer/LinkerRenderer.js +1 -1
- package/dist/modules/editor/components/Renderer/MediaRenderer.js +1 -1
- package/dist/modules/editor/components/Toolbar/LinkToolbar.js +1 -1
- 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.js +1 -1
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +3 -3
- 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/SubjectsDropdown.js +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.d.ts +1 -1
- package/dist/modules/modals/ResourceModal/ResourceModal.js +11 -10
- 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/apps/ShareBlog.d.ts +2 -1
- package/dist/modules/modals/ShareModal/apps/ShareBlog.js +3 -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/multimedia/AudioRecorder/AudioRecorder.js +3 -3
- package/dist/modules/multimedia/Embed/Embed.js +2 -2
- package/dist/modules/multimedia/ImageEditor/components/ImageEditor.js +6 -6
- package/dist/modules/multimedia/ImageEditor/components/ImageEditorToolbar.js +1 -1
- package/dist/modules/multimedia/ImagePickerWorkspace/ImagePickerWorkspace.js +2 -2
- package/dist/modules/multimedia/Linker/ExternalLinker.js +4 -4
- package/dist/modules/multimedia/Linker/InternalLinker.js +4 -4
- 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 +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/VideoEmbed/VideoEmbed.js +5 -5
- package/dist/modules/multimedia/VideoRecorder/VideoRecorder.js +5 -5
- package/dist/modules/multimedia/Workspace/Workspace.js +6 -6
- package/dist/multimedia.js +8 -8
- package/dist/portal/Header/Header.js +3 -3
- package/dist/portal/Header/NavLink.js +1 -1
- package/dist/portal/Help/Help.js +1 -1
- package/dist/portal/Help/hooks/useHelp.js +1 -1
- package/dist/portal/Layout/Layout.js +1 -1
- package/dist/portal/SearchEngine/SearchEngine.js +2 -2
- package/package.json +2 -2
- 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
|
@@ -6,5 +6,5 @@ export interface ActionBarProps {
|
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
}
|
|
8
8
|
export type ActionBarType = React.FC<ActionBarProps>;
|
|
9
|
-
declare const ActionBar: import('react').ForwardRefExoticComponent<ActionBarProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const ActionBar: import('react').ForwardRefExoticComponent<ActionBarProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
10
10
|
export default ActionBar;
|
|
@@ -2,7 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
const ActionBar = /* @__PURE__ */ forwardRef(({
|
|
4
4
|
children
|
|
5
|
-
}, ref) => /* @__PURE__ */ jsx("div", { ref, className: "actionbar", children }))
|
|
5
|
+
}, ref) => /* @__PURE__ */ jsx("div", { ref, className: "actionbar", children }));
|
|
6
6
|
export {
|
|
7
|
-
ActionBar
|
|
7
|
+
ActionBar,
|
|
8
|
+
ActionBar as default
|
|
8
9
|
};
|
|
@@ -56,5 +56,5 @@ export interface AlertProps extends ComponentPropsWithRef<'div'> {
|
|
|
56
56
|
*/
|
|
57
57
|
className?: string;
|
|
58
58
|
}
|
|
59
|
-
declare const Alert: import('react').ForwardRefExoticComponent<Omit<AlertProps, "ref"> & import('react').RefAttributes<AlertRef>>;
|
|
59
|
+
export declare const Alert: import('react').ForwardRefExoticComponent<Omit<AlertProps, "ref"> & import('react').RefAttributes<AlertRef>>;
|
|
60
60
|
export default Alert;
|
|
@@ -2,7 +2,7 @@ import { jsx, Fragment, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef, useState, useRef, useCallback, useImperativeHandle, useLayoutEffect, useEffect } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
|
-
import Button from "../Button/Button.js";
|
|
5
|
+
import { Button } from "../Button/Button.js";
|
|
6
6
|
import { Icon } from "../Icon/Icon.js";
|
|
7
7
|
const Alert = /* @__PURE__ */ forwardRef(({
|
|
8
8
|
type = "success",
|
|
@@ -74,5 +74,6 @@ const Alert = /* @__PURE__ */ forwardRef(({
|
|
|
74
74
|
] }) : null });
|
|
75
75
|
}), Alert$1 = Alert;
|
|
76
76
|
export {
|
|
77
|
+
Alert,
|
|
77
78
|
Alert$1 as default
|
|
78
79
|
};
|
|
@@ -13,5 +13,5 @@ export interface AppHeaderProps extends ComponentPropsWithRef<'div'> {
|
|
|
13
13
|
*/
|
|
14
14
|
isFullscreen?: boolean;
|
|
15
15
|
}
|
|
16
|
-
declare const AppHeader: import('react').ForwardRefExoticComponent<Omit<AppHeaderProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const AppHeader: import('react').ForwardRefExoticComponent<Omit<AppHeaderProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
17
|
export default AppHeader;
|
|
@@ -16,7 +16,8 @@ const AppHeader = /* @__PURE__ */ forwardRef(({
|
|
|
16
16
|
children,
|
|
17
17
|
render ? /* @__PURE__ */ jsx("div", { className: "d-flex align-items-center ms-auto gap-8", children: render() }) : null
|
|
18
18
|
] });
|
|
19
|
-
})
|
|
19
|
+
});
|
|
20
20
|
export {
|
|
21
|
-
AppHeader
|
|
21
|
+
AppHeader,
|
|
22
|
+
AppHeader as default
|
|
22
23
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import Image from "../Image/Image.js";
|
|
4
|
+
import { Image } from "../Image/Image.js";
|
|
5
5
|
import useOdeIcons from "../../core/useOdeIcons/useOdeIcons.js";
|
|
6
6
|
import usePaths from "../../core/usePaths/usePaths.js";
|
|
7
7
|
const AppIcon = /* @__PURE__ */ forwardRef(({
|
|
@@ -10,5 +10,5 @@ export interface AttachmentProps extends ComponentPropsWithRef<'div'> {
|
|
|
10
10
|
options: ReactNode | undefined;
|
|
11
11
|
}
|
|
12
12
|
export type AttachmentType = AttachmentProps;
|
|
13
|
-
declare const Attachment: import('react').ForwardRefExoticComponent<Omit<AttachmentProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const Attachment: import('react').ForwardRefExoticComponent<Omit<AttachmentProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
14
|
export default Attachment;
|
|
@@ -9,7 +9,8 @@ const Attachment = /* @__PURE__ */ forwardRef(({
|
|
|
9
9
|
/* @__PURE__ */ jsx(Icon, { name: "paperclip", size: "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
|
+
] }));
|
|
13
13
|
export {
|
|
14
|
-
Attachment
|
|
14
|
+
Attachment,
|
|
15
|
+
Attachment as default
|
|
15
16
|
};
|
|
@@ -28,5 +28,5 @@ export interface AvatarProps extends React.ComponentPropsWithRef<'img'> {
|
|
|
28
28
|
*/
|
|
29
29
|
className?: string;
|
|
30
30
|
}
|
|
31
|
-
declare const Avatar: import('react').ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
31
|
+
export declare const Avatar: import('react').ForwardRefExoticComponent<Omit<AvatarProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
32
32
|
export default Avatar;
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import usePaths from "../../core/usePaths/usePaths.js";
|
|
5
|
-
import Image from "../Image/Image.js";
|
|
5
|
+
import { Image } from "../Image/Image.js";
|
|
6
6
|
const Avatar = /* @__PURE__ */ forwardRef(({
|
|
7
7
|
variant = "square",
|
|
8
8
|
size = "md",
|
|
@@ -27,7 +27,8 @@ 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,
|
|
33
|
+
Avatar as default
|
|
33
34
|
};
|
|
@@ -43,5 +43,5 @@ export interface BadgeProps extends React.ComponentPropsWithRef<'span'> {
|
|
|
43
43
|
/**
|
|
44
44
|
* Primary UI component for user interaction
|
|
45
45
|
*/
|
|
46
|
-
declare const Badge: import('react').ForwardRefExoticComponent<Omit<BadgeProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
46
|
+
export declare const Badge: import('react').ForwardRefExoticComponent<Omit<BadgeProps, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
47
47
|
export default Badge;
|
|
@@ -25,7 +25,8 @@ const Badge = /* @__PURE__ */ forwardRef(({
|
|
|
25
25
|
}
|
|
26
26
|
const classes = clsx("badge", getRadiusClass(), visibility === "always" && "position-absolute translate-middle p-8 d-inline", variant.type === "notification" && (!variant.color || variant.color === "background") && `bg-${variant.level} text-light`, variant.type === "notification" && variant.color === "text" && `text-${variant.level} bg-gray-200 border border-gray-400`, variant.type === "profile" && `badge-profile-${variant.profile}`, variant.type === "link" && "border border-secondary", className);
|
|
27
27
|
return /* @__PURE__ */ jsx("span", { ref, className: classes, ...restProps, children: variant.type === "link" ? /* @__PURE__ */ jsx("div", { className: "d-flex fw-800 align-items-center", children }) : children });
|
|
28
|
-
})
|
|
28
|
+
});
|
|
29
29
|
export {
|
|
30
|
-
Badge
|
|
30
|
+
Badge,
|
|
31
|
+
Badge as default
|
|
31
32
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
-
import Heading from "../Heading/Heading.js";
|
|
4
|
+
import { Heading } from "../Heading/Heading.js";
|
|
5
5
|
import BreadcrumbItem from "./BreadcrumbItem.js";
|
|
6
6
|
import BreadcrumbList from "./BreadcrumbList.js";
|
|
7
7
|
import BreadcrumbNav from "./BreadcrumbNav.js";
|
|
@@ -59,5 +59,5 @@ export interface ButtonProps extends React.ComponentPropsWithRef<'button'> {
|
|
|
59
59
|
/**
|
|
60
60
|
* Primary UI component for user interaction
|
|
61
61
|
*/
|
|
62
|
-
declare const Button: import('react').ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
62
|
+
export declare const Button: import('react').ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
63
63
|
export default Button;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import Loading from "../Loading/Loading.js";
|
|
4
|
+
import { Loading } from "../Loading/Loading.js";
|
|
5
5
|
const Button = /* @__PURE__ */ forwardRef(({
|
|
6
6
|
color = "primary",
|
|
7
7
|
type = "button",
|
|
@@ -29,7 +29,8 @@ const Button = /* @__PURE__ */ forwardRef(({
|
|
|
29
29
|
children,
|
|
30
30
|
rightIcon
|
|
31
31
|
] }) });
|
|
32
|
-
})
|
|
32
|
+
});
|
|
33
33
|
export {
|
|
34
|
-
Button
|
|
34
|
+
Button,
|
|
35
|
+
Button as default
|
|
35
36
|
};
|
|
@@ -7,5 +7,5 @@ export interface IconButtonProps extends Omit<ButtonProps, OmittedProps> {
|
|
|
7
7
|
/**
|
|
8
8
|
* IconButton extends ButtonComponent.
|
|
9
9
|
*/
|
|
10
|
-
declare const IconButton: import('react').ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export declare const IconButton: import('react').ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
export default IconButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import Button from "./Button.js";
|
|
4
|
+
import { Button } from "./Button.js";
|
|
5
5
|
const IconButton = /* @__PURE__ */ forwardRef(({
|
|
6
6
|
icon,
|
|
7
7
|
className,
|
|
@@ -12,7 +12,8 @@ const IconButton = /* @__PURE__ */ forwardRef(({
|
|
|
12
12
|
className: clsx("btn-icon btn-sm", className)
|
|
13
13
|
};
|
|
14
14
|
return /* @__PURE__ */ jsx(Button, { ref, ...buttonProps, children: icon });
|
|
15
|
-
})
|
|
15
|
+
});
|
|
16
16
|
export {
|
|
17
|
-
IconButton
|
|
17
|
+
IconButton,
|
|
18
|
+
IconButton as default
|
|
18
19
|
};
|
|
@@ -17,5 +17,5 @@ export interface SearchButtonProps extends Pick<IconButtonProps, PickedProps> {
|
|
|
17
17
|
/**
|
|
18
18
|
* SearchButton extends the IconButton component by omitting unnecessary props.
|
|
19
19
|
*/
|
|
20
|
-
declare const SearchButton: import('react').ForwardRefExoticComponent<SearchButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
export declare const SearchButton: import('react').ForwardRefExoticComponent<SearchButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
21
21
|
export default SearchButton;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import IconButton from "./IconButton.js";
|
|
4
|
+
import { IconButton } from "./IconButton.js";
|
|
5
5
|
import { Icon } from "../Icon/Icon.js";
|
|
6
6
|
const SearchButton = /* @__PURE__ */ forwardRef(({
|
|
7
7
|
icon = /* @__PURE__ */ jsx(Icon, { name: "search" }),
|
|
@@ -11,7 +11,8 @@ const SearchButton = /* @__PURE__ */ forwardRef(({
|
|
|
11
11
|
}, ref) => {
|
|
12
12
|
const classes = clsx("btn-search", className);
|
|
13
13
|
return /* @__PURE__ */ jsx(IconButton, { ref, className: classes, icon, onClick, ...restProps });
|
|
14
|
-
})
|
|
14
|
+
});
|
|
15
15
|
export {
|
|
16
|
-
SearchButton
|
|
16
|
+
SearchButton,
|
|
17
|
+
SearchButton as default
|
|
17
18
|
};
|
|
@@ -31,7 +31,7 @@ export interface CardProps {
|
|
|
31
31
|
*/
|
|
32
32
|
className?: string;
|
|
33
33
|
}
|
|
34
|
-
declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
34
|
+
export declare const Card: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
35
35
|
Title: {
|
|
36
36
|
({ children, className, }: {
|
|
37
37
|
children: ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCardContext } from "./CardContext.js";
|
|
3
|
-
import IconButton from "../Button/IconButton.js";
|
|
3
|
+
import { IconButton } from "../Button/IconButton.js";
|
|
4
4
|
import { Icon } from "../Icon/Icon.js";
|
|
5
5
|
const CardHeader = () => {
|
|
6
6
|
const {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
3
|
import { useCardContext } from "./CardContext.js";
|
|
4
|
-
import Image from "../Image/Image.js";
|
|
4
|
+
import { Image } from "../Image/Image.js";
|
|
5
5
|
import { AppIcon } from "../AppIcon/AppIcon.js";
|
|
6
6
|
const CardImage = ({
|
|
7
7
|
imageSrc,
|
|
@@ -17,5 +17,5 @@ export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElemen
|
|
|
17
17
|
*/
|
|
18
18
|
indeterminate?: boolean;
|
|
19
19
|
}
|
|
20
|
-
declare const Checkbox: import('react').ForwardRefExoticComponent<CheckboxProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
20
|
+
export declare const Checkbox: import('react').ForwardRefExoticComponent<CheckboxProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
21
21
|
export default Checkbox;
|
|
@@ -29,7 +29,8 @@ 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,
|
|
35
|
+
Checkbox as default
|
|
35
36
|
};
|
|
@@ -14,5 +14,5 @@ export interface ColorPickerProps extends ComponentPropsWithRef<'div'> {
|
|
|
14
14
|
*/
|
|
15
15
|
onSuccess?: (item: ColorPaletteItem) => void;
|
|
16
16
|
}
|
|
17
|
-
declare const ColorPicker: import('react').ForwardRefExoticComponent<Omit<ColorPickerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
17
|
+
export declare const ColorPicker: import('react').ForwardRefExoticComponent<Omit<ColorPickerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
18
18
|
export default ColorPicker;
|
|
@@ -3,8 +3,8 @@ import { forwardRef } from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import { DefaultPalette, AccessiblePalette } from "./ColorPalette.js";
|
|
6
|
-
import ColorPickerItem from "./ColorPickerItem.js";
|
|
7
|
-
import Tooltip from "../Tooltip/Tooltip.js";
|
|
6
|
+
import { ColorPickerItem } from "./ColorPickerItem.js";
|
|
7
|
+
import { Tooltip } from "../Tooltip/Tooltip.js";
|
|
8
8
|
import { Icon } from "../Icon/Icon.js";
|
|
9
9
|
const ColorPicker = /* @__PURE__ */ forwardRef(({
|
|
10
10
|
palettes = [DefaultPalette, AccessiblePalette],
|
|
@@ -31,7 +31,8 @@ const ColorPicker = /* @__PURE__ */ forwardRef(({
|
|
|
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)) })
|
|
33
33
|
] }, paletteIdx)) });
|
|
34
|
-
})
|
|
34
|
+
});
|
|
35
35
|
export {
|
|
36
|
-
ColorPicker
|
|
36
|
+
ColorPicker,
|
|
37
|
+
ColorPicker as default
|
|
37
38
|
};
|
|
@@ -13,7 +13,7 @@ export interface ColorPickerItemProps {
|
|
|
13
13
|
*/
|
|
14
14
|
className?: string;
|
|
15
15
|
}
|
|
16
|
-
declare const ColorPickerItem: {
|
|
16
|
+
export declare const ColorPickerItem: {
|
|
17
17
|
({ model, selected, className, }: ColorPickerItemProps): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
@@ -7,7 +7,8 @@ const ColorPickerItem = ({
|
|
|
7
7
|
className
|
|
8
8
|
}) => model.isReset ? /* @__PURE__ */ jsx(Icon, { name: "delete-color" }) : /* @__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
9
|
backgroundColor: model.value
|
|
10
|
-
} })
|
|
10
|
+
} });
|
|
11
11
|
export {
|
|
12
|
-
ColorPickerItem
|
|
12
|
+
ColorPickerItem,
|
|
13
|
+
ColorPickerItem as default
|
|
13
14
|
};
|
|
@@ -23,7 +23,7 @@ export interface OptionListItemType {
|
|
|
23
23
|
*/
|
|
24
24
|
icon?: any;
|
|
25
25
|
}
|
|
26
|
-
declare const Combobox: {
|
|
26
|
+
export declare const Combobox: {
|
|
27
27
|
({ onSearchResultsChange, onSearchInputChange, options, value, isLoading, noResult, searchMinLength, placeholder, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
|
|
28
28
|
Trigger: ({ placeholder, value, searchMinLength, handleSearchInputChange, }: import('./ComboboxTrigger').ComboboxTriggerProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
displayName: string;
|
|
@@ -2,8 +2,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState, useEffect, Fragment } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import ComboboxTrigger from "./ComboboxTrigger.js";
|
|
5
|
-
import Dropdown from "../Dropdown/Dropdown.js";
|
|
6
|
-
import Loading from "../Loading/Loading.js";
|
|
5
|
+
import { Dropdown } from "../Dropdown/Dropdown.js";
|
|
6
|
+
import { Loading } from "../Loading/Loading.js";
|
|
7
7
|
const Combobox = ({
|
|
8
8
|
onSearchResultsChange,
|
|
9
9
|
onSearchInputChange,
|
|
@@ -35,7 +35,7 @@ const Combobox = ({
|
|
|
35
35
|
] });
|
|
36
36
|
};
|
|
37
37
|
Combobox.Trigger = ComboboxTrigger;
|
|
38
|
-
const Combobox$1 = Combobox;
|
|
39
38
|
export {
|
|
40
|
-
Combobox
|
|
39
|
+
Combobox,
|
|
40
|
+
Combobox as default
|
|
41
41
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect } from "react";
|
|
3
3
|
import { useDropdownContext } from "../Dropdown/DropdownContext.js";
|
|
4
|
-
import Input from "../Input/Input.js";
|
|
5
|
-
import FormControl from "../Form/FormControl.js";
|
|
4
|
+
import { Input } from "../Input/Input.js";
|
|
5
|
+
import { FormControl } from "../Form/FormControl.js";
|
|
6
6
|
const ComboboxTrigger = ({
|
|
7
7
|
placeholder,
|
|
8
8
|
value = "",
|
|
@@ -52,7 +52,7 @@ export type DropdownMenuOptions = {
|
|
|
52
52
|
*/
|
|
53
53
|
type: 'divider';
|
|
54
54
|
};
|
|
55
|
-
declare const Dropdown: {
|
|
55
|
+
export declare const Dropdown: {
|
|
56
56
|
({ children, block, overflow, placement, extraTriggerKeyDownHandler, onToggle, isTriggerHovered, }: DropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
57
57
|
displayName: string;
|
|
58
58
|
} & {
|
|
@@ -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
|
};
|