myshell-react-lib 0.2.38 → 0.2.40
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/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -967,7 +967,7 @@ type SearchBarProps = {
|
|
|
967
967
|
*
|
|
968
968
|
* @default xs
|
|
969
969
|
*/
|
|
970
|
-
size?:
|
|
970
|
+
size?: 'md' | 'sm' | 'xs';
|
|
971
971
|
/**
|
|
972
972
|
* 是否圆角
|
|
973
973
|
*/
|
|
@@ -980,7 +980,7 @@ type SearchBarProps = {
|
|
|
980
980
|
* 默认搜索时是否触发回调
|
|
981
981
|
*/
|
|
982
982
|
defaultSearchByChange?: boolean;
|
|
983
|
-
} & Omit<SearchInputProps,
|
|
983
|
+
} & Omit<SearchInputProps, 'size'>;
|
|
984
984
|
declare function SearchBar({ className, inputClassName, placeholder, type, size, readOnly, searchValue, roundedFill, onSearchChange, onValueChange, defaultSearchByChange, ...props }: SearchBarProps): react_jsx_runtime.JSX.Element;
|
|
985
985
|
declare namespace SearchBar {
|
|
986
986
|
var displayName: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -967,7 +967,7 @@ type SearchBarProps = {
|
|
|
967
967
|
*
|
|
968
968
|
* @default xs
|
|
969
969
|
*/
|
|
970
|
-
size?:
|
|
970
|
+
size?: 'md' | 'sm' | 'xs';
|
|
971
971
|
/**
|
|
972
972
|
* 是否圆角
|
|
973
973
|
*/
|
|
@@ -980,7 +980,7 @@ type SearchBarProps = {
|
|
|
980
980
|
* 默认搜索时是否触发回调
|
|
981
981
|
*/
|
|
982
982
|
defaultSearchByChange?: boolean;
|
|
983
|
-
} & Omit<SearchInputProps,
|
|
983
|
+
} & Omit<SearchInputProps, 'size'>;
|
|
984
984
|
declare function SearchBar({ className, inputClassName, placeholder, type, size, readOnly, searchValue, roundedFill, onSearchChange, onValueChange, defaultSearchByChange, ...props }: SearchBarProps): react_jsx_runtime.JSX.Element;
|
|
985
985
|
declare namespace SearchBar {
|
|
986
986
|
var displayName: string;
|
package/dist/index.js
CHANGED
|
@@ -11843,7 +11843,7 @@ var Input = React31.forwardRef(function(_param, ref) {
|
|
|
11843
11843
|
}
|
|
11844
11844
|
});
|
|
11845
11845
|
var handleKeyDown = function(e) {
|
|
11846
|
-
if (e.key === "Enter" && hasEnter) {
|
|
11846
|
+
if (e.key === "Enter" && !hasEnter) {
|
|
11847
11847
|
e.preventDefault();
|
|
11848
11848
|
} else {
|
|
11849
11849
|
var _props_onKeyDown;
|
|
@@ -13022,6 +13022,7 @@ function SearchBar(_param) {
|
|
|
13022
13022
|
/* @__PURE__ */ jsx45(Input, _object_spread({
|
|
13023
13023
|
type: type,
|
|
13024
13024
|
placeholder: placeholder,
|
|
13025
|
+
hasEnter: true,
|
|
13025
13026
|
rounded: roundedFill ? "full" : "sm",
|
|
13026
13027
|
size: size,
|
|
13027
13028
|
className: cn("relative w-full px-9 flex space-x-2 text-base shadow-none placeholder:text-Colors-Text-Subtlest", "bg-cc-Search-Bar-bg-default focus-visible-style", {
|