@lobehub/ui 1.64.0 → 1.65.0
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.
|
@@ -16,6 +16,7 @@ var useStyles = createStyles(function (_ref) {
|
|
|
16
16
|
});
|
|
17
17
|
var Action = /*#__PURE__*/memo(function (_ref2) {
|
|
18
18
|
var actions = _ref2.actions,
|
|
19
|
+
actionsRight = _ref2.actionsRight,
|
|
19
20
|
expand = _ref2.expand,
|
|
20
21
|
onExpandChange = _ref2.onExpandChange;
|
|
21
22
|
var _useStyles = useStyles(),
|
|
@@ -28,12 +29,12 @@ var Action = /*#__PURE__*/memo(function (_ref2) {
|
|
|
28
29
|
children: [/*#__PURE__*/_jsx("div", {
|
|
29
30
|
className: styles.actionLeft,
|
|
30
31
|
children: actions
|
|
31
|
-
}), /*#__PURE__*/
|
|
32
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
32
33
|
className: styles.actionsRight,
|
|
33
|
-
children: /*#__PURE__*/_jsx(ActionIcon, {
|
|
34
|
+
children: [actionsRight, /*#__PURE__*/_jsx(ActionIcon, {
|
|
34
35
|
icon: expand ? Minimize2 : Maximize2,
|
|
35
36
|
onClick: handleExpandClick
|
|
36
|
-
})
|
|
37
|
+
})]
|
|
37
38
|
})]
|
|
38
39
|
});
|
|
39
40
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["text", "textareaClassName", "style", "textareaStyle", "minHeight", "className", "actions", "footer", "expand", "placeholder", "onExpandChange", "onSend", "defaultValue", "loading", "disabled", "onInputChange", "onPressEnter", "onCompositionStart", "onCompositionEnd", "onBlur", "onChange", "textareaId"];
|
|
4
|
+
var _excluded = ["text", "textareaClassName", "style", "textareaStyle", "minHeight", "className", "actions", "footer", "expand", "placeholder", "onExpandChange", "onSend", "defaultValue", "loading", "disabled", "onInputChange", "onPressEnter", "onCompositionStart", "onCompositionEnd", "onBlur", "onChange", "textareaId", "actionsRight"];
|
|
5
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
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; }
|
|
7
7
|
import { Button } from 'antd';
|
|
@@ -39,6 +39,7 @@ var ChatInputArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
39
39
|
_onChange = _ref.onChange,
|
|
40
40
|
_ref$textareaId = _ref.textareaId,
|
|
41
41
|
textareaId = _ref$textareaId === void 0 ? 'lobe-chat-input-area' : _ref$textareaId,
|
|
42
|
+
actionsRight = _ref.actionsRight,
|
|
42
43
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
43
44
|
var _useStyles = useStyles(),
|
|
44
45
|
cx = _useStyles.cx,
|
|
@@ -63,6 +64,7 @@ var ChatInputArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
63
64
|
}, style),
|
|
64
65
|
children: [/*#__PURE__*/_jsx(Action, {
|
|
65
66
|
actions: actions,
|
|
67
|
+
actionsRight: actionsRight,
|
|
66
68
|
expand: expand,
|
|
67
69
|
onExpandChange: onExpandChange
|
|
68
70
|
}), /*#__PURE__*/_jsxs("div", {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Lobe UI is an open-source UI component library for building
|
|
3
|
+
"version": "1.65.0",
|
|
4
|
+
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
7
7
|
"components",
|