@lobehub/ui 1.138.4 → 1.138.6
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/Avatar/index.js
CHANGED
|
@@ -49,8 +49,9 @@ var Avatar = /*#__PURE__*/memo(function (_ref) {
|
|
|
49
49
|
}, rest);
|
|
50
50
|
return isDefaultAntAvatar ? /*#__PURE__*/_jsx(AntAvatar, _objectSpread({
|
|
51
51
|
src: typeof avatar === 'string' ? /*#__PURE__*/_jsx(Img, {
|
|
52
|
-
alt: title,
|
|
52
|
+
alt: avatarProps.alt || title,
|
|
53
53
|
height: size,
|
|
54
|
+
loading: 'lazy',
|
|
54
55
|
src: avatar,
|
|
55
56
|
width: size
|
|
56
57
|
}) : avatar
|
package/es/FluentEmoji/index.js
CHANGED
package/es/SearchBar/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export interface SearchBarProps extends InputProps {
|
|
|
7
7
|
* @default false
|
|
8
8
|
*/
|
|
9
9
|
enableShortKey?: boolean;
|
|
10
|
+
loading?: boolean;
|
|
10
11
|
onInputChange?: (value: string) => void;
|
|
11
12
|
/**
|
|
12
13
|
* @description The shortcut key to focus on the input. Only works if `enableShortKey` is true
|
package/es/SearchBar/index.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
4
4
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
5
5
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
6
|
-
var _excluded = ["defaultValue", "spotlight", "className", "value", "onInputChange", "placeholder", "enableShortKey", "shortKey"];
|
|
7
|
-
import { Search } from 'lucide-react';
|
|
6
|
+
var _excluded = ["defaultValue", "spotlight", "className", "value", "onInputChange", "placeholder", "enableShortKey", "shortKey", "loading"];
|
|
7
|
+
import { LucideLoader2, Search } from 'lucide-react';
|
|
8
8
|
import { memo, useEffect, useRef, useState } from 'react';
|
|
9
9
|
import useControlledState from 'use-merge-value';
|
|
10
10
|
import Icon from "../Icon";
|
|
@@ -24,6 +24,7 @@ var SearchBar = /*#__PURE__*/memo(function (_ref) {
|
|
|
24
24
|
enableShortKey = _ref.enableShortKey,
|
|
25
25
|
_ref$shortKey = _ref.shortKey,
|
|
26
26
|
shortKey = _ref$shortKey === void 0 ? 'f' : _ref$shortKey,
|
|
27
|
+
loading = _ref.loading,
|
|
27
28
|
properties = _objectWithoutProperties(_ref, _excluded);
|
|
28
29
|
var _useControlledState = useControlledState(defaultValue, {
|
|
29
30
|
defaultValue: defaultValue,
|
|
@@ -82,8 +83,9 @@ var SearchBar = /*#__PURE__*/memo(function (_ref) {
|
|
|
82
83
|
placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : 'Type keywords...',
|
|
83
84
|
prefix: /*#__PURE__*/_jsx(Icon, {
|
|
84
85
|
className: styles.icon,
|
|
85
|
-
icon: Search,
|
|
86
|
+
icon: loading ? LucideLoader2 : Search,
|
|
86
87
|
size: "small",
|
|
88
|
+
spin: loading,
|
|
87
89
|
style: {
|
|
88
90
|
marginRight: 4
|
|
89
91
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/ui",
|
|
3
|
-
"version": "1.138.
|
|
3
|
+
"version": "1.138.6",
|
|
4
4
|
"description": "Lobe UI is an open-source UI component library for building AIGC web apps",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lobehub",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"@react-spring/web": "^9.7.3",
|
|
89
89
|
"@shikijs/transformers": "^1.3.0",
|
|
90
90
|
"@splinetool/react-spline": "^2.2.6",
|
|
91
|
-
"@splinetool/runtime": "^
|
|
91
|
+
"@splinetool/runtime": "^1.1.2",
|
|
92
92
|
"ahooks": "^3.7.11",
|
|
93
93
|
"chroma-js": "^2.4.2",
|
|
94
94
|
"dayjs": "^1.11.10",
|
|
@@ -124,20 +124,20 @@
|
|
|
124
124
|
"zustand-utils": "^1.3.2"
|
|
125
125
|
},
|
|
126
126
|
"devDependencies": {
|
|
127
|
-
"@commitlint/cli": "^19.2.
|
|
127
|
+
"@commitlint/cli": "^19.2.2",
|
|
128
128
|
"@lobehub/lint": "latest",
|
|
129
|
-
"@testing-library/react": "^14.3.
|
|
129
|
+
"@testing-library/react": "^14.3.1",
|
|
130
130
|
"@types/chroma-js": "^2.4.4",
|
|
131
131
|
"@types/lodash-es": "^4.17.12",
|
|
132
132
|
"@types/pangu": "^4.0.2",
|
|
133
133
|
"@types/query-string": "^6.3.0",
|
|
134
134
|
"@types/react": "18.2.40",
|
|
135
|
-
"@types/react-dom": "^18.2.
|
|
135
|
+
"@types/react-dom": "^18.2.25",
|
|
136
136
|
"@types/uuid": "^9.0.8",
|
|
137
137
|
"@vitest/coverage-v8": "latest",
|
|
138
138
|
"antd-style": "^3.6.2",
|
|
139
139
|
"babel-plugin-antd-style": "latest",
|
|
140
|
-
"commitlint": "^19.2.
|
|
140
|
+
"commitlint": "^19.2.2",
|
|
141
141
|
"concurrently": "^8.2.2",
|
|
142
142
|
"cross-env": "^7.0.3",
|
|
143
143
|
"dpdm": "^3.14.0",
|