@lobehub/ui 1.11.0 → 1.11.2
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/package.json +1 -1
- package/lib/ActionIcon/index.d.ts +0 -49
- package/lib/ActionIcon/index.js +0 -82
- package/lib/ActionIcon/style.d.ts +0 -6
- package/lib/ActionIcon/style.js +0 -64
- package/lib/Avatar/index.d.ts +0 -10
- package/lib/Avatar/index.js +0 -74
- package/lib/Chat/const.d.ts +0 -1
- package/lib/Chat/const.js +0 -29
- package/lib/Chat/index.d.ts +0 -2
- package/lib/Chat/index.js +0 -31
- package/lib/Chat/store/index.d.ts +0 -20
- package/lib/Chat/store/index.js +0 -44
- package/lib/Chat/store/initialState.d.ts +0 -28
- package/lib/Chat/store/initialState.js +0 -37
- package/lib/Chat/store/messageReducer.d.ts +0 -37
- package/lib/Chat/store/messageReducer.js +0 -82
- package/lib/Chat/store/selectors.d.ts +0 -9
- package/lib/Chat/store/selectors.js +0 -53
- package/lib/Chat/store/store.d.ts +0 -34
- package/lib/Chat/store/store.js +0 -119
- package/lib/Chat/types.d.ts +0 -77
- package/lib/Chat/types.js +0 -17
- package/lib/Chat/utils/fetch.d.ts +0 -11
- package/lib/Chat/utils/fetch.js +0 -72
- package/lib/ContextMenu/MenuItem/icons.d.ts +0 -4
- package/lib/ContextMenu/MenuItem/icons.js +0 -100
- package/lib/ContextMenu/MenuItem/index.d.ts +0 -12
- package/lib/ContextMenu/MenuItem/index.js +0 -72
- package/lib/ContextMenu/MenuItem/style.d.ts +0 -7
- package/lib/ContextMenu/MenuItem/style.js +0 -94
- package/lib/ContextMenu/index.d.ts +0 -9
- package/lib/ContextMenu/index.js +0 -254
- package/lib/ContextMenu/style.d.ts +0 -4
- package/lib/ContextMenu/style.js +0 -88
- package/lib/ContextMenu/types/index.d.ts +0 -5
- package/lib/ContextMenu/types/index.js +0 -19
- package/lib/ContextMenu/types/menuItem.d.ts +0 -21
- package/lib/ContextMenu/types/menuItem.js +0 -17
- package/lib/Conversation/App.d.ts +0 -13
- package/lib/Conversation/App.js +0 -53
- package/lib/Conversation/ChatList/MessageItem/Content.d.ts +0 -8
- package/lib/Conversation/ChatList/MessageItem/Content.js +0 -104
- package/lib/Conversation/ChatList/MessageItem/Toolbar.d.ts +0 -10
- package/lib/Conversation/ChatList/MessageItem/Toolbar.js +0 -110
- package/lib/Conversation/ChatList/MessageItem/index.d.ts +0 -9
- package/lib/Conversation/ChatList/MessageItem/index.js +0 -164
- package/lib/Conversation/ChatList/index.d.ts +0 -14
- package/lib/Conversation/ChatList/index.js +0 -61
- package/lib/Conversation/InputArea/ActionBar.d.ts +0 -4
- package/lib/Conversation/InputArea/ActionBar.js +0 -97
- package/lib/Conversation/InputArea/index.d.ts +0 -4
- package/lib/Conversation/InputArea/index.js +0 -148
- package/lib/Conversation/StoreUpdater.d.ts +0 -7
- package/lib/Conversation/StoreUpdater.js +0 -52
- package/lib/Conversation/index.d.ts +0 -8
- package/lib/Conversation/index.js +0 -45
- package/lib/CopyButton/index.d.ts +0 -26
- package/lib/CopyButton/index.js +0 -66
- package/lib/DraggablePanel/index.d.ts +0 -92
- package/lib/DraggablePanel/index.js +0 -217
- package/lib/DraggablePanel/style.d.ts +0 -18
- package/lib/DraggablePanel/style.js +0 -286
- package/lib/DraggablePanel/utils.d.ts +0 -2
- package/lib/DraggablePanel/utils.js +0 -40
- package/lib/EditableMessage/index.d.ts +0 -43
- package/lib/EditableMessage/index.js +0 -96
- package/lib/EditableMessageList/index.d.ts +0 -9
- package/lib/EditableMessageList/index.js +0 -124
- package/lib/EditableText/index.d.ts +0 -5
- package/lib/EditableText/index.js +0 -56
- package/lib/Highlighter/SyntaxHighlighter/Prism.d.ts +0 -7
- package/lib/Highlighter/SyntaxHighlighter/Prism.js +0 -41
- package/lib/Highlighter/SyntaxHighlighter/index.d.ts +0 -5
- package/lib/Highlighter/SyntaxHighlighter/index.js +0 -55
- package/lib/Highlighter/SyntaxHighlighter/style.d.ts +0 -5
- package/lib/Highlighter/SyntaxHighlighter/style.js +0 -61
- package/lib/Highlighter/index.d.ts +0 -36
- package/lib/Highlighter/index.js +0 -62
- package/lib/Highlighter/style.d.ts +0 -5
- package/lib/Highlighter/style.js +0 -104
- package/lib/Icon/index.d.ts +0 -21
- package/lib/Icon/index.js +0 -52
- package/lib/Input/index.d.ts +0 -13
- package/lib/Input/index.js +0 -45
- package/lib/Input/style.d.ts +0 -6
- package/lib/Input/style.js +0 -70
- package/lib/List/ListItem/index.d.ts +0 -64
- package/lib/List/ListItem/index.js +0 -157
- package/lib/List/ListItem/time.d.ts +0 -2
- package/lib/List/ListItem/time.js +0 -50
- package/lib/List/index.d.ts +0 -5
- package/lib/List/index.js +0 -41
- package/lib/Logo/Divider.d.ts +0 -3
- package/lib/Logo/Divider.js +0 -41
- package/lib/Logo/Logo3D.d.ts +0 -3
- package/lib/Logo/Logo3D.js +0 -35
- package/lib/Logo/LogoFlat.d.ts +0 -3
- package/lib/Logo/LogoFlat.js +0 -120
- package/lib/Logo/LogoHighContrast.d.ts +0 -3
- package/lib/Logo/LogoHighContrast.js +0 -35
- package/lib/Logo/LogoText.d.ts +0 -3
- package/lib/Logo/LogoText.js +0 -39
- package/lib/Logo/index.d.ts +0 -20
- package/lib/Logo/index.js +0 -64
- package/lib/Logo/style.d.ts +0 -4
- package/lib/Logo/style.js +0 -41
- package/lib/Markdown/Code.d.ts +0 -3
- package/lib/Markdown/Code.js +0 -33
- package/lib/Markdown/CodeBlock.d.ts +0 -3
- package/lib/Markdown/CodeBlock.js +0 -68
- package/lib/Markdown/index.d.ts +0 -13
- package/lib/Markdown/index.js +0 -58
- package/lib/Markdown/style.d.ts +0 -4
- package/lib/Markdown/style.js +0 -134
- package/lib/MessageInput/index.d.ts +0 -37
- package/lib/MessageInput/index.js +0 -59
- package/lib/MessageModal/index.d.ts +0 -11
- package/lib/MessageModal/index.js +0 -98
- package/lib/SearchBar/index.d.ts +0 -8
- package/lib/SearchBar/index.js +0 -77
- package/lib/SearchBar/style.d.ts +0 -6
- package/lib/SearchBar/style.js +0 -49
- package/lib/SideNav/index.d.ts +0 -18
- package/lib/SideNav/index.js +0 -34
- package/lib/SideNav/style.d.ts +0 -1
- package/lib/SideNav/style.js +0 -46
- package/lib/Snippet/index.d.ts +0 -29
- package/lib/Snippet/index.js +0 -47
- package/lib/Snippet/style.d.ts +0 -1
- package/lib/Snippet/style.js +0 -74
- package/lib/StroyBook/index.d.ts +0 -17
- package/lib/StroyBook/index.js +0 -65
- package/lib/StroyBook/style.d.ts +0 -8
- package/lib/StroyBook/style.js +0 -90
- package/lib/Swatches/index.d.ts +0 -8
- package/lib/Swatches/index.js +0 -68
- package/lib/TabsNav/index.d.ts +0 -22
- package/lib/TabsNav/index.js +0 -34
- package/lib/TabsNav/style.d.ts +0 -3
- package/lib/TabsNav/style.js +0 -65
- package/lib/ThemeProvider/GlobalStyle.d.ts +0 -3
- package/lib/ThemeProvider/GlobalStyle.js +0 -94
- package/lib/ThemeProvider/index.d.ts +0 -22
- package/lib/ThemeProvider/index.js +0 -60
- package/lib/ThemeSwitch/index.d.ts +0 -27
- package/lib/ThemeSwitch/index.js +0 -50
- package/lib/Tooltip/index.d.ts +0 -5
- package/lib/Tooltip/index.js +0 -34
- package/lib/Tooltip/style.d.ts +0 -3
- package/lib/Tooltip/style.js +0 -54
- package/lib/components/ControlInput.d.ts +0 -9
- package/lib/components/ControlInput.js +0 -91
- package/lib/hooks/useCopied.d.ts +0 -4
- package/lib/hooks/useCopied.js +0 -44
- package/lib/hooks/useHighlight.d.ts +0 -36
- package/lib/hooks/useHighlight.js +0 -76
- package/lib/index.d.ts +0 -27
- package/lib/index.js +0 -122
- package/lib/styles/algorithms/generateColorPalette.d.ts +0 -11
- package/lib/styles/algorithms/generateColorPalette.js +0 -72
- package/lib/styles/algorithms/generateCustomStylish.d.ts +0 -17
- package/lib/styles/algorithms/generateCustomStylish.js +0 -122
- package/lib/styles/algorithms/generateCustomToken.d.ts +0 -3
- package/lib/styles/algorithms/generateCustomToken.js +0 -79
- package/lib/styles/algorithms/generateTheme.d.ts +0 -5
- package/lib/styles/algorithms/generateTheme.js +0 -59
- package/lib/styles/colors.d.ts +0 -38
- package/lib/styles/colors.js +0 -1828
- package/lib/styles/index.d.ts +0 -3
- package/lib/styles/index.js +0 -35
- package/lib/styles/theme/base.d.ts +0 -2
- package/lib/styles/theme/base.js +0 -41
- package/lib/styles/theme/dark.d.ts +0 -3
- package/lib/styles/theme/dark.js +0 -74
- package/lib/styles/theme/light.d.ts +0 -3
- package/lib/styles/theme/light.js +0 -74
- package/lib/types/customToken.d.ts +0 -1027
- package/lib/types/global.d.ts +0 -12
- package/lib/types/index.d.ts +0 -6
- package/lib/types/index.js +0 -17
- package/lib/utils/colorUtils.d.ts +0 -1
- package/lib/utils/colorUtils.js +0 -52
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/Logo/LogoHighContrast.tsx
|
|
20
|
-
var LogoHighContrast_exports = {};
|
|
21
|
-
__export(LogoHighContrast_exports, {
|
|
22
|
-
default: () => LogoHighContrast_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(LogoHighContrast_exports);
|
|
25
|
-
var import_react = require("react");
|
|
26
|
-
var LogoHighContrast = (0, import_react.memo)(({ ...props }) => /* @__PURE__ */ React.createElement("svg", { viewBox: "0 0 320 320", fill: "currentColor", fillRule: "evenodd", ...props }, /* @__PURE__ */ React.createElement("path", { d: "M25.401 140.14c3.71-5.453 8.81-9.628 15.313-12.838A23.89 23.89 0 0055 132.015a23.91 23.91 0 0016.053-6.159 48.924 48.924 0 0010.603-.294 56.54 56.54 0 006.809 6.555c-8.655 1.087-18.202 2.821-29.05 5.494-11.996 2.956-17.707 7.005-20.785 11.53-3.227 4.743-4.63 11.518-4.63 22.374 0 70.838 55.45 121.5 126 121.5 70.564 0 125.889-49.642 126-120.286-.751-13.724-2.613-20.518-5.764-24.763-3.023-4.073-8.262-7.153-19.898-10.42-9.615-2.7-20.317-4.252-31.506-5.103a48.977 48.977 0 006.306-6.763c2.995-1.106 6.948-.684 12.998.332l.321.054c2.498.421 5.641.95 8.543.95 5.214 0 10.234-.927 14.879-2.626 8.925 3.124 16.138 7.213 21.205 14.041 6.227 8.389 8.147 19.524 8.905 33.656l.011.214v.214c0 80.552-63.518 136.5-142 136.5-78.567 0-142-57.028-142-137.5 0-11.644 1.368-22.506 7.401-31.375z" }), /* @__PURE__ */ React.createElement("path", { d: "M195.5 145.016a50.53 50.53 0 0018.014-3.295C238.551 143.519 255 146.556 255 150c0 4.335-26.066 8.026-62.517 9.413-.201-5.525-.323-10.211-.316-14.505 1.102.071 2.214.108 3.333.108zM125 145.016a58.278 58.278 0 01-19.063-3.182C81.773 143.646 66 146.628 66 150c0 4.295 25.591 7.958 61.52 9.374.238-5.823.186-10.311-.246-14.402a59.24 59.24 0 01-2.274.044zM122.87 228c9.79-4.353 16.63-14.277 16.63-25.823 0-15.562-12.424-28.177-27.75-28.177S84 186.615 84 202.177c0 10.646 5.815 19.913 14.396 24.705 2.902-.349 5.839-.554 8.729-.554 5.259 0 10.673.678 15.745 1.672zM236 202.177c0 10.646-5.815 19.913-14.396 24.705-2.902-.349-5.839-.554-8.729-.554-5.259 0-10.673.678-15.745 1.672-9.79-4.353-16.63-14.277-16.63-25.823 0-15.562 12.424-28.177 27.75-28.177S236 186.615 236 202.177zM127 248.787S133.923 245 160 245c26.077 0 33 3.787 33 3.787S189.769 278 160 278s-33-29.213-33-29.213z" }), /* @__PURE__ */ React.createElement(
|
|
27
|
-
"path",
|
|
28
|
-
{
|
|
29
|
-
d: "M173 19.016c-6.188 0-10.711-2.238-15.68-4.697-6.295-3.114-13.305-6.583-25.32-6.303-20.261 0-30.93 9.751-40.896 18.86-1.54 1.408-3.064 2.8-4.604 4.14-1.958 1.702-11.5 7-16 9-19.683 8.748-34.5 21.5-34.5 40.5 0 3.789.584 7.447 1.672 10.895A23.93 23.93 0 0155 84.016c13.255 0 24 10.745 24 24 0 3.552-.772 6.925-2.157 9.959a40.472 40.472 0 008.042-1.174c8.866 12.225 23.528 20.215 40.115 20.215 3.041 0 6.018-.269 8.906-.783 1.675 7.287 2.007 14.011 1.594 23.782h49c-.359-9.741-.486-17.161-.085-24.451a42.76 42.76 0 0011.085 1.452c14.294 0 26.9-7.006 34.364-17.668 6.059-3.498 13.291-2.284 19.597-1.225 2.746.461 5.317.893 7.539.893 18.778 0 34-14.551 34-32.5 0-8.333-3.281-15.934-8.675-21.686-4.31 5.012-10.697 8.186-17.825 8.186-12.979 0-23.5-10.522-23.5-23.5 0-12.98-30.137-31.5-45-31.5-5.31 0-10.313.325-14.617.604-3.249.21-6.099.396-8.383.396zM234.307 82.5c1.181 3.012-2.694 4.293-4.517 1.62l-.021-.03-.032-.047-.031-.043c-7.483-10.536-20.012-17.444-34.206-17.444a42.498 42.498 0 00-16.163 3.166c-6.41 2.63-14.55 1.24-19.499-3.61-8.882-8.704-21.21-14.096-34.838-14.096-17.152 0-32.245 8.542-41 21.478-1.966 2.365-5.65 1.323-4.535-1.543.06-.155.12-.305.182-.451C86.968 54.2 104.516 42.016 125 42.016c13.628 0 25.956 5.392 34.838 14.097 4.949 4.85 13.089 6.24 19.499 3.609a42.498 42.498 0 0116.163-3.166c17.73 0 32.863 10.778 38.807 25.944z",
|
|
30
|
-
clipRule: "evenodd"
|
|
31
|
-
}
|
|
32
|
-
), /* @__PURE__ */ React.createElement("path", { d: "M83 20.516a9.5 9.5 0 11-19 0 9.5 9.5 0 0119 0zM264.5 65.016c8.56 0 15.5-6.94 15.5-15.5 0-8.56-6.94-15.5-15.5-15.5-8.56 0-15.5 6.94-15.5 15.5 0 8.56 6.94 15.5 15.5 15.5zM55 124.016c8.837 0 16-7.164 16-16 0-8.837-7.163-16-16-16s-16 7.163-16 16c0 8.836 7.163 16 16 16z" })));
|
|
33
|
-
var LogoHighContrast_default = LogoHighContrast;
|
|
34
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
-
0 && (module.exports = {});
|
package/lib/Logo/LogoText.d.ts
DELETED
package/lib/Logo/LogoText.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/Logo/LogoText.tsx
|
|
20
|
-
var LogoText_exports = {};
|
|
21
|
-
__export(LogoText_exports, {
|
|
22
|
-
default: () => LogoText_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(LogoText_exports);
|
|
25
|
-
var import_react = require("react");
|
|
26
|
-
var LogoText = (0, import_react.memo)(({ ...props }) => /* @__PURE__ */ React.createElement(
|
|
27
|
-
"svg",
|
|
28
|
-
{
|
|
29
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
-
viewBox: "0 0 940 320",
|
|
31
|
-
fill: "currentColor",
|
|
32
|
-
fillRule: "evenodd",
|
|
33
|
-
...props
|
|
34
|
-
},
|
|
35
|
-
/* @__PURE__ */ React.createElement("path", { d: "M15 240.035V87.172h39.24V205.75h66.192v34.285H15zM183.731 242c-11.759 0-22.196-2.621-31.313-7.862-9.116-5.241-16.317-12.447-21.601-21.619-5.153-9.317-7.729-19.945-7.729-31.883 0-11.937 2.576-22.492 7.729-31.664 5.164-8.963 12.159-15.98 20.982-21.05l.619-.351c9.117-5.241 19.554-7.861 31.313-7.861s22.196 2.62 31.313 7.861c9.248 5.096 16.449 12.229 21.601 21.401 5.153 9.172 7.729 19.727 7.729 31.664 0 11.938-2.576 22.566-7.729 31.883-5.152 9.172-12.353 16.378-21.601 21.619-9.117 5.241-19.554 7.862-31.313 7.862zm0-32.975c4.36 0 8.191-1.092 11.494-3.275 3.436-2.184 6.144-5.387 8.126-9.609 1.982-4.367 2.973-9.536 2.973-15.505 0-5.968-.991-10.991-2.973-15.067-1.906-4.06-4.483-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.134-3.276-11.494-3.276-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275zM295.508 78l-.001 54.042a34.071 34.071 0 016.541-5.781c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.557 7.424 7.872 4.835 14.105 11.684 18.7 20.546l.325.637c4.756 9.026 7.135 19.799 7.135 32.319 0 12.666-2.379 23.585-7.135 32.757-4.624 9.026-10.966 16.087-19.025 21.182-7.928 4.95-16.78 7.425-26.557 7.425-9.644 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.355-7.532-7.226l.001 11.812h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.494 3.276-3.303 2.184-6.012 5.387-8.126 9.609-1.982 4.076-2.972 9.099-2.972 15.067 0 5.969.99 11.138 2.972 15.505 2.114 4.222 4.823 7.425 8.126 9.609 3.435 2.183 7.266 3.275 11.494 3.275s7.994-1.092 11.297-3.275c3.435-2.184 6.143-5.387 8.125-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.483-7.177-7.732-9.352l-.393-.257c-3.303-2.184-7.069-3.276-11.297-3.276zm105.335 38.653l.084.337a27.857 27.857 0 002.057 5.559c2.246 4.222 5.417 7.498 9.513 9.827 4.096 2.184 8.984 3.276 14.665 3.276 5.285 0 9.777-.801 13.477-2.403 3.579-1.632 7.1-4.025 10.564-7.182l.732-.679 19.818 22.711c-5.153 6.26-11.494 11.064-19.025 14.413-7.531 3.203-16.449 4.804-26.755 4.804-12.683 0-23.782-2.621-33.294-7.862-9.381-5.386-16.713-12.665-21.998-21.837-5.153-9.317-7.729-19.872-7.729-31.665 0-11.792 2.51-22.274 7.53-31.446 5.036-9.105 11.902-16.195 20.596-21.268l.61-.351c8.984-5.241 19.091-7.861 30.322-7.861 10.311 0 19.743 2.286 28.294 6.859l.64.347c8.72 4.659 15.656 11.574 20.809 20.746 5.153 9.172 7.729 20.309 7.729 33.411 0 1.294-.052 2.761-.156 4.4l-.042.623-.17 2.353c-.075 1.01-.151 1.973-.227 2.888h-78.044zm21.365-42.147c-4.492 0-8.456 1.092-11.891 3.276-3.303 2.184-5.879 5.314-7.729 9.39a26.04 26.04 0 00-1.117 2.79 30.164 30.164 0 00-1.121 4.499l-.058.354h43.96l-.015-.106c-.401-2.638-1.122-5.055-2.163-7.252l-.246-.503c-1.776-3.774-4.282-6.742-7.519-8.906l-.409-.266c-3.303-2.184-7.2-3.276-11.692-3.276zm111.695-62.018l-.001 57.432h53.51V87.172h39.24v152.863h-39.24v-59.617H555.9l.001 59.617h-39.24V87.172h39.24zM715.766 242c-8.72 0-16.581-1.893-23.583-5.678-6.87-3.785-12.287-9.681-16.251-17.688-3.832-8.153-5.747-18.417-5.747-30.791v-66.168h37.654v59.398c0 9.172 1.519 15.723 4.558 19.654 3.171 3.931 7.597 5.896 13.278 5.896 3.7 0 7.069-.946 10.108-2.839 3.038-1.892 5.483-4.877 7.332-8.953 1.85-4.222 2.775-9.609 2.775-16.16v-56.996h37.654v118.36h-35.871l.004-12.38c-2.642 3.197-5.682 5.868-9.12 8.012-7.002 4.222-14.599 6.333-22.791 6.333zM841.489 78l-.001 54.041a34.1 34.1 0 016.541-5.78c6.474-4.367 14.269-6.551 23.385-6.551 9.777 0 18.629 2.475 26.556 7.424 7.873 4.835 14.106 11.684 18.701 20.546l.325.637c4.756 9.026 7.134 19.799 7.134 32.319 0 12.666-2.378 23.585-7.134 32.757-4.624 9.026-10.966 16.087-19.026 21.182-7.927 4.95-16.779 7.425-26.556 7.425-9.645 0-17.704-2.184-24.178-6.551-2.825-1.946-5.336-4.354-7.531-7.224v11.81h-35.87V78h37.654zm21.998 74.684c-4.228 0-8.059 1.092-11.495 3.276-3.303 2.184-6.011 5.387-8.125 9.609-1.982 4.076-2.973 9.099-2.973 15.067 0 5.969.991 11.138 2.973 15.505 2.114 4.222 4.822 7.425 8.125 9.609 3.436 2.183 7.267 3.275 11.495 3.275 4.228 0 7.993-1.092 11.296-3.275 3.435-2.184 6.144-5.387 8.126-9.609 2.114-4.367 3.171-9.536 3.171-15.505 0-5.968-1.057-10.991-3.171-15.067-1.906-4.06-4.484-7.177-7.733-9.352l-.393-.257c-3.303-2.184-7.068-3.276-11.296-3.276z" })
|
|
36
|
-
));
|
|
37
|
-
var LogoText_default = LogoText;
|
|
38
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
-
0 && (module.exports = {});
|
package/lib/Logo/index.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { DivProps } from "../types";
|
|
3
|
-
export interface LogoProps extends DivProps {
|
|
4
|
-
/**
|
|
5
|
-
* @description Type of the logo to be rendered
|
|
6
|
-
* @default '3d'
|
|
7
|
-
*/
|
|
8
|
-
type?: '3d' | 'flat' | 'high-contrast' | 'text' | 'combine';
|
|
9
|
-
/**
|
|
10
|
-
* @description Size of the logo in pixels
|
|
11
|
-
* @default 32
|
|
12
|
-
*/
|
|
13
|
-
size?: number;
|
|
14
|
-
/**
|
|
15
|
-
* @description Additional React Node to be rendered next to the logo
|
|
16
|
-
*/
|
|
17
|
-
extra?: React.ReactNode;
|
|
18
|
-
}
|
|
19
|
-
declare const Logo: import("react").NamedExoticComponent<LogoProps>;
|
|
20
|
-
export default Logo;
|
package/lib/Logo/index.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/Logo/index.tsx
|
|
30
|
-
var Logo_exports = {};
|
|
31
|
-
__export(Logo_exports, {
|
|
32
|
-
default: () => Logo_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(Logo_exports);
|
|
35
|
-
var import_antd_style = require("antd-style");
|
|
36
|
-
var import_react = require("react");
|
|
37
|
-
var import_Divider = __toESM(require("./Divider"));
|
|
38
|
-
var import_Logo3D = __toESM(require("./Logo3D"));
|
|
39
|
-
var import_LogoFlat = __toESM(require("./LogoFlat"));
|
|
40
|
-
var import_LogoHighContrast = __toESM(require("./LogoHighContrast"));
|
|
41
|
-
var import_LogoText = __toESM(require("./LogoText"));
|
|
42
|
-
var import_style = require("./style");
|
|
43
|
-
var Logo = (0, import_react.memo)(({ type = "3d", size = 32, style, extra, className, ...props }) => {
|
|
44
|
-
const theme = (0, import_antd_style.useTheme)();
|
|
45
|
-
const { styles, cx } = (0, import_style.useStyles)();
|
|
46
|
-
let logoComponent;
|
|
47
|
-
switch (type) {
|
|
48
|
-
case "3d":
|
|
49
|
-
return /* @__PURE__ */ React.createElement(import_Logo3D.default, { style: { height: size, width: size, ...style }, ...props });
|
|
50
|
-
case "flat":
|
|
51
|
-
return /* @__PURE__ */ React.createElement(import_LogoFlat.default, { style: { height: size, width: size, ...style }, ...props });
|
|
52
|
-
case "high-contrast":
|
|
53
|
-
return /* @__PURE__ */ React.createElement(import_LogoHighContrast.default, { style: { height: size, width: size, ...style }, ...props });
|
|
54
|
-
case "text":
|
|
55
|
-
return /* @__PURE__ */ React.createElement(import_LogoText.default, { style: { height: size, width: "auto", ...style }, ...props });
|
|
56
|
-
case "combine":
|
|
57
|
-
logoComponent = /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(import_Logo3D.default, { style: { height: size, width: size } }), /* @__PURE__ */ React.createElement(import_LogoText.default, { style: { marginLeft: Math.round(size / 4), height: size, width: "auto" } }));
|
|
58
|
-
}
|
|
59
|
-
const extraSize = Math.round(size / 3 * 1.9);
|
|
60
|
-
return /* @__PURE__ */ React.createElement("div", { className: cx(styles.flexCenter, className), style, ...props }, logoComponent, extra && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(import_Divider.default, { style: { height: extraSize, width: extraSize, color: theme.colorBorder } }), /* @__PURE__ */ React.createElement("div", { className: styles.extraTitle, style: { fontSize: extraSize } }, extra)));
|
|
61
|
-
});
|
|
62
|
-
var Logo_default = Logo;
|
|
63
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
64
|
-
0 && (module.exports = {});
|
package/lib/Logo/style.d.ts
DELETED
package/lib/Logo/style.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/Logo/style.ts
|
|
20
|
-
var style_exports = {};
|
|
21
|
-
__export(style_exports, {
|
|
22
|
-
useStyles: () => useStyles
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(style_exports);
|
|
25
|
-
var import_antd_style = require("antd-style");
|
|
26
|
-
var useStyles = (0, import_antd_style.createStyles)(({ css }) => {
|
|
27
|
-
return {
|
|
28
|
-
flexCenter: css`
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
`,
|
|
32
|
-
extraTitle: css`
|
|
33
|
-
font-weight: 300;
|
|
34
|
-
white-space: nowrap;
|
|
35
|
-
`
|
|
36
|
-
};
|
|
37
|
-
});
|
|
38
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
-
0 && (module.exports = {
|
|
40
|
-
useStyles
|
|
41
|
-
});
|
package/lib/Markdown/Code.d.ts
DELETED
package/lib/Markdown/Code.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/Markdown/Code.tsx
|
|
20
|
-
var Code_exports = {};
|
|
21
|
-
__export(Code_exports, {
|
|
22
|
-
default: () => Code_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(Code_exports);
|
|
25
|
-
var import_style = require("./style");
|
|
26
|
-
var import_react = require("react");
|
|
27
|
-
var Code = (0, import_react.memo)((p) => {
|
|
28
|
-
const { styles } = (0, import_style.useStyles)();
|
|
29
|
-
return /* @__PURE__ */ React.createElement("code", { className: styles.code }, "`", p.children, "`");
|
|
30
|
-
});
|
|
31
|
-
var Code_default = Code;
|
|
32
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
33
|
-
0 && (module.exports = {});
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/Markdown/CodeBlock.tsx
|
|
30
|
-
var CodeBlock_exports = {};
|
|
31
|
-
__export(CodeBlock_exports, {
|
|
32
|
-
default: () => CodeBlock_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(CodeBlock_exports);
|
|
35
|
-
var import_Highlighter = __toESM(require("../Highlighter"));
|
|
36
|
-
var import_antd_style = require("antd-style");
|
|
37
|
-
var import_react = require("react");
|
|
38
|
-
var useStyles = (0, import_antd_style.createStyles)(
|
|
39
|
-
({ css }) => css`
|
|
40
|
-
:not(:last-child) {
|
|
41
|
-
margin-block-start: 1em;
|
|
42
|
-
margin-block-end: 1em;
|
|
43
|
-
margin-inline-start: 0px;
|
|
44
|
-
margin-inline-end: 0px;
|
|
45
|
-
}
|
|
46
|
-
`
|
|
47
|
-
);
|
|
48
|
-
var Code = (0, import_react.memo)((props) => {
|
|
49
|
-
const { styles, theme } = useStyles();
|
|
50
|
-
if (!props.children[0])
|
|
51
|
-
return null;
|
|
52
|
-
const { children, className } = props.children[0].props;
|
|
53
|
-
if (!children)
|
|
54
|
-
return null;
|
|
55
|
-
return /* @__PURE__ */ React.createElement(
|
|
56
|
-
import_Highlighter.default,
|
|
57
|
-
{
|
|
58
|
-
type: "block",
|
|
59
|
-
theme: theme.appearance,
|
|
60
|
-
language: (className == null ? void 0 : className.replace("language-", "")) || "markdown",
|
|
61
|
-
className: styles
|
|
62
|
-
},
|
|
63
|
-
children instanceof Array ? children[0] : children
|
|
64
|
-
);
|
|
65
|
-
});
|
|
66
|
-
var CodeBlock_default = Code;
|
|
67
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
-
0 && (module.exports = {});
|
package/lib/Markdown/index.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface MarkdownProps {
|
|
3
|
-
/**
|
|
4
|
-
* @description The markdown content to be rendered
|
|
5
|
-
*/
|
|
6
|
-
children: string;
|
|
7
|
-
/**
|
|
8
|
-
* @description The class name for the Markdown component
|
|
9
|
-
*/
|
|
10
|
-
className?: string;
|
|
11
|
-
}
|
|
12
|
-
declare const Markdown: import("react").NamedExoticComponent<MarkdownProps>;
|
|
13
|
-
export default Markdown;
|
package/lib/Markdown/index.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/Markdown/index.tsx
|
|
30
|
-
var Markdown_exports = {};
|
|
31
|
-
__export(Markdown_exports, {
|
|
32
|
-
default: () => Markdown_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(Markdown_exports);
|
|
35
|
-
var import_antd = require("antd");
|
|
36
|
-
var import_pangu = __toESM(require("pangu"));
|
|
37
|
-
var import_react = require("react");
|
|
38
|
-
var import_react_markdown = __toESM(require("react-markdown"));
|
|
39
|
-
var import_remark_gfm = __toESM(require("remark-gfm"));
|
|
40
|
-
var import_Code = __toESM(require("./Code"));
|
|
41
|
-
var import_CodeBlock = __toESM(require("./CodeBlock"));
|
|
42
|
-
var import_style = require("./style");
|
|
43
|
-
var Markdown = (0, import_react.memo)(({ children, className }) => {
|
|
44
|
-
const { styles, cx } = (0, import_style.useStyles)();
|
|
45
|
-
const components = { pre: import_CodeBlock.default, code: import_Code.default, hr: import_antd.Divider, a: import_antd.Typography.Link };
|
|
46
|
-
return /* @__PURE__ */ React.createElement(import_antd.Typography, null, /* @__PURE__ */ React.createElement(
|
|
47
|
-
import_react_markdown.default,
|
|
48
|
-
{
|
|
49
|
-
className: cx(styles.container, className),
|
|
50
|
-
components,
|
|
51
|
-
remarkPlugins: [import_remark_gfm.default]
|
|
52
|
-
},
|
|
53
|
-
import_pangu.default.spacing(children)
|
|
54
|
-
));
|
|
55
|
-
});
|
|
56
|
-
var Markdown_default = Markdown;
|
|
57
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
-
0 && (module.exports = {});
|
package/lib/Markdown/style.d.ts
DELETED
package/lib/Markdown/style.js
DELETED
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/Markdown/style.ts
|
|
20
|
-
var style_exports = {};
|
|
21
|
-
__export(style_exports, {
|
|
22
|
-
useStyles: () => useStyles
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(style_exports);
|
|
25
|
-
var import_antd_style = require("antd-style");
|
|
26
|
-
var useStyles = (0, import_antd_style.createStyles)(({ css, token, isDarkMode }) => {
|
|
27
|
-
return {
|
|
28
|
-
container: css`
|
|
29
|
-
color: ${isDarkMode ? token.colorTextSecondary : token.colorText};
|
|
30
|
-
|
|
31
|
-
p {
|
|
32
|
-
margin: 20px auto;
|
|
33
|
-
|
|
34
|
-
font-size: 14px;
|
|
35
|
-
line-height: 1.8;
|
|
36
|
-
color: ${token.colorText};
|
|
37
|
-
text-align: justify;
|
|
38
|
-
word-wrap: break-word;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
blockquote {
|
|
42
|
-
margin: 16px 0;
|
|
43
|
-
padding: 0 12px;
|
|
44
|
-
p {
|
|
45
|
-
font-style: italic;
|
|
46
|
-
color: ${token.colorTextDescription};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
p:not(:last-child) {
|
|
51
|
-
margin-bottom: 1em;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
a {
|
|
55
|
-
color: ${token.colorLink};
|
|
56
|
-
|
|
57
|
-
&:hover {
|
|
58
|
-
color: ${token.colorLinkHover};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&:active {
|
|
62
|
-
color: ${token.colorLinkActive};
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
img {
|
|
67
|
-
max-width: 100%;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
> :not([data-code-type='highlighter']) code {
|
|
71
|
-
padding: 2px 6px;
|
|
72
|
-
color: ${isDarkMode ? token["cyan-7"] : token.colorPrimaryText};
|
|
73
|
-
background: ${isDarkMode ? token["cyan-1"] : token.colorPrimaryBg};
|
|
74
|
-
border-radius: 4px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
table {
|
|
78
|
-
border-spacing: 0;
|
|
79
|
-
|
|
80
|
-
width: 100%;
|
|
81
|
-
margin-block-start: 1em;
|
|
82
|
-
margin-block-end: 1em;
|
|
83
|
-
margin-inline-start: 0px;
|
|
84
|
-
margin-inline-end: 0px;
|
|
85
|
-
padding: 8px;
|
|
86
|
-
|
|
87
|
-
border: 1px solid ${token.colorBorderSecondary};
|
|
88
|
-
border-radius: ${token.borderRadius}px;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
th,
|
|
92
|
-
td {
|
|
93
|
-
padding-block-start: 10px;
|
|
94
|
-
padding-block-end: 10px;
|
|
95
|
-
padding-inline-start: 16px;
|
|
96
|
-
padding-inline-end: 16px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
thead {
|
|
100
|
-
tr {
|
|
101
|
-
th {
|
|
102
|
-
background: ${token.colorFillTertiary};
|
|
103
|
-
&:first-child {
|
|
104
|
-
border-top-left-radius: ${token.borderRadius}px;
|
|
105
|
-
border-bottom-left-radius: ${token.borderRadius}px;
|
|
106
|
-
}
|
|
107
|
-
&:last-child {
|
|
108
|
-
border-top-right-radius: ${token.borderRadius}px;
|
|
109
|
-
border-bottom-right-radius: ${token.borderRadius}px;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
ul li {
|
|
116
|
-
line-height: 1.8;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
pre {
|
|
120
|
-
border-radius: ${token.borderRadius}px;
|
|
121
|
-
}
|
|
122
|
-
`,
|
|
123
|
-
code: css`
|
|
124
|
-
padding: 2px 4px;
|
|
125
|
-
font-family: ${token.fontFamilyCode} !important;
|
|
126
|
-
color: ${isDarkMode ? token.cyan8 : token.pink7};
|
|
127
|
-
border-radius: 4px;
|
|
128
|
-
`
|
|
129
|
-
};
|
|
130
|
-
});
|
|
131
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
132
|
-
0 && (module.exports = {
|
|
133
|
-
useStyles
|
|
134
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { type TextAreaProps } from "../index";
|
|
3
|
-
import { ButtonProps } from 'antd';
|
|
4
|
-
/**
|
|
5
|
-
* @title MessageInputProps
|
|
6
|
-
* @category Props
|
|
7
|
-
* @description MessageInput 组件的 Props
|
|
8
|
-
*/
|
|
9
|
-
export interface MessageInputProps {
|
|
10
|
-
/**
|
|
11
|
-
* @title 确认回调函数
|
|
12
|
-
* @description 用户点击确认按钮后的回调函数
|
|
13
|
-
* @param text - 用户输入的文本
|
|
14
|
-
*/
|
|
15
|
-
onConfirm?: (text: string) => void;
|
|
16
|
-
/**
|
|
17
|
-
* @title 取消回调函数
|
|
18
|
-
* @description 用户点击取消按钮后的回调函数
|
|
19
|
-
*/
|
|
20
|
-
onCancel?: () => void;
|
|
21
|
-
/**
|
|
22
|
-
* @title 默认值
|
|
23
|
-
* @description 输入框的默认值
|
|
24
|
-
*/
|
|
25
|
-
defaultValue?: string;
|
|
26
|
-
/**
|
|
27
|
-
* @title 渲染按钮
|
|
28
|
-
* @description 自定义渲染底部按钮
|
|
29
|
-
* @param text - 用户输入的文本
|
|
30
|
-
*/
|
|
31
|
-
renderButtons?: (text: string) => ButtonProps[];
|
|
32
|
-
height?: number;
|
|
33
|
-
className?: string;
|
|
34
|
-
type?: TextAreaProps['type'];
|
|
35
|
-
}
|
|
36
|
-
declare const MessageInput: import("react").NamedExoticComponent<MessageInputProps>;
|
|
37
|
-
export default MessageInput;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/MessageInput/index.tsx
|
|
20
|
-
var MessageInput_exports = {};
|
|
21
|
-
__export(MessageInput_exports, {
|
|
22
|
-
default: () => MessageInput_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(MessageInput_exports);
|
|
25
|
-
var import__ = require("../index");
|
|
26
|
-
var import_antd = require("antd");
|
|
27
|
-
var import_antd_style = require("antd-style");
|
|
28
|
-
var import_react = require("react");
|
|
29
|
-
var import_react_layout_kit = require("react-layout-kit");
|
|
30
|
-
var MessageInput = (0, import_react.memo)(
|
|
31
|
-
({ type, onCancel, defaultValue, onConfirm, renderButtons, height, className }) => {
|
|
32
|
-
const [tempSystemRole, setRole] = (0, import_react.useState)(defaultValue || "");
|
|
33
|
-
return /* @__PURE__ */ React.createElement(import_react_layout_kit.Flexbox, { gap: 8 }, /* @__PURE__ */ React.createElement(
|
|
34
|
-
import__.TextArea,
|
|
35
|
-
{
|
|
36
|
-
type,
|
|
37
|
-
value: tempSystemRole,
|
|
38
|
-
placeholder: "例如:你是一名擅长翻译的翻译官,请将用户所输入的英文都翻译为中文。",
|
|
39
|
-
style: { height: height ?? 200 },
|
|
40
|
-
onChange: (e) => {
|
|
41
|
-
setRole(e.target.value);
|
|
42
|
-
},
|
|
43
|
-
className: (0, import_antd_style.cx)("nowheel", className)
|
|
44
|
-
}
|
|
45
|
-
), /* @__PURE__ */ React.createElement(import_react_layout_kit.Flexbox, { direction: "horizontal-reverse", gap: 8 }, renderButtons ? renderButtons(tempSystemRole).map((buttonProps, index) => /* @__PURE__ */ React.createElement(import_antd.Button, { key: index, ...buttonProps })) : /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
46
|
-
import_antd.Button,
|
|
47
|
-
{
|
|
48
|
-
type: "primary",
|
|
49
|
-
onClick: () => {
|
|
50
|
-
onConfirm == null ? void 0 : onConfirm(tempSystemRole);
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"Confirm"
|
|
54
|
-
), /* @__PURE__ */ React.createElement(import_antd.Button, { type: "text", onClick: onCancel }, "Cancel"))));
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
var MessageInput_default = MessageInput;
|
|
58
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
59
|
-
0 && (module.exports = {});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface MessageModalProps {
|
|
3
|
-
open?: boolean;
|
|
4
|
-
onOpenChange?: (open: boolean) => void;
|
|
5
|
-
editing?: boolean;
|
|
6
|
-
onEditingChange?: (editing: boolean) => void;
|
|
7
|
-
onChange?: (text: string) => void;
|
|
8
|
-
value: string;
|
|
9
|
-
}
|
|
10
|
-
declare const MessageModal: import("react").NamedExoticComponent<MessageModalProps>;
|
|
11
|
-
export default MessageModal;
|