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.cjs
CHANGED
|
@@ -12635,7 +12635,7 @@ var Input = React31.forwardRef(function(_param, ref) {
|
|
|
12635
12635
|
}
|
|
12636
12636
|
});
|
|
12637
12637
|
var handleKeyDown = function(e) {
|
|
12638
|
-
if (e.key === "Enter" && hasEnter) {
|
|
12638
|
+
if (e.key === "Enter" && !hasEnter) {
|
|
12639
12639
|
e.preventDefault();
|
|
12640
12640
|
} else {
|
|
12641
12641
|
var _props_onKeyDown;
|
|
@@ -13814,6 +13814,7 @@ function SearchBar(_param) {
|
|
|
13814
13814
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Input, _object_spread({
|
|
13815
13815
|
type: type,
|
|
13816
13816
|
placeholder: placeholder,
|
|
13817
|
+
hasEnter: true,
|
|
13817
13818
|
rounded: roundedFill ? "full" : "sm",
|
|
13818
13819
|
size: size,
|
|
13819
13820
|
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", {
|