@blocklet/discuss-kit-ux 2.0.172 → 2.0.174
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/authz/access-control.d.ts +1 -1
- package/dist/components/avatars/Avatars.stories.d.ts +1 -1
- package/dist/components/avatars/author-info.d.ts +1 -1
- package/dist/components/avatars/avatars.d.ts +1 -1
- package/dist/components/blog/blog-list.d.ts +1 -1
- package/dist/components/chat/chat-client.d.ts +2 -2
- package/dist/components/chat/context.d.ts +2 -2
- package/dist/components/chat/message-list.d.ts +1 -1
- package/dist/components/chat/participants.d.ts +1 -1
- package/dist/components/confirm.d.ts +1 -1
- package/dist/components/editor/editor.d.ts +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/posts/Post.stories.d.ts +2 -2
- package/dist/components/posts/comment-list/context.d.ts +1 -1
- package/dist/components/posts/comment.d.ts +1 -1
- package/dist/components/posts/menu.d.ts +1 -1
- package/dist/components/posts/post.d.ts +2 -2
- package/dist/components/profile-card/ProfileCard.stories.d.ts +1 -1
- package/dist/components/rating/binary-thumb.d.ts +1 -1
- package/dist/components/rating/github-reaction.d.ts +1 -1
- package/dist/components/rating/rating.d.ts +1 -1
- package/dist/components/utils.d.ts +1 -1
- package/dist/{editor-WBSInDaE.mjs → editor-IcWrVf5F.mjs} +1 -1
- package/dist/{index-BjrIjCcP.mjs → index-Dg_94VmY.mjs} +8 -8
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +6 -6
- package/dist/theme/index.d.ts +2 -2
- package/package.json +47 -51
- package/dist/components/shared/dialog.d.ts +0 -16
|
@@ -7,5 +7,5 @@ interface AccessControlProps {
|
|
|
7
7
|
check?: (user: SessionContextUser) => boolean;
|
|
8
8
|
children: React.ReactElement;
|
|
9
9
|
}
|
|
10
|
-
export default function AccessControl({ authenticated, permissions, roles, check, children, }: AccessControlProps): import('react').ReactElement<any, string | import(
|
|
10
|
+
export default function AccessControl({ authenticated, permissions, roles, check, children, }: AccessControlProps): import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | null;
|
|
11
11
|
export {};
|
|
@@ -20,7 +20,7 @@ type CardProps = {
|
|
|
20
20
|
compactLayout?: '0' | '1';
|
|
21
21
|
loading?: boolean;
|
|
22
22
|
};
|
|
23
|
-
export declare const BlogCard: import('react').ForwardRefExoticComponent<CardProps & import(
|
|
23
|
+
export declare const BlogCard: import('react').ForwardRefExoticComponent<CardProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
24
24
|
export default function BlogListWrapper({ variant, cardsLayout, ...rest }: BlogListProps & {
|
|
25
25
|
variant?: 'card' | 'list';
|
|
26
26
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Chat as ChatType } from './types';
|
|
2
|
-
import { default as ChatClient } from './chat-client';
|
|
3
1
|
import { User } from '../../types';
|
|
2
|
+
import { default as ChatClient } from './chat-client';
|
|
3
|
+
import { Chat as ChatType } from './types';
|
|
4
4
|
|
|
5
5
|
export interface ChatProviderProps {
|
|
6
6
|
children: React.ReactNode;
|
|
@@ -6,5 +6,5 @@ interface ChatProps {
|
|
|
6
6
|
export interface MessageListHandle {
|
|
7
7
|
scrollToBottom: () => void;
|
|
8
8
|
}
|
|
9
|
-
declare const MessageList: import('react').ForwardRefExoticComponent<ChatProps & import(
|
|
9
|
+
declare const MessageList: import('react').ForwardRefExoticComponent<ChatProps & import('react').RefAttributes<MessageListHandle>>;
|
|
10
10
|
export default MessageList;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorState, LexicalEditor } from 'lexical';
|
|
2
1
|
import { BlockletEditorProps } from '@blocklet/editor';
|
|
2
|
+
import { EditorState, LexicalEditor } from 'lexical';
|
|
3
3
|
|
|
4
4
|
export type OnChangeHandler = ({ content, editorState, editor, isEmpty, getExcerpt, }: {
|
|
5
5
|
content: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EditorState } from 'lexical';
|
|
2
1
|
import { BoxProps } from '@mui/material';
|
|
2
|
+
import { EditorState } from 'lexical';
|
|
3
3
|
|
|
4
4
|
export declare const preloadInput: () => Promise<typeof import('@blocklet/editor').default>;
|
|
5
5
|
export type Send = (content: string) => Promise<any>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { default as Comment } from './comment';
|
|
2
|
-
import { default as Post } from './post';
|
|
3
1
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { default as Post } from './post';
|
|
3
|
+
import { default as Comment } from './comment';
|
|
4
4
|
|
|
5
5
|
declare const _default: ComponentMeta<typeof Post>;
|
|
6
6
|
export default _default;
|
|
@@ -7,6 +7,6 @@ interface MenuProps {
|
|
|
7
7
|
}
|
|
8
8
|
declare function Menu({ items, ...rest }: MenuProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
9
|
declare namespace Menu {
|
|
10
|
-
var Item: import(
|
|
10
|
+
var Item: import("@mui/material").ExtendButtonBase<import("@mui/material/MenuItem").MenuItemTypeMap<{}, "li">>;
|
|
11
11
|
}
|
|
12
12
|
export default Menu;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Post } from '../../types';
|
|
2
|
-
import { default as MuiMenuItem } from '@mui/material/MenuItem';
|
|
3
1
|
import { default as React } from 'react';
|
|
2
|
+
import { default as MuiMenuItem } from '@mui/material/MenuItem';
|
|
3
|
+
import { Post } from '../../types';
|
|
4
4
|
|
|
5
5
|
export interface PostProps {
|
|
6
6
|
post: Post;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as ProfileCard } from './profile-card';
|
|
2
1
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
2
|
+
import { default as ProfileCard } from './profile-card';
|
|
3
3
|
|
|
4
4
|
declare const _default: ComponentMeta<typeof ProfileCard>;
|
|
5
5
|
export default _default;
|
|
@@ -23,5 +23,5 @@ export interface RatingProps {
|
|
|
23
23
|
}) => Promise<any>;
|
|
24
24
|
onUnrate: () => Promise<any>;
|
|
25
25
|
}
|
|
26
|
-
declare function Rating({ ratingType, values, countPerValue, selectedValue, render, onRate, onUnrate }: RatingProps): import('react').ReactElement<any, string | import(
|
|
26
|
+
declare function Rating({ ratingType, values, countPerValue, selectedValue, render, onRate, onUnrate }: RatingProps): import('react').ReactElement<any, string | import('react').JSXElementConstructor<any>> | null;
|
|
27
27
|
export default Rating;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SystemStyleObject } from '@mui/system';
|
|
2
1
|
import { SxProps, Theme } from '@mui/material';
|
|
2
|
+
import { SystemStyleObject } from '@mui/system';
|
|
3
3
|
|
|
4
4
|
export declare const repairBase64Avatar: (avatar?: string) => string | undefined;
|
|
5
5
|
export declare const getResizedAvatar: (avatar: string, size?: number) => string;
|
|
@@ -4,7 +4,7 @@ import { OnContentChangePlugin } from "@blocklet/editor/lib/ext/OnContentChangeP
|
|
|
4
4
|
import { CtrlsShortcutPlugin } from "@blocklet/editor/lib/ext/ShortcutPlugin";
|
|
5
5
|
import { SafeAreaPlugin } from "@blocklet/editor/lib/ext/SafeAreaPlugin";
|
|
6
6
|
import { lazy } from "react";
|
|
7
|
-
import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-
|
|
7
|
+
import { i as inferInitialEditorState, I as ImagePathFixerPlugin, V as VideoPathFixerPlugin, a as isEmptyContent, s as stringify, g as getExcerptSync } from "./index-Dg_94VmY.mjs";
|
|
8
8
|
const BlockletEditor = lazy(() => import("@blocklet/editor"));
|
|
9
9
|
const Root = styled(Box)`
|
|
10
10
|
.be-editable,
|
|
@@ -7,7 +7,7 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
|
7
7
|
import { useTheme, ThemeProvider, styled } from "@mui/material/styles";
|
|
8
8
|
import { create as create$1, styled as styled$1 } from "@arcblock/ux/lib/Theme";
|
|
9
9
|
import { useEffect, useRef, useState, createElement, useContext, useMemo, useCallback, isValidElement, lazy, Suspense, createContext, Fragment as Fragment$1, forwardRef, useImperativeHandle } from "react";
|
|
10
|
-
import { Box, useTheme as useTheme$1, useMediaQuery, Tooltip as Tooltip$1, Chip as Chip$1, alpha, ClickAwayListener, Dialog as Dialog$1, DialogTitle, DialogContent, DialogActions, DialogContentText, Button as Button$1, Divider, Skeleton, IconButton as IconButton$2, InputBase, tooltipClasses as tooltipClasses$1, CircularProgress, Backdrop, Autocomplete, Typography as Typography$1, TextField as TextField$1, InputAdornment, SwipeableDrawer, Badge as Badge$1, Paper, ToggleButtonGroup, ToggleButton } from "@mui/material";
|
|
10
|
+
import { Box, useTheme as useTheme$1, useMediaQuery, styled as styled$2, Tooltip as Tooltip$1, Chip as Chip$1, alpha, ClickAwayListener, Dialog as Dialog$1, DialogTitle, DialogContent, DialogActions, DialogContentText, Button as Button$1, Divider, Skeleton, IconButton as IconButton$2, InputBase, tooltipClasses as tooltipClasses$1, CircularProgress, Backdrop, Autocomplete, Typography as Typography$1, TextField as TextField$1, InputAdornment, SwipeableDrawer, Badge as Badge$1, Paper, ToggleButtonGroup, ToggleButton } from "@mui/material";
|
|
11
11
|
import isNil from "lodash/isNil";
|
|
12
12
|
import { useEditorConfig, EditorConfigProvider } from "@blocklet/editor/lib/config";
|
|
13
13
|
import { lazyWithPreload } from "react-lazy-with-preload";
|
|
@@ -682,7 +682,7 @@ const Input = ({
|
|
|
682
682
|
}
|
|
683
683
|
) }), render == null ? void 0 : render({ submit, content, loading, error, inSmallView }));
|
|
684
684
|
};
|
|
685
|
-
const mdiLanguageMarkdown = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M20.56 18H3.44C2.65 18 2 17.37 2 16.59V7.41C2 6.63 2.65 6 3.44 6h17.12c.79 0 1.44.63 1.44 1.41v9.18c0 .78-.65 1.41-1.44 1.41M6.81 15.19v-3.66l1.92 2.35l1.92-2.35v3.66h1.93V8.81h-1.93l-1.92 2.35l-1.92-2.35H4.89v6.
|
|
685
|
+
const mdiLanguageMarkdown = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M20.56 18H3.44C2.65 18 2 17.37 2 16.59V7.41C2 6.63 2.65 6 3.44 6h17.12c.79 0 1.44.63 1.44 1.41v9.18c0 .78-.65 1.41-1.44 1.41M6.81 15.19v-3.66l1.92 2.35l1.92-2.35v3.66h1.93V8.81h-1.93l-1.92 2.35l-1.92-2.35H4.89v6.38zM19.69 12h-1.92V8.81h-1.92V12h-1.93l2.89 3.28z" }) });
|
|
686
686
|
const StyledInput = styled(Input)`
|
|
687
687
|
.be-shell {
|
|
688
688
|
padding-bottom: 44px;
|
|
@@ -1823,10 +1823,10 @@ function PostComponent({
|
|
|
1823
1823
|
}
|
|
1824
1824
|
const tablerMessageCircle = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "data-iconify": "tabler", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m3 20l1.3-3.9C1.976 12.663 2.874 8.228 6.4 5.726c3.526-2.501 8.59-2.296 11.845.48c3.255 2.777 3.695 7.266 1.029 10.501S11.659 20.922 7.7 19z" }) });
|
|
1825
1825
|
const iconoirThumbsUp = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxs("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeWidth: 1.5, children: [
|
|
1826
|
-
/* @__PURE__ */ jsx("path", { d: "M16.472 20H4.1a.6.6 0 0 1-.6-.6V9.6a.6.6 0 0 1 .6-.6h2.768a2 2 0 0 0 1.715-.971l2.71-4.517a1.631 1.631 0 0 1 2.961 1.308l-1.022 3.408a.6.6 0 0 0 .574.772h4.
|
|
1826
|
+
/* @__PURE__ */ jsx("path", { d: "M16.472 20H4.1a.6.6 0 0 1-.6-.6V9.6a.6.6 0 0 1 .6-.6h2.768a2 2 0 0 0 1.715-.971l2.71-4.517a1.631 1.631 0 0 1 2.961 1.308l-1.022 3.408a.6.6 0 0 0 .574.772h4.576a2 2 0 0 1 1.929 2.526l-1.91 7A2 2 0 0 1 16.473 20Z" }),
|
|
1827
1827
|
/* @__PURE__ */ jsx("path", { strokeLinejoin: "round", d: "M7 20V9" })
|
|
1828
1828
|
] }) });
|
|
1829
|
-
const StyledDialog = styled(Dialog)`
|
|
1829
|
+
const StyledDialog = styled$2(Dialog)`
|
|
1830
1830
|
.ux-dialog_header {
|
|
1831
1831
|
padding: 0 16px;
|
|
1832
1832
|
}
|
|
@@ -2937,7 +2937,7 @@ function CommentList(props) {
|
|
|
2937
2937
|
) })
|
|
2938
2938
|
] });
|
|
2939
2939
|
}
|
|
2940
|
-
const materialSymbolsUpload = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
2940
|
+
const materialSymbolsUpload = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M11 16V7.85l-2.6 2.6L7 9l5-5l5 5l-1.4 1.45l-2.6-2.6V16zm-5 4q-.825 0-1.412-.587T4 18v-3h2v3h12v-3h2v3q0 .825-.587 1.413T18 20z" }) });
|
|
2941
2941
|
const composeImageUrl = (imageUrl, width = 320) => {
|
|
2942
2942
|
var _a2;
|
|
2943
2943
|
const prefix2 = joinUrl(((_a2 = window.blocklet) == null ? void 0 : _a2.prefix) || "/", "uploads");
|
|
@@ -3744,7 +3744,7 @@ class ChatClient {
|
|
|
3744
3744
|
return () => this.emitter.off("updateLastAckTime", callback);
|
|
3745
3745
|
}
|
|
3746
3746
|
}
|
|
3747
|
-
const iconoirChatBubbleEmpty = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12c0 1.821.487 3.53 1.338 5L2.5 21.5l4.5-.838A9.
|
|
3747
|
+
const iconoirChatBubbleEmpty = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12c0 1.821.487 3.53 1.338 5L2.5 21.5l4.5-.838A9.96 9.96 0 0 0 12 22" }) });
|
|
3748
3748
|
const UnreadNotificationContext = createContext(
|
|
3749
3749
|
{}
|
|
3750
3750
|
);
|
|
@@ -4715,7 +4715,7 @@ function Back({ url, fallbackUrl, iconOnly, sx, ...rest }) {
|
|
|
4715
4715
|
}
|
|
4716
4716
|
const tablerSend = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "data-iconify": "tabler", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 14L21 3m0 0l-6.5 18a.55.55 0 0 1-1 0L10 14l-7-3.5a.55.55 0 0 1 0-1z" }) });
|
|
4717
4717
|
const tablerLetterCase = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", "data-iconify": "tabler", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M14 15.5a3.5 3.5 0 1 0 7 0a3.5 3.5 0 1 0-7 0M3 19V8.5a3.5 3.5 0 0 1 7 0V19m-7-6h7m11-1v7" }) });
|
|
4718
|
-
const Editor = lazy(() => import("./editor-
|
|
4718
|
+
const Editor = lazy(() => import("./editor-IcWrVf5F.mjs"));
|
|
4719
4719
|
function LazyEditor(props) {
|
|
4720
4720
|
const fallback2 = /* @__PURE__ */ jsxs(Box, { sx: { px: 3 }, children: [
|
|
4721
4721
|
/* @__PURE__ */ jsx(Skeleton, {}),
|
|
@@ -5757,7 +5757,7 @@ function ChatHeaderAddon({ ...rest }) {
|
|
|
5757
5757
|
}
|
|
5758
5758
|
return /* @__PURE__ */ jsx(IconButton$2, { size: "medium", ...rest, component: Link, to: "/chat", children: /* @__PURE__ */ jsx(Badge$1, { color: "error", variant: "dot", invisible: !unread, children: /* @__PURE__ */ jsx(iconoirMessageText, { style: { fontSize: 20 } }) }) });
|
|
5759
5759
|
}
|
|
5760
|
-
const materialSymbolsEditOutline = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M5 19h1.
|
|
5760
|
+
const materialSymbolsEditOutline = (props) => /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M5 19h1.425L16.2 9.225L14.775 7.8L5 17.575zm-2 2v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM19 6.4L17.6 5zm-3.525 2.125l-.7-.725L16.2 9.225z" }) });
|
|
5761
5761
|
function SecureLabelPicker(props) {
|
|
5762
5762
|
const { isAdmin } = useAuthzContext();
|
|
5763
5763
|
const editable = typeof props.editable === "boolean" ? props.editable : isAdmin;
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "@blocklet/labels";
|
|
2
|
-
import { T, n, W, A, m, ad, B, F, K, J, L, ap, Y, X, $, Z, _, a1, w, C, x, y, E, a5, a6, ah, a8, O, Q, ac, D, ag, af, H, G, b, k, ae, M, P, ao, v, q, R, S, a9, aq, o, a2, a4, ai, al, ak, am, ar, N, as, l, f, p, r, j, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-
|
|
2
|
+
import { T, n, W, A, m, ad, B, F, K, J, L, ap, Y, X, $, Z, _, a1, w, C, x, y, E, a5, a6, ah, a8, O, Q, ac, D, ag, af, H, G, b, k, ae, M, P, ao, v, q, R, S, a9, aq, o, a2, a4, ai, al, ak, am, ar, N, as, l, f, p, r, j, t, h, aa, U, c, a0, z, a7, ab, u, an, d, at, a3, aj, e } from "./index-Dg_94VmY.mjs";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@mui/material/Box";
|
package/dist/index.umd.js
CHANGED
|
@@ -607,7 +607,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
607
607
|
}
|
|
608
608
|
) }), render == null ? void 0 : render({ submit, content, loading, error, inSmallView }));
|
|
609
609
|
};
|
|
610
|
-
const mdiLanguageMarkdown = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "currentColor", d: "M20.56 18H3.44C2.65 18 2 17.37 2 16.59V7.41C2 6.63 2.65 6 3.44 6h17.12c.79 0 1.44.63 1.44 1.41v9.18c0 .78-.65 1.41-1.44 1.41M6.81 15.19v-3.66l1.92 2.35l1.92-2.35v3.66h1.93V8.81h-1.93l-1.92 2.35l-1.92-2.35H4.89v6.
|
|
610
|
+
const mdiLanguageMarkdown = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "currentColor", d: "M20.56 18H3.44C2.65 18 2 17.37 2 16.59V7.41C2 6.63 2.65 6 3.44 6h17.12c.79 0 1.44.63 1.44 1.41v9.18c0 .78-.65 1.41-1.44 1.41M6.81 15.19v-3.66l1.92 2.35l1.92-2.35v3.66h1.93V8.81h-1.93l-1.92 2.35l-1.92-2.35H4.89v6.38zM19.69 12h-1.92V8.81h-1.92V12h-1.93l2.89 3.28z" }) });
|
|
611
611
|
const StyledInput = styles.styled(Input)`
|
|
612
612
|
.be-shell {
|
|
613
613
|
padding-bottom: 44px;
|
|
@@ -1748,10 +1748,10 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
1748
1748
|
}
|
|
1749
1749
|
const tablerMessageCircle = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", "data-iconify": "tabler", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m3 20l1.3-3.9C1.976 12.663 2.874 8.228 6.4 5.726c3.526-2.501 8.59-2.296 11.845.48c3.255 2.777 3.695 7.266 1.029 10.501S11.659 20.922 7.7 19z" }) });
|
|
1750
1750
|
const iconoirThumbsUp = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsxs("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeWidth: 1.5, children: [
|
|
1751
|
-
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M16.472 20H4.1a.6.6 0 0 1-.6-.6V9.6a.6.6 0 0 1 .6-.6h2.768a2 2 0 0 0 1.715-.971l2.71-4.517a1.631 1.631 0 0 1 2.961 1.308l-1.022 3.408a.6.6 0 0 0 .574.772h4.
|
|
1751
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M16.472 20H4.1a.6.6 0 0 1-.6-.6V9.6a.6.6 0 0 1 .6-.6h2.768a2 2 0 0 0 1.715-.971l2.71-4.517a1.631 1.631 0 0 1 2.961 1.308l-1.022 3.408a.6.6 0 0 0 .574.772h4.576a2 2 0 0 1 1.929 2.526l-1.91 7A2 2 0 0 1 16.473 20Z" }),
|
|
1752
1752
|
/* @__PURE__ */ jsxRuntime.jsx("path", { strokeLinejoin: "round", d: "M7 20V9" })
|
|
1753
1753
|
] }) });
|
|
1754
|
-
const StyledDialog =
|
|
1754
|
+
const StyledDialog = material.styled(Dialog)`
|
|
1755
1755
|
.ux-dialog_header {
|
|
1756
1756
|
padding: 0 16px;
|
|
1757
1757
|
}
|
|
@@ -2862,7 +2862,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
2862
2862
|
) })
|
|
2863
2863
|
] });
|
|
2864
2864
|
}
|
|
2865
|
-
const materialSymbolsUpload = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "currentColor", d: "
|
|
2865
|
+
const materialSymbolsUpload = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "currentColor", d: "M11 16V7.85l-2.6 2.6L7 9l5-5l5 5l-1.4 1.45l-2.6-2.6V16zm-5 4q-.825 0-1.412-.587T4 18v-3h2v3h12v-3h2v3q0 .825-.587 1.413T18 20z" }) });
|
|
2866
2866
|
const composeImageUrl = (imageUrl, width = 320) => {
|
|
2867
2867
|
var _a2;
|
|
2868
2868
|
const prefix2 = joinUrl(((_a2 = window.blocklet) == null ? void 0 : _a2.prefix) || "/", "uploads");
|
|
@@ -3669,7 +3669,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
3669
3669
|
return () => this.emitter.off("updateLastAckTime", callback);
|
|
3670
3670
|
}
|
|
3671
3671
|
}
|
|
3672
|
-
const iconoirChatBubbleEmpty = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12c0 1.821.487 3.53 1.338 5L2.5 21.5l4.5-.838A9.
|
|
3672
|
+
const iconoirChatBubbleEmpty = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2S2 6.477 2 12c0 1.821.487 3.53 1.338 5L2.5 21.5l4.5-.838A9.96 9.96 0 0 0 12 22" }) });
|
|
3673
3673
|
const UnreadNotificationContext = react.createContext(
|
|
3674
3674
|
{}
|
|
3675
3675
|
);
|
|
@@ -5682,7 +5682,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
5682
5682
|
}
|
|
5683
5683
|
return /* @__PURE__ */ jsxRuntime.jsx(material.IconButton, { size: "medium", ...rest, component: reactRouterDom.Link, to: "/chat", children: /* @__PURE__ */ jsxRuntime.jsx(material.Badge, { color: "error", variant: "dot", invisible: !unread, children: /* @__PURE__ */ jsxRuntime.jsx(iconoirMessageText, { style: { fontSize: 20 } }) }) });
|
|
5684
5684
|
}
|
|
5685
|
-
const materialSymbolsEditOutline = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "currentColor", d: "M5 19h1.
|
|
5685
|
+
const materialSymbolsEditOutline = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "1.2em", height: "1.2em", ...props, children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "currentColor", d: "M5 19h1.425L16.2 9.225L14.775 7.8L5 17.575zm-2 2v-4.25L16.2 3.575q.3-.275.663-.425t.762-.15t.775.15t.65.45L20.425 5q.3.275.438.65T21 6.4q0 .4-.137.763t-.438.662L7.25 21zM19 6.4L17.6 5zm-3.525 2.125l-.7-.725L16.2 9.225z" }) });
|
|
5686
5686
|
function SecureLabelPicker(props) {
|
|
5687
5687
|
const { isAdmin } = useAuthzContext();
|
|
5688
5688
|
const editable = typeof props.editable === "boolean" ? props.editable : isAdmin;
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { typography } from './typography';
|
|
2
|
-
import { default as React } from 'react';
|
|
3
1
|
import { ThemeOptions } from '@mui/material/styles';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
import { typography } from './typography';
|
|
4
4
|
|
|
5
5
|
export { typography };
|
|
6
6
|
export declare const themeOverrides: Partial<ThemeOptions>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit-ux",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.174",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -14,16 +14,6 @@
|
|
|
14
14
|
},
|
|
15
15
|
"./src/*": "./src/*"
|
|
16
16
|
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"dev": "npm run storybook",
|
|
19
|
-
"build": "tsc && vite build",
|
|
20
|
-
"build:watch": "vite build --watch",
|
|
21
|
-
"preview": "vite preview",
|
|
22
|
-
"storybook": "start-storybook -p 6006",
|
|
23
|
-
"build-storybook": "build-storybook",
|
|
24
|
-
"lint": "eslint src --ext .mjs,.js,.jsx,.ts,.tsx",
|
|
25
|
-
"lint:fix": "eslint src --ext .mjs,.js,.jsx,.ts,.tsx --fix"
|
|
26
|
-
},
|
|
27
17
|
"publishConfig": {
|
|
28
18
|
"access": "public"
|
|
29
19
|
},
|
|
@@ -31,30 +21,30 @@
|
|
|
31
21
|
"@arcblock/bridge": "^2.10.33",
|
|
32
22
|
"@arcblock/react-hooks": "^2.10.33",
|
|
33
23
|
"@arcblock/ws": "^1.18.135",
|
|
34
|
-
"@blocklet/
|
|
35
|
-
"@
|
|
36
|
-
"@
|
|
37
|
-
"@emotion/
|
|
38
|
-
"@
|
|
39
|
-
"@emotion/styled": "^11.10.5",
|
|
40
|
-
"@iconify/react": "^4.0.1",
|
|
24
|
+
"@blocklet/uploader": "^0.1.34",
|
|
25
|
+
"@emotion/css": "^11.13.0",
|
|
26
|
+
"@emotion/react": "^11.13.3",
|
|
27
|
+
"@emotion/styled": "^11.13.0",
|
|
28
|
+
"@iconify/react": "^4.1.1",
|
|
41
29
|
"@lexical/react": "0.13.1",
|
|
42
30
|
"@lexical/text": "0.13.1",
|
|
43
|
-
"ahooks": "^3.
|
|
31
|
+
"ahooks": "^3.8.1",
|
|
44
32
|
"axios": "^0.27.2",
|
|
45
|
-
"dayjs": "^1.11.
|
|
33
|
+
"dayjs": "^1.11.13",
|
|
46
34
|
"js-cookie": "^3.0.5",
|
|
47
35
|
"lexical": "0.13.1",
|
|
48
36
|
"lottie-react": "^2.4.0",
|
|
49
|
-
"mitt": "^3.0.
|
|
50
|
-
"react-flip-toolkit": "^7.
|
|
37
|
+
"mitt": "^3.0.1",
|
|
38
|
+
"react-flip-toolkit": "^7.2.4",
|
|
51
39
|
"react-helmet": "^6.1.0",
|
|
52
40
|
"react-lazy-with-preload": "^2.2.1",
|
|
53
|
-
"react-select": "^5.
|
|
41
|
+
"react-select": "^5.8.0",
|
|
54
42
|
"semver-compare": "^1.0.0",
|
|
55
|
-
"ufo": "^1.
|
|
43
|
+
"ufo": "^1.5.4",
|
|
56
44
|
"unstated-next": "^1.1.0",
|
|
57
|
-
"url-join": "^4.0.1"
|
|
45
|
+
"url-join": "^4.0.1",
|
|
46
|
+
"@blocklet/editor": "^2.0.174",
|
|
47
|
+
"@blocklet/labels": "^2.0.174"
|
|
58
48
|
},
|
|
59
49
|
"peerDependencies": {
|
|
60
50
|
"@arcblock/did-connect": "^2.10.5",
|
|
@@ -70,35 +60,41 @@
|
|
|
70
60
|
},
|
|
71
61
|
"devDependencies": {
|
|
72
62
|
"@arcblock/eslint-config-ts": "^0.3.2",
|
|
73
|
-
"@babel/core": "^7.
|
|
74
|
-
"@iconify-json/iconoir": "^1.1
|
|
75
|
-
"@iconify-json/material-symbols": "^1.1
|
|
76
|
-
"@iconify-json/mdi": "^1.
|
|
77
|
-
"@storybook/addon-actions": "^6.5.
|
|
78
|
-
"@storybook/addon-essentials": "^6.5.
|
|
79
|
-
"@storybook/addon-interactions": "^6.5.
|
|
80
|
-
"@storybook/addon-links": "^6.5.
|
|
81
|
-
"@storybook/builder-vite": "^8.0
|
|
82
|
-
"@storybook/react": "^6.5.
|
|
63
|
+
"@babel/core": "^7.25.2",
|
|
64
|
+
"@iconify-json/iconoir": "^1.2.1",
|
|
65
|
+
"@iconify-json/material-symbols": "^1.2.1",
|
|
66
|
+
"@iconify-json/mdi": "^1.2.0",
|
|
67
|
+
"@storybook/addon-actions": "^6.5.16",
|
|
68
|
+
"@storybook/addon-essentials": "^6.5.16",
|
|
69
|
+
"@storybook/addon-interactions": "^6.5.16",
|
|
70
|
+
"@storybook/addon-links": "^6.5.16",
|
|
71
|
+
"@storybook/builder-vite": "^8.3.0",
|
|
72
|
+
"@storybook/react": "^6.5.16",
|
|
83
73
|
"@storybook/testing-library": "^0.0.13",
|
|
84
74
|
"@svgr/core": "^6.5.1",
|
|
85
|
-
"@types/react": "^18.
|
|
86
|
-
"@types/react-color": "^3.0.
|
|
87
|
-
"@types/react-dom": "^18.0
|
|
75
|
+
"@types/react": "^18.3.5",
|
|
76
|
+
"@types/react-color": "^3.0.12",
|
|
77
|
+
"@types/react-dom": "^18.3.0",
|
|
88
78
|
"@types/semver-compare": "^1.0.3",
|
|
89
|
-
"@vitejs/plugin-react": "^4.
|
|
79
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
90
80
|
"babel-loader": "^8.3.0",
|
|
91
|
-
"react": "^18.
|
|
92
|
-
"react-dom": "^18.
|
|
93
|
-
"rollup-plugin-node-externals": "^7.1.
|
|
94
|
-
"typescript": "^4.
|
|
95
|
-
"unplugin-icons": "^0.14.
|
|
96
|
-
"vite": "^5.4.
|
|
97
|
-
"vite-plugin-dts": "^3.
|
|
81
|
+
"react": "^18.3.1",
|
|
82
|
+
"react-dom": "^18.3.1",
|
|
83
|
+
"rollup-plugin-node-externals": "^7.1.3",
|
|
84
|
+
"typescript": "^4.9.5",
|
|
85
|
+
"unplugin-icons": "^0.14.15",
|
|
86
|
+
"vite": "^5.4.4",
|
|
87
|
+
"vite-plugin-dts": "^3.9.1",
|
|
98
88
|
"vite-plugin-libcss": "^1.1.1"
|
|
99
89
|
},
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
90
|
+
"scripts": {
|
|
91
|
+
"dev": "npm run storybook",
|
|
92
|
+
"build": "tsc && vite build",
|
|
93
|
+
"build:watch": "vite build --watch",
|
|
94
|
+
"preview": "vite preview",
|
|
95
|
+
"storybook": "start-storybook -p 6006",
|
|
96
|
+
"build-storybook": "build-storybook",
|
|
97
|
+
"lint": "eslint src --ext .mjs,.js,.jsx,.ts,.tsx",
|
|
98
|
+
"lint:fix": "eslint src --ext .mjs,.js,.jsx,.ts,.tsx --fix"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { default as Dialog } from '@arcblock/ux/lib/Dialog';
|
|
2
|
-
|
|
3
|
-
declare const StyledDialog: import('@emotion/styled').StyledComponent<Pick<Pick<Omit<import("@mui/material").DialogProps, "children" | "title" | "slotProps" | "onClose" | "PaperProps"> & import("@arcblock/ux/lib/Dialog/dialog").UxDialogProps, "components" | "classes" | "defaultValue" | "onBlur" | "onChange" | "onFocus" | "onInvalid" | "onKeyDown" | "onKeyUp" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "componentsProps" | "fullWidth" | "slots" | "sx" | "ref" | "maxWidth" | "transitionDuration" | "container" | "key" | "component" | "open" | "TransitionComponent" | "TransitionProps" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onTransitionEnter" | "onTransitionExited" | "scroll" | "fullScreen" | "PaperComponent" | keyof import("@arcblock/ux/lib/Dialog/dialog").UxDialogProps> & Pick<import("prop-types").InferProps<typeof Dialog.propTypes>, never> & Pick<Omit<import("@mui/material").DialogProps, "children" | "title" | "slotProps" | "onClose" | "PaperProps"> & import("@arcblock/ux/lib/Dialog/dialog").UxDialogProps, "components" | "classes" | "defaultValue" | "onBlur" | "onChange" | "onFocus" | "onInvalid" | "onKeyDown" | "onKeyUp" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "componentsProps" | "fullWidth" | "slots" | "sx" | "ref" | "maxWidth" | "transitionDuration" | "container" | "key" | "component" | "open" | "TransitionComponent" | "TransitionProps" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onTransitionEnter" | "onTransitionExited" | "scroll" | "fullScreen" | "PaperComponent">, "components" | "classes" | "children" | "defaultValue" | "onBlur" | "onChange" | "onFocus" | "onInvalid" | "onKeyDown" | "onKeyUp" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "slot" | "spellCheck" | "style" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocusCapture" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "componentsProps" | "fullWidth" | "slots" | "sx" | "ref" | "maxWidth" | "transitionDuration" | "container" | "key" | "component" | "open" | "TransitionComponent" | "TransitionProps" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onTransitionEnter" | "onTransitionExited" | "scroll" | "fullScreen" | "PaperComponent"> & {
|
|
4
|
-
title?: import("react").ReactNode;
|
|
5
|
-
slotProps?: {
|
|
6
|
-
content: object;
|
|
7
|
-
} | undefined;
|
|
8
|
-
onClose?: ((event: import("react").SyntheticEvent<Element, Event>, reason: string) => void) | undefined;
|
|
9
|
-
toolbar?: import("react").ReactNode;
|
|
10
|
-
PaperProps?: import("@arcblock/ux/lib/Dialog/dialog").PaperStyle | undefined;
|
|
11
|
-
actions?: import("react").ReactNode;
|
|
12
|
-
prepend?: import("react").ReactNode;
|
|
13
|
-
showCloseButton?: boolean | undefined;
|
|
14
|
-
actionsPosition?: "left" | "right" | "center" | undefined;
|
|
15
|
-
} & {} & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
|
|
16
|
-
export default StyledDialog;
|