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