@sanity/ui 2.10.14 → 2.10.16
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/LICENSE +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1 -20
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -20
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -20
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -9
- package/src/core/components/autocomplete/autocomplete.tsx +2 -1
package/dist/index.js
CHANGED
|
@@ -5220,26 +5220,7 @@ const AUTOCOMPLETE_LISTBOX_IGNORE_KEYS = ["Control", "Shift", "Alt", "Enter", "H
|
|
|
5220
5220
|
inputElement: inputElementRef.current,
|
|
5221
5221
|
onMouseEnter: handlePopoverMouseEnter,
|
|
5222
5222
|
onMouseLeave: handlePopoverMouseLeave
|
|
5223
|
-
}, resultsPopoverElementRef) : filteredOptionsLen === 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
5224
|
-
Popover,
|
|
5225
|
-
{
|
|
5226
|
-
arrow: !1,
|
|
5227
|
-
constrainSize: !0,
|
|
5228
|
-
content,
|
|
5229
|
-
fallbackPlacements: AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS,
|
|
5230
|
-
matchReferenceWidth: !0,
|
|
5231
|
-
onMouseEnter: handlePopoverMouseEnter,
|
|
5232
|
-
onMouseLeave: handlePopoverMouseLeave,
|
|
5233
|
-
open: expanded,
|
|
5234
|
-
overflow: "auto",
|
|
5235
|
-
placement: AUTOCOMPLETE_POPOVER_PLACEMENT,
|
|
5236
|
-
portal: !0,
|
|
5237
|
-
radius,
|
|
5238
|
-
ref: resultsPopoverElementRef,
|
|
5239
|
-
referenceElement: inputElementRef.current,
|
|
5240
|
-
...popover
|
|
5241
|
-
}
|
|
5242
|
-
), [content, expanded, filteredOptionsLen, handlePopoverMouseEnter, handlePopoverMouseLeave, popover, radius, renderPopover]);
|
|
5223
|
+
}, resultsPopoverElementRef) : filteredOptionsLen === 0 ? null : /* @__PURE__ */ jsxRuntime.jsx(Popover, { arrow: !1, constrainSize: !0, content, fallbackPlacements: AUTOCOMPLETE_POPOVER_FALLBACK_PLACEMENTS, matchReferenceWidth: !0, onMouseEnter: handlePopoverMouseEnter, onMouseLeave: handlePopoverMouseLeave, open: expanded, overflow: "auto", placement: AUTOCOMPLETE_POPOVER_PLACEMENT, portal: !0, radius, ref: resultsPopoverElementRef, referenceElement: inputElementRef.current, ...popover }), [content, expanded, filteredOptionsLen, handlePopoverMouseEnter, handlePopoverMouseLeave, popover, radius, renderPopover]);
|
|
5243
5224
|
return /* @__PURE__ */ jsxRuntime.jsxs(Root$9, { "data-ui": "Autocomplete", onBlur: handleRootBlur, onFocus: handleRootFocus, onKeyDown: handleRootKeyDown, ref: rootElementRef, children: [
|
|
5244
5225
|
input,
|
|
5245
5226
|
results
|