@lobehub/ui 2.0.2 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/Input/style.js
CHANGED
|
@@ -14,7 +14,7 @@ export var useStyles = createStyles(function (_ref) {
|
|
|
14
14
|
filledOPT: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n &.", "-otp {\n .", "-otp-input {\n ", ";\n }\n }\n "])), prefixCls, prefixCls, stylish.variantFilled),
|
|
15
15
|
outlined: stylish.variantOutlined,
|
|
16
16
|
outlinedOPT: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n &.", "-otp {\n .", "-otp-input {\n ", ";\n }\n }\n "])), prefixCls, prefixCls, stylish.variantOutlined),
|
|
17
|
-
root: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["
|
|
17
|
+
root: css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral([""]))),
|
|
18
18
|
rootOPT: css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n &.", "-otp {\n .", "-otp-input {\n &:focus-within {\n border-color: ", ";\n }\n }\n }\n "])), prefixCls, prefixCls, token.colorBorder),
|
|
19
19
|
shadow: stylish.shadow,
|
|
20
20
|
shadowOPT: css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n &.", "-otp {\n .", "-otp-input {\n ", ";\n }\n }\n "])), prefixCls, prefixCls, stylish.shadow)
|
|
@@ -60,7 +60,10 @@ var ChatInputArea = /*#__PURE__*/memo(function (_ref) {
|
|
|
60
60
|
_onSend === null || _onSend === void 0 || _onSend();
|
|
61
61
|
setExpand === null || setExpand === void 0 || setExpand(false);
|
|
62
62
|
},
|
|
63
|
-
ref: ref
|
|
63
|
+
ref: ref,
|
|
64
|
+
style: {
|
|
65
|
+
paddingInline: 16
|
|
66
|
+
}
|
|
64
67
|
}, rest))
|
|
65
68
|
}), bottomAddons]
|
|
66
69
|
})
|
|
@@ -90,13 +90,13 @@ var MessageModal = /*#__PURE__*/memo(function (_ref) {
|
|
|
90
90
|
title: text === null || text === void 0 ? void 0 : text.title,
|
|
91
91
|
children: isEdit ? /*#__PURE__*/_jsx(CodeEditor, {
|
|
92
92
|
className: textStyles,
|
|
93
|
-
defaultValue:
|
|
93
|
+
defaultValue: temporaryValue,
|
|
94
94
|
language: 'markdown',
|
|
95
95
|
onValueChange: function onValueChange(value) {
|
|
96
96
|
return setMessage(value);
|
|
97
97
|
},
|
|
98
98
|
placeholder: placeholder,
|
|
99
|
-
value:
|
|
99
|
+
value: temporaryValue,
|
|
100
100
|
variant: 'borderless'
|
|
101
101
|
}) : /*#__PURE__*/_jsxs(_Fragment, {
|
|
102
102
|
children: [extra, /*#__PURE__*/_jsx(Markdown, {
|
|
@@ -92,6 +92,7 @@ var ChatInputArea = /*#__PURE__*/memo(function (_ref) {
|
|
|
92
92
|
active: true,
|
|
93
93
|
className: styles.expandButton,
|
|
94
94
|
icon: expand ? ChevronDown : ChevronUp,
|
|
95
|
+
id: 'sssssss',
|
|
95
96
|
onClick: function onClick() {
|
|
96
97
|
return setExpand === null || setExpand === void 0 ? void 0 : setExpand(!expand);
|
|
97
98
|
},
|
|
@@ -111,9 +112,9 @@ var ChatInputArea = /*#__PURE__*/memo(function (_ref) {
|
|
|
111
112
|
children: /*#__PURE__*/_jsx(ChatInputAreaInner, {
|
|
112
113
|
autoSize: expand ? false : {
|
|
113
114
|
maxRows: 6,
|
|
114
|
-
minRows:
|
|
115
|
+
minRows: 1
|
|
115
116
|
},
|
|
116
|
-
className:
|
|
117
|
+
className: styles.expandTextArea,
|
|
117
118
|
loading: loading,
|
|
118
119
|
onBlur: function onBlur() {
|
|
119
120
|
return setIsFocused(false);
|
|
@@ -6,7 +6,7 @@ export var useStyles = createStyles(function (_ref) {
|
|
|
6
6
|
token = _ref.token;
|
|
7
7
|
return {
|
|
8
8
|
container: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n flex: none;\n padding-block: 12px;\n background: ", ";\n border-block-start: 1px solid ", ";\n "])), token.colorFillQuaternary, token.colorFillTertiary),
|
|
9
|
-
expand: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n height: 100%;\n "]))),
|
|
9
|
+
expand: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: absolute;\n width: 100%;\n height: 100%;\n "]))),
|
|
10
10
|
expandButton: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: absolute;\n inset-inline-end: 14px;\n "]))),
|
|
11
11
|
expandTextArea: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex: 1;\n "]))),
|
|
12
12
|
inner: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n height: inherit;\n padding-block: 0;\n padding-inline: 8px;\n "])))
|