@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024–2024 Sanity.io
3
+ Copyright (c) 2025 Sanity.io
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.d.mts CHANGED
@@ -121,6 +121,7 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
121
121
  | 'inputMode'
122
122
  | 'onChange'
123
123
  | 'onSelect'
124
+ | 'popover'
124
125
  | 'prefix'
125
126
  | 'ref'
126
127
  | 'role'
package/dist/index.d.ts CHANGED
@@ -121,6 +121,7 @@ export declare const Autocomplete: <Option extends BaseAutocompleteOption>(
121
121
  | 'inputMode'
122
122
  | 'onChange'
123
123
  | 'onSelect'
124
+ | 'popover'
124
125
  | 'prefix'
125
126
  | 'ref'
126
127
  | 'role'
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