@lobehub/ui 1.16.0 → 1.16.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/es/ActionIcon/index.d.ts +15 -15
- package/es/ActionIcon/index.js +7 -5
- package/es/ActionIcon/style.d.ts +1 -1
- package/es/ActionIcon/style.js +5 -3
- package/es/Avatar/index.d.ts +9 -9
- package/es/Avatar/index.js +3 -3
- package/es/Chat/store/initialState.d.ts +12 -12
- package/es/Chat/store/messageReducer.d.ts +12 -12
- package/es/Chat/store/store.d.ts +12 -12
- package/es/Chat/store/store.js +11 -9
- package/es/Chat/types.d.ts +14 -14
- package/es/Chat/utils/fetch.d.ts +1 -1
- package/es/Chat/utils/fetch.js +3 -3
- package/es/ColorScales/ScaleRow.d.ts +1 -1
- package/es/ColorScales/ScaleRow.js +3 -3
- package/es/ColorScales/index.d.ts +1 -1
- package/es/ColorScales/index.js +8 -8
- package/es/ContextMenu/MenuItem/icons.js +23 -23
- package/es/ContextMenu/MenuItem/index.d.ts +4 -4
- package/es/ContextMenu/MenuItem/index.js +6 -5
- package/es/ContextMenu/index.d.ts +4 -4
- package/es/ContextMenu/index.js +11 -17
- package/es/ContextMenu/types/menuItem.d.ts +3 -3
- package/es/Conversation/App.d.ts +5 -5
- package/es/Conversation/App.js +5 -5
- package/es/Conversation/ChatList/MessageItem/Content.js +13 -13
- package/es/Conversation/ChatList/MessageItem/Toolbar.d.ts +3 -3
- package/es/Conversation/ChatList/MessageItem/Toolbar.js +20 -23
- package/es/Conversation/ChatList/MessageItem/index.js +15 -15
- package/es/Conversation/ChatList/index.d.ts +4 -4
- package/es/Conversation/ChatList/index.js +8 -6
- package/es/Conversation/InputArea/ActionBar.js +7 -7
- package/es/Conversation/InputArea/index.js +17 -17
- package/es/Conversation/StoreUpdater.d.ts +1 -1
- package/es/Conversation/index.js +4 -2
- package/es/CopyButton/index.d.ts +10 -10
- package/es/CopyButton/index.js +10 -8
- package/es/DraggablePanel/index.d.ts +45 -44
- package/es/DraggablePanel/index.js +11 -10
- package/es/EditableMessage/index.d.ts +23 -23
- package/es/EditableMessage/index.js +15 -15
- package/es/EditableMessageList/index.d.ts +5 -5
- package/es/EditableMessageList/index.js +16 -16
- package/es/EditableText/index.js +9 -9
- package/es/Highlighter/SyntaxHighlighter/Prism.d.ts +1 -1
- package/es/Highlighter/SyntaxHighlighter/Prism.js +4 -2
- package/es/Highlighter/SyntaxHighlighter/index.js +8 -8
- package/es/Highlighter/SyntaxHighlighter/style.d.ts +1 -1
- package/es/Highlighter/SyntaxHighlighter/style.js +3 -2
- package/es/Highlighter/index.d.ts +5 -5
- package/es/Highlighter/index.js +5 -5
- package/es/Icon/index.d.ts +6 -6
- package/es/Icon/index.js +3 -1
- package/es/Input/index.js +7 -5
- package/es/List/ListItem/index.d.ts +21 -21
- package/es/List/ListItem/index.js +13 -11
- package/es/List/ListItem/time.js +1 -1
- package/es/Logo/Divider.js +4 -2
- package/es/Logo/Logo3D.js +3 -1
- package/es/Logo/LogoFlat.js +46 -44
- package/es/Logo/LogoHighContrast.js +7 -5
- package/es/Logo/LogoText.js +6 -4
- package/es/Logo/index.d.ts +5 -5
- package/es/Logo/index.js +3 -1
- package/es/Markdown/Code.js +1 -1
- package/es/Markdown/CodeBlock.js +4 -4
- package/es/MessageInput/index.d.ts +10 -10
- package/es/MessageInput/index.js +12 -10
- package/es/MessageModal/index.d.ts +11 -11
- package/es/MessageModal/index.js +15 -15
- package/es/SearchBar/index.d.ts +5 -5
- package/es/SearchBar/index.js +19 -17
- package/es/SideNav/index.d.ts +5 -5
- package/es/SideNav/index.js +9 -7
- package/es/Snippet/index.d.ts +5 -5
- package/es/Snippet/index.js +5 -3
- package/es/StroyBook/index.d.ts +2 -2
- package/es/StroyBook/index.js +7 -5
- package/es/StroyBook/style.d.ts +1 -1
- package/es/Swatches/index.d.ts +4 -4
- package/es/Swatches/index.js +7 -7
- package/es/TabsNav/index.d.ts +6 -6
- package/es/TabsNav/index.js +3 -1
- package/es/ThemeProvider/GlobalStyle.js +5 -2
- package/es/ThemeProvider/index.d.ts +6 -6
- package/es/ThemeProvider/index.js +3 -3
- package/es/ThemeSwitch/index.d.ts +5 -5
- package/es/ThemeSwitch/index.js +11 -9
- package/es/Tooltip/index.js +5 -3
- package/es/components/ControlInput.d.ts +1 -1
- package/es/components/ControlInput.js +20 -18
- package/es/hooks/useHighlight.d.ts +8 -8
- package/es/hooks/useHighlight.js +4 -4
- package/es/styles/algorithms/generateColorPalette.d.ts +4 -4
- package/es/styles/algorithms/generateCustomStylish.d.ts +1 -1
- package/es/styles/algorithms/generateCustomStylish.js +1 -1
- package/es/styles/algorithms/generateCustomToken.d.ts +1 -1
- package/es/styles/algorithms/generateCustomToken.js +3 -2
- package/es/styles/algorithms/generateTheme.js +3 -1
- package/es/styles/colors.d.ts +13 -13
- package/es/styles/colors.js +1 -1
- package/es/styles/theme/dark.js +3 -1
- package/es/styles/theme/light.js +3 -1
- package/es/types/customStylish.d.ts +4 -4
- package/es/types/customToken.d.ts +5 -5
- package/es/types/global.d.ts +2 -0
- package/package.json +71 -68
package/es/Highlighter/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { memo } from 'react';
|
|
2
2
|
import CopyButton from "../CopyButton";
|
|
3
|
-
import SyntaxHighlighter from "./SyntaxHighlighter";
|
|
4
3
|
import { useStyles } from "./style";
|
|
4
|
+
import SyntaxHighlighter from "./SyntaxHighlighter";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
7
|
export { SyntaxHighlighter };
|
|
@@ -22,19 +22,19 @@ export var Highlighter = /*#__PURE__*/memo(function (_ref) {
|
|
|
22
22
|
cx = _useStyles.cx;
|
|
23
23
|
var container = cx(styles.container, className);
|
|
24
24
|
return /*#__PURE__*/_jsxs("div", {
|
|
25
|
-
"data-code-type": "highlighter",
|
|
26
25
|
className: container,
|
|
26
|
+
"data-code-type": "highlighter",
|
|
27
27
|
style: style,
|
|
28
28
|
children: [copyable && /*#__PURE__*/_jsx(CopyButton, {
|
|
29
|
-
|
|
29
|
+
className: styles.button,
|
|
30
30
|
content: children,
|
|
31
|
-
|
|
31
|
+
placement: "left"
|
|
32
32
|
}), showLanguage && language && /*#__PURE__*/_jsx("div", {
|
|
33
33
|
className: styles.lang,
|
|
34
34
|
children: language.toLowerCase()
|
|
35
35
|
}), /*#__PURE__*/_jsx(SyntaxHighlighter, {
|
|
36
|
-
theme: theme,
|
|
37
36
|
language: language === null || language === void 0 ? void 0 : language.toLowerCase(),
|
|
37
|
+
theme: theme,
|
|
38
38
|
children: children.trim()
|
|
39
39
|
})]
|
|
40
40
|
});
|
package/es/Icon/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SvgProps } from "../types";
|
|
3
2
|
import { LucideIcon } from 'lucide-react';
|
|
3
|
+
import { SvgProps } from "../types";
|
|
4
4
|
export declare type IconSize = 'large' | 'normal' | 'small' | {
|
|
5
5
|
fontSize?: number;
|
|
6
6
|
strokeWidth?: number;
|
|
7
7
|
};
|
|
8
8
|
export interface IconProps extends SvgProps {
|
|
9
|
-
/**
|
|
10
|
-
* @description Size of the icon
|
|
11
|
-
* @default 'normal'
|
|
12
|
-
*/
|
|
13
|
-
size?: IconSize;
|
|
14
9
|
/**
|
|
15
10
|
* @description The icon element to be rendered
|
|
16
11
|
* @type LucideIcon
|
|
17
12
|
*/
|
|
18
13
|
icon: LucideIcon;
|
|
14
|
+
/**
|
|
15
|
+
* @description Size of the icon
|
|
16
|
+
* @default 'normal'
|
|
17
|
+
*/
|
|
18
|
+
size?: IconSize;
|
|
19
19
|
}
|
|
20
20
|
declare const _default: import("react").NamedExoticComponent<IconProps>;
|
|
21
21
|
export default _default;
|
package/es/Icon/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["icon", "size"];
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
6
|
import { memo } from 'react';
|
|
5
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
8
|
var Icon = function Icon(_ref) {
|
package/es/Input/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["className", "type"],
|
|
4
4
|
_excluded2 = ["className", "type"];
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
7
|
import { Input as AntInput } from 'antd';
|
|
6
8
|
import { forwardRef, memo } from 'react';
|
|
7
9
|
import { useStyles } from "./style";
|
|
@@ -17,8 +19,8 @@ export var Input = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref, re
|
|
|
17
19
|
styles = _useStyles.styles,
|
|
18
20
|
cx = _useStyles.cx;
|
|
19
21
|
return /*#__PURE__*/_jsx(AntInput, _objectSpread({
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
className: cx(styles.input, className),
|
|
23
|
+
ref: ref
|
|
22
24
|
}, props));
|
|
23
25
|
}));
|
|
24
26
|
export var TextArea = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
@@ -32,7 +34,7 @@ export var TextArea = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(function (_ref2
|
|
|
32
34
|
styles = _useStyles2.styles,
|
|
33
35
|
cx = _useStyles2.cx;
|
|
34
36
|
return /*#__PURE__*/_jsx(AntInput.TextArea, _objectSpread({
|
|
35
|
-
|
|
36
|
-
|
|
37
|
+
className: cx(styles.textarea, className),
|
|
38
|
+
ref: ref
|
|
37
39
|
}, props));
|
|
38
40
|
}));
|
|
@@ -8,21 +8,32 @@ export interface ListItemProps {
|
|
|
8
8
|
*/
|
|
9
9
|
active: boolean;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 头像的 React 节点
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
avatar?: ReactNode;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* 自定义样式类名
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
className?: string;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* 自定义样式类名对象
|
|
20
|
+
* @property time - 时间的样式类名
|
|
20
21
|
*/
|
|
21
|
-
|
|
22
|
+
classNames?: {
|
|
23
|
+
time?: string;
|
|
24
|
+
};
|
|
22
25
|
/**
|
|
23
26
|
* 日期时间戳
|
|
24
27
|
*/
|
|
25
28
|
date?: number;
|
|
29
|
+
/**
|
|
30
|
+
* 描述信息
|
|
31
|
+
*/
|
|
32
|
+
description?: string;
|
|
33
|
+
/**
|
|
34
|
+
* 是否处于加载状态
|
|
35
|
+
*/
|
|
36
|
+
loading?: boolean;
|
|
26
37
|
/**
|
|
27
38
|
* 点击事件回调函数
|
|
28
39
|
*/
|
|
@@ -37,28 +48,17 @@ export interface ListItemProps {
|
|
|
37
48
|
*/
|
|
38
49
|
renderActions?: ReactNode;
|
|
39
50
|
/**
|
|
40
|
-
*
|
|
41
|
-
*/
|
|
42
|
-
avatar?: ReactNode;
|
|
43
|
-
/**
|
|
44
|
-
* 自定义样式类名
|
|
51
|
+
* 是否显示操作区域
|
|
45
52
|
*/
|
|
46
|
-
|
|
53
|
+
showAction?: boolean;
|
|
47
54
|
/**
|
|
48
55
|
* 自定义样式对象
|
|
49
56
|
*/
|
|
50
57
|
style?: CSSProperties;
|
|
51
58
|
/**
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
showAction?: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* 自定义样式类名对象
|
|
57
|
-
* @property time - 时间的样式类名
|
|
59
|
+
* 标题
|
|
58
60
|
*/
|
|
59
|
-
|
|
60
|
-
time?: string;
|
|
61
|
-
};
|
|
61
|
+
title: string;
|
|
62
62
|
}
|
|
63
63
|
declare const ListItem: import("react").ForwardRefExoticComponent<ListItemProps & HTMLAttributes<any> & import("react").RefAttributes<HTMLElement>>;
|
|
64
64
|
export default ListItem;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
4
4
|
var _excluded = ["active", "avatar", "loading", "description", "date", "title", "onHoverChange", "renderActions", "className", "style", "showAction", "classNames"];
|
|
5
5
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
6
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
7
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
8
|
import { LoadingOutlined, MessageOutlined } from '@ant-design/icons';
|
|
7
9
|
import { createStyles } from 'antd-style';
|
|
8
10
|
import { forwardRef } from 'react';
|
|
@@ -52,14 +54,14 @@ var ListItem = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
52
54
|
styles = _useStyles.styles,
|
|
53
55
|
cx = _useStyles.cx;
|
|
54
56
|
return /*#__PURE__*/_jsxs(Flexbox, _objectSpread(_objectSpread({
|
|
55
|
-
|
|
57
|
+
align: 'flex-start',
|
|
58
|
+
className: cx(styles.container, active && styles.active, className),
|
|
59
|
+
distribution: 'space-between',
|
|
60
|
+
gap: 8,
|
|
56
61
|
horizontal: true,
|
|
57
62
|
paddingBlock: 8,
|
|
58
|
-
gap: 8,
|
|
59
63
|
paddingInline: '12px 8px',
|
|
60
|
-
|
|
61
|
-
distribution: 'space-between',
|
|
62
|
-
className: cx(styles.container, active && styles.active, className),
|
|
64
|
+
ref: ref,
|
|
63
65
|
style: style
|
|
64
66
|
}, props), {}, {
|
|
65
67
|
onMouseEnter: function onMouseEnter() {
|
|
@@ -75,8 +77,8 @@ var ListItem = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
75
77
|
}), /*#__PURE__*/_jsxs(Flexbox, {
|
|
76
78
|
className: styles.content,
|
|
77
79
|
children: [/*#__PURE__*/_jsx(Flexbox, {
|
|
78
|
-
horizontal: true,
|
|
79
80
|
distribution: 'space-between',
|
|
81
|
+
horizontal: true,
|
|
80
82
|
children: /*#__PURE__*/_jsx("div", {
|
|
81
83
|
className: styles.title,
|
|
82
84
|
children: title
|
|
@@ -90,14 +92,14 @@ var ListItem = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
90
92
|
}), loading ? /*#__PURE__*/_jsx(LoadingOutlined, {
|
|
91
93
|
spin: true
|
|
92
94
|
}) : showAction ? /*#__PURE__*/_jsx(Flexbox, {
|
|
93
|
-
horizontal: true,
|
|
94
95
|
gap: 4,
|
|
95
|
-
|
|
96
|
-
display: showAction ? undefined : 'none'
|
|
97
|
-
},
|
|
96
|
+
horizontal: true,
|
|
98
97
|
onClick: function onClick(e) {
|
|
99
98
|
e.stopPropagation();
|
|
100
99
|
},
|
|
100
|
+
style: {
|
|
101
|
+
display: showAction ? undefined : 'none'
|
|
102
|
+
},
|
|
101
103
|
children: renderActions
|
|
102
104
|
}) : date && /*#__PURE__*/_jsx("div", {
|
|
103
105
|
className: cx(styles.time, classNames.time),
|
package/es/List/ListItem/time.js
CHANGED
package/es/Logo/Divider.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
5
|
import { memo } from 'react';
|
|
4
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
7
|
var Divider = /*#__PURE__*/memo(function (_ref) {
|
|
6
8
|
var props = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
7
9
|
return /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({
|
|
8
10
|
fill: "none",
|
|
11
|
+
shapeRendering: "geometricPrecision",
|
|
9
12
|
stroke: "currentColor",
|
|
10
13
|
strokeLinecap: "round",
|
|
11
14
|
strokeLinejoin: "round",
|
|
12
|
-
shapeRendering: "geometricPrecision",
|
|
13
15
|
viewBox: "0 0 24 24"
|
|
14
16
|
}, props), {}, {
|
|
15
17
|
children: /*#__PURE__*/_jsx("path", {
|
package/es/Logo/Logo3D.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
5
|
import { memo } from 'react';
|
|
4
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
7
|
var Logo3D = /*#__PURE__*/memo(function (_ref) {
|
package/es/Logo/LogoFlat.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
5
|
import { memo } from 'react';
|
|
4
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -10,11 +12,11 @@ var LogoFlat = /*#__PURE__*/memo(function (_ref) {
|
|
|
10
12
|
viewBox: "0 0 320 320"
|
|
11
13
|
}, props), {}, {
|
|
12
14
|
children: [/*#__PURE__*/_jsx("path", {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
+
d: "M294 172.516c0 75.655-59.442 128.5-134 128.5-74.558 0-134-53.845-134-129.5 0-22.501 5-32.142 31.5-35.672 47.5-6.329 72.542-3.828 102.5-3.828 29.959 0 72.556-1.271 102.5 3.828 24.5 4.171 30 8.671 31.5 36.672z",
|
|
16
|
+
fill: "#FFB02E"
|
|
15
17
|
}), /*#__PURE__*/_jsx("path", {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
d: "M159.75 242.516c-28.25 0-35.75 3.5-35.75 3.5s3.5 27 35.75 27 35.75-27 35.75-27-7.5-3.5-35.75-3.5z",
|
|
19
|
+
fill: "#972021"
|
|
18
20
|
}), /*#__PURE__*/_jsx("ellipse", {
|
|
19
21
|
cx: "160.5",
|
|
20
22
|
cy: "148.516",
|
|
@@ -22,81 +24,81 @@ var LogoFlat = /*#__PURE__*/memo(function (_ref) {
|
|
|
22
24
|
rx: "111.5",
|
|
23
25
|
ry: "11.5"
|
|
24
26
|
}), /*#__PURE__*/_jsx("path", {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
d: "M135.5 160.015c.633-14.972-.483-22.788-5.5-36.443 0 0 9.5-12.056 27-12.056s30 3.064 30 3.064c-3.028 16.793-3.182 26.921-2.5 45.435h-49z",
|
|
28
|
+
fill: "#FEE064"
|
|
27
29
|
}), /*#__PURE__*/_jsx("path", {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
d: "M119.189 234.289c14.742-7.076 24.811-21.51 24.811-39.273 0-25.405-20.595-48-46-48s-47 19.595-47 45c0 13.983 6.542 26.812 16.662 35.521 5.893-2.245 12.652-3.521 19.838-3.521 12.705 0 24.077 3.989 31.689 10.273zM200.811 234.289C186.069 227.213 176 212.779 176 195.016c0-25.405 20.595-48 46-48s47 19.595 47 45c0 13.983-6.542 26.812-16.662 35.521-5.893-2.245-12.652-3.521-19.838-3.521-12.705 0-24.077 3.989-31.689 10.273z",
|
|
31
|
+
fill: "#fff"
|
|
30
32
|
}), /*#__PURE__*/_jsx("circle", {
|
|
31
33
|
cx: "28",
|
|
32
34
|
cy: "28",
|
|
33
|
-
r: "28",
|
|
34
35
|
fill: "#270C36",
|
|
36
|
+
r: "28",
|
|
35
37
|
transform: "matrix(-1 0 0 1 247 165.016)"
|
|
36
38
|
}), /*#__PURE__*/_jsx("circle", {
|
|
37
39
|
cx: "101",
|
|
38
40
|
cy: "193.016",
|
|
39
|
-
|
|
40
|
-
|
|
41
|
+
fill: "#270C36",
|
|
42
|
+
r: "28"
|
|
41
43
|
}), /*#__PURE__*/_jsx("path", {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
d: "M160.006 290.016c20.099 0 23.305-20.488 23.927-25.61.478-4.146-1.675-6.244-4.02-7.659-2.345-1.414-9.379-2.731-19.907-2.731-10.527 0-17.514 1.317-19.906 2.731-2.393 1.415-4.546 3.513-4.02 7.659.622 5.122 3.828 25.61 23.926 25.61z",
|
|
45
|
+
fill: "#F70A8D"
|
|
44
46
|
}), /*#__PURE__*/_jsx("path", {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
+
d: "M160.006 290.016c20.099 0 23.305-20.488 23.927-25.61.478-4.146-1.675-6.244-4.02-7.659-2.345-1.414-9.379-2.731-19.907-2.731-10.527 0-17.514 1.317-19.906 2.731-2.393 1.415-4.546 3.513-4.02 7.659.622 5.122 3.828 25.61 23.926 25.61z",
|
|
48
|
+
fill: "#F70A8D"
|
|
47
49
|
}), /*#__PURE__*/_jsx("path", {
|
|
50
|
+
d: "M160.006 290.016c20.099 0 23.305-20.488 23.927-25.61.478-4.146-1.675-6.244-4.02-7.659-2.345-1.414-9.379-2.731-19.907-2.731-10.527 0-17.514 1.317-19.906 2.731-2.393 1.415-4.546 3.513-4.02 7.659.622 5.122 3.828 25.61 23.926 25.61z",
|
|
48
51
|
fill: "#20D45F",
|
|
49
|
-
fillOpacity: ".42"
|
|
50
|
-
d: "M160.006 290.016c20.099 0 23.305-20.488 23.927-25.61.478-4.146-1.675-6.244-4.02-7.659-2.345-1.414-9.379-2.731-19.907-2.731-10.527 0-17.514 1.317-19.906 2.731-2.393 1.415-4.546 3.513-4.02 7.659.622 5.122 3.828 25.61 23.926 25.61z"
|
|
52
|
+
fillOpacity: ".42"
|
|
51
53
|
}), /*#__PURE__*/_jsx("path", {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
d: "M173 19.016c-14.027 0-19.5-11.5-41-11-23.394 0-34 13-45.5 23-1.958 1.702-11.5 7-16 9-19.683 8.748-34.5 21.5-34.5 40.5 0 20.711 17.46 37.5 39 37.5 3.536 0 6.963-.453 10.22-1.301 8.7 10.539 22.179 16.658 37.28 17.301 23.5 1 31-15.25 44.5-8.5 9.259 4.629 13.83 8.5 28.5 8.5 17.108 0 25.057-5.233 30-11 9-10.5 22.879-4 31.5-4 18.778 0 34-14.551 34-32.5 0-17.95-15.222-32.5-34-32.5-5.15 0-14.856 1.27-17-7-3.5-13.5-20.148-29-44-29-9.318 0-17.691 1-23 1z",
|
|
55
|
+
fill: "#A68AE2"
|
|
54
56
|
}), /*#__PURE__*/_jsx("path", {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
d: "M157.32 14.32c4.969 2.458 9.492 4.696 15.68 4.696 2.284 0 5.134-.185 8.383-.396 4.304-.28 9.307-.604 14.617-.604 23.852 0 40.5 15.5 44 29 1.908 7.36 9.804 7.164 15.149 7.032a77.169 77.169 0 011.851-.032c16.664 0 30.528 11.46 33.438 26.583.137.71-1.083.88-1.354.208-.027-.07-.056-.139-.084-.208-4.719-11.431-17.265-19.605-32-19.605-.544 0-1.173.013-1.866.027-5.853.12-16.216.334-18.134-6.413-3.5-12.315-17.148-26.455-41-26.455-5.31 0-10.313.296-14.617.55-3.249.193-6.099.362-8.383.362-6.188 0-10.711-2.042-15.68-4.285-6.295-2.84-13.305-6.005-25.32-5.75-20.261 0-30.93 8.896-40.895 17.205a244.788 244.788 0 01-4.605 3.777c-1.958 1.553-11.5 6.386-16 8.21-15.7 6.366-28.304 15.055-32.762 27.107-.247.668-1.437.525-1.327-.178l.021-.135c2.572-16.004 16.348-27.125 34.068-35 4.5-2 14.042-7.298 16-9 1.54-1.34 3.064-2.732 4.605-4.14 9.965-9.109 20.634-18.86 40.895-18.86 12.015-.28 19.025 3.189 25.32 6.303z",
|
|
58
|
+
fill: "#DBA6E9"
|
|
57
59
|
}), /*#__PURE__*/_jsx("circle", {
|
|
58
60
|
cx: "73.5",
|
|
59
61
|
cy: "20.516",
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
fill: "#7B61FF",
|
|
63
|
+
r: "9.5"
|
|
62
64
|
}), /*#__PURE__*/_jsx("circle", {
|
|
63
65
|
cx: "55",
|
|
64
66
|
cy: "108.016",
|
|
65
|
-
|
|
66
|
-
|
|
67
|
+
fill: "#D9D9D9",
|
|
68
|
+
r: "16"
|
|
67
69
|
}), /*#__PURE__*/_jsx("circle", {
|
|
68
70
|
cx: "55",
|
|
69
71
|
cy: "108.016",
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
fill: "#F2314D",
|
|
73
|
+
r: "16"
|
|
72
74
|
}), /*#__PURE__*/_jsx("circle", {
|
|
73
75
|
cx: "266.5",
|
|
74
76
|
cy: "49.516",
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
fill: "#7CEE1D",
|
|
78
|
+
r: "15.5"
|
|
77
79
|
}), /*#__PURE__*/_jsx("path", {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
d: "M132.235 244.117c5.483-.823 14.191-1.601 27.515-1.601 12.211 0 20.546.654 26.073 1.396-1.542 5.86-12.963 8.104-26.823 8.104-13.698 0-25.013-2.191-26.765-7.899z",
|
|
81
|
+
fill: "#fff"
|
|
80
82
|
}), /*#__PURE__*/_jsx("path", {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
d: "M160.006 290.016c20.099 0 23.305-20.488 23.927-25.61.478-4.146-1.675-6.244-4.02-7.659-2.345-1.414-9.379-2.731-19.907-2.731-10.527 0-17.514 1.317-19.906 2.731-2.393 1.415-4.546 3.513-4.02 7.659.622 5.122 3.828 25.61 23.926 25.61z",
|
|
84
|
+
fill: "#F70A8D"
|
|
83
85
|
}), /*#__PURE__*/_jsx("path", {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
d: "M160.006 290.016c20.099 0 23.305-20.488 23.927-25.61.478-4.146-1.675-6.244-4.02-7.659-2.345-1.414-9.379-2.731-19.907-2.731-10.527 0-17.514 1.317-19.906 2.731-2.393 1.415-4.546 3.513-4.02 7.659.622 5.122 3.828 25.61 23.926 25.61z",
|
|
87
|
+
fill: "#F70A8D"
|
|
86
88
|
}), /*#__PURE__*/_jsx("path", {
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
d: "M160.006 290.016c20.099 0 23.305-20.488 23.927-25.61.478-4.146-1.675-6.244-4.02-7.659-2.345-1.414-9.379-2.731-19.907-2.731-10.527 0-17.514 1.317-19.906 2.731-2.393 1.415-4.546 3.513-4.02 7.659.622 5.122 3.828 25.61 23.926 25.61z",
|
|
90
|
+
fill: "#F24630"
|
|
89
91
|
}), /*#__PURE__*/_jsx("path", {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
+
d: "M171.696 129.744c-5.721-3.89-13.954-4.248-19.786-.526-7.724 4.929-16.971 7.798-26.91 7.798-27.062 0-49-21.267-49-47.5 0-26.234 21.938-47.5 49-47.5 13.628 0 25.956 5.392 34.838 14.097 4.948 4.85 13.088 6.24 19.498 3.609a42.502 42.502 0 0116.164-3.166c22.92 0 41.5 18.012 41.5 40.23 0 22.218-18.58 40.23-41.5 40.23-8.856 0-17.065-2.69-23.804-7.272z",
|
|
93
|
+
fill: "#F4B8CA"
|
|
92
94
|
}), /*#__PURE__*/_jsx("path", {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
d: "M237 96.786c0 .752-1.081.808-1.271.08-4.558-17.42-20.841-30.31-40.229-30.31a42.503 42.503 0 00-16.164 3.166c-6.41 2.63-14.55 1.24-19.498-3.61-8.882-8.704-21.21-14.096-34.838-14.096-23.544 0-43.21 16.096-47.925 37.556-.139.632-1.075.59-1.075-.056 0-26.234 21.938-47.5 49-47.5 13.628 0 25.956 5.392 34.838 14.097 4.948 4.85 13.088 6.24 19.498 3.609a42.503 42.503 0 0116.164-3.166c22.92 0 41.5 18.012 41.5 40.23z",
|
|
96
|
+
fill: "#FFD7D7"
|
|
95
97
|
}), /*#__PURE__*/_jsx("circle", {
|
|
96
98
|
cx: "205.5",
|
|
97
99
|
cy: "106.516",
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
fill: "#0C74FF",
|
|
101
|
+
r: "13.5"
|
|
100
102
|
})]
|
|
101
103
|
}));
|
|
102
104
|
});
|
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
5
|
import { memo } from 'react';
|
|
4
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
7
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
8
|
var LogoHighContrast = /*#__PURE__*/memo(function (_ref) {
|
|
7
9
|
var props = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
8
10
|
return /*#__PURE__*/_jsxs("svg", _objectSpread(_objectSpread({
|
|
9
|
-
viewBox: "0 0 320 320",
|
|
10
11
|
fill: "currentColor",
|
|
11
|
-
fillRule: "evenodd"
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
viewBox: "0 0 320 320"
|
|
12
14
|
}, props), {}, {
|
|
13
15
|
children: [/*#__PURE__*/_jsx("path", {
|
|
14
16
|
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"
|
|
15
17
|
}), /*#__PURE__*/_jsx("path", {
|
|
16
18
|
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"
|
|
17
19
|
}), /*#__PURE__*/_jsx("path", {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
clipRule: "evenodd",
|
|
21
|
+
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"
|
|
20
22
|
}), /*#__PURE__*/_jsx("path", {
|
|
21
23
|
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"
|
|
22
24
|
})]
|
package/es/Logo/LogoText.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectDestructuringEmpty from "@babel/runtime/helpers/esm/objectDestructuringEmpty";
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3
5
|
import { memo } from 'react';
|
|
4
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
5
7
|
var LogoText = /*#__PURE__*/memo(function (_ref) {
|
|
6
8
|
var props = Object.assign({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
7
9
|
return /*#__PURE__*/_jsx("svg", _objectSpread(_objectSpread({
|
|
8
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
9
|
-
viewBox: "0 0 940 320",
|
|
10
10
|
fill: "currentColor",
|
|
11
|
-
fillRule: "evenodd"
|
|
11
|
+
fillRule: "evenodd",
|
|
12
|
+
viewBox: "0 0 940 320",
|
|
13
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12
14
|
}, props), {}, {
|
|
13
15
|
children: /*#__PURE__*/_jsx("path", {
|
|
14
16
|
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"
|
package/es/Logo/index.d.ts
CHANGED
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
import { DivProps } from "../types";
|
|
3
3
|
export interface LogoProps extends DivProps {
|
|
4
4
|
/**
|
|
5
|
-
* @description
|
|
6
|
-
* @default '3d'
|
|
5
|
+
* @description Additional React Node to be rendered next to the logo
|
|
7
6
|
*/
|
|
8
|
-
|
|
7
|
+
extra?: React.ReactNode;
|
|
9
8
|
/**
|
|
10
9
|
* @description Size of the logo in pixels
|
|
11
10
|
* @default 32
|
|
12
11
|
*/
|
|
13
12
|
size?: number;
|
|
14
13
|
/**
|
|
15
|
-
* @description
|
|
14
|
+
* @description Type of the logo to be rendered
|
|
15
|
+
* @default '3d'
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
type?: '3d' | 'flat' | 'high-contrast' | 'text' | 'combine';
|
|
18
18
|
}
|
|
19
19
|
declare const Logo: import("react").NamedExoticComponent<LogoProps>;
|
|
20
20
|
export default Logo;
|
package/es/Logo/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["type", "size", "style", "extra", "className"];
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
6
|
import { useTheme } from 'antd-style';
|
|
5
7
|
import { memo } from 'react';
|
|
6
8
|
import Divider from "./Divider";
|
package/es/Markdown/Code.js
CHANGED
package/es/Markdown/CodeBlock.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/esm/taggedTemplateLiteral";
|
|
2
2
|
var _templateObject;
|
|
3
|
-
import Highlighter from "../Highlighter";
|
|
4
3
|
import { createStyles } from 'antd-style';
|
|
5
4
|
import { memo } from 'react';
|
|
5
|
+
import Highlighter from "../Highlighter";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
var useStyles = createStyles(function (_ref) {
|
|
8
8
|
var css = _ref.css;
|
|
@@ -18,10 +18,10 @@ var Code = /*#__PURE__*/memo(function (props) {
|
|
|
18
18
|
className = _props$children$0$pro.className;
|
|
19
19
|
if (!children) return null;
|
|
20
20
|
return /*#__PURE__*/_jsx(Highlighter, {
|
|
21
|
-
type: "block",
|
|
22
|
-
theme: theme.appearance,
|
|
23
|
-
language: (className === null || className === void 0 ? void 0 : className.replace('language-', '')) || 'markdown',
|
|
24
21
|
className: styles,
|
|
22
|
+
language: (className === null || className === void 0 ? void 0 : className.replace('language-', '')) || 'markdown',
|
|
23
|
+
theme: theme.appearance,
|
|
24
|
+
type: "block",
|
|
25
25
|
children: children instanceof Array ? children[0] : children
|
|
26
26
|
});
|
|
27
27
|
});
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type TextAreaProps } from "../index";
|
|
3
2
|
import { ButtonProps } from 'antd';
|
|
3
|
+
import { type TextAreaProps } from "../index";
|
|
4
4
|
/**
|
|
5
5
|
* @title MessageInputProps
|
|
6
6
|
* @category Props
|
|
7
7
|
* @description MessageInput 组件的 Props
|
|
8
8
|
*/
|
|
9
9
|
export interface MessageInputProps {
|
|
10
|
+
className?: string;
|
|
10
11
|
/**
|
|
11
|
-
* @title
|
|
12
|
-
* @description
|
|
13
|
-
* @param text - 用户输入的文本
|
|
12
|
+
* @title 默认值
|
|
13
|
+
* @description 输入框的默认值
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
defaultValue?: string;
|
|
16
|
+
height?: number;
|
|
16
17
|
/**
|
|
17
18
|
* @title 取消回调函数
|
|
18
19
|
* @description 用户点击取消按钮后的回调函数
|
|
19
20
|
*/
|
|
20
21
|
onCancel?: () => void;
|
|
21
22
|
/**
|
|
22
|
-
* @title
|
|
23
|
-
* @description
|
|
23
|
+
* @title 确认回调函数
|
|
24
|
+
* @description 用户点击确认按钮后的回调函数
|
|
25
|
+
* @param text - 用户输入的文本
|
|
24
26
|
*/
|
|
25
|
-
|
|
27
|
+
onConfirm?: (text: string) => void;
|
|
26
28
|
/**
|
|
27
29
|
* @title 渲染按钮
|
|
28
30
|
* @description 自定义渲染底部按钮
|
|
29
31
|
* @param text - 用户输入的文本
|
|
30
32
|
*/
|
|
31
33
|
renderButtons?: (text: string) => ButtonProps[];
|
|
32
|
-
height?: number;
|
|
33
|
-
className?: string;
|
|
34
34
|
type?: TextAreaProps['type'];
|
|
35
35
|
}
|
|
36
36
|
declare const MessageInput: import("react").NamedExoticComponent<MessageInputProps>;
|