utopia-ui 3.0.0-alpha.247 → 3.0.0-alpha.249

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.
@@ -1 +1,4 @@
1
- export declare const AttestationForm: () => import("react/jsx-runtime").JSX.Element;
1
+ import { ItemsApi } from '../../types';
2
+ export declare const AttestationForm: ({ api }: {
3
+ api: ItemsApi<any>;
4
+ }) => import("react/jsx-runtime").JSX.Element;
package/dist/index.js CHANGED
@@ -4647,7 +4647,6 @@ var Autocomplete = function (_a) {
4647
4647
  onSelected(suggestion);
4648
4648
  }
4649
4649
  var handleKeyDown = function (event) {
4650
- event.preventDefault();
4651
4650
  switch (event.key) {
4652
4651
  case 'ArrowDown':
4653
4652
  heighlightedSuggestion < filteredSuggestions.length - 1 && setHeighlightedSuggestion(function (current) { return current + 1; });
@@ -4667,7 +4666,7 @@ var Autocomplete = function (_a) {
4667
4666
  break;
4668
4667
  }
4669
4668
  };
4670
- return (jsxs("div", { children: [jsx("input", __assign({ ref: inputRef }, inputProps, { type: "text", onChange: function (e) { return handleChange(e); }, tabindex: "-1", onKeyDown: handleKeyDown })), jsx("ul", __assign({ className: "tw-absolute tw-z-[4000] ".concat(filteredSuggestions.length > 0 && 'tw-bg-base-100 tw-rounded-xl tw-p-2') }, { children: filteredSuggestions.map(function (suggestion, index) { return (jsx("li", __assign({ onClick: function () { return handleSuggestionClick(suggestion); } }, { children: jsx(TagView, { heighlight: index == heighlightedSuggestion, tag: suggestion }) }), index)); }) }))] }));
4669
+ return (jsxs("div", { children: [jsx("input", __assign({ ref: inputRef }, inputProps, { type: "text", onChange: function (e) { return handleChange(e); }, tabIndex: "-1", onKeyDown: handleKeyDown })), jsx("ul", __assign({ className: "tw-absolute tw-z-[4000] ".concat(filteredSuggestions.length > 0 && 'tw-bg-base-100 tw-rounded-xl tw-p-2') }, { children: filteredSuggestions.map(function (suggestion, index) { return (jsx("li", __assign({ onClick: function () { return handleSuggestionClick(suggestion); } }, { children: jsx(TagView, { heighlight: index == heighlightedSuggestion, tag: suggestion }) }), index)); }) }))] }));
4671
4670
  };
4672
4671
 
4673
4672
  var TagsWidget = function (_a) {