@magicx-eng/ai-autocomplete-react 0.29.0 → 0.29.1

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/README.md CHANGED
@@ -819,7 +819,7 @@ Override on the container (via `className`). The variables are declared with `:w
819
819
  | `--aia-footer-gap` | `12px` | `12px` | Breathing room above the dropdown footer (badge / keyboard hints), additive to the dropdown's 8px section gap. |
820
820
  | `--aia-footer-chip-bg` | `--aia-surface` at 65% | `--aia-surface` at 65% | Fill behind the footer's keyboard hint and AI-Autocomplete badge. The option list scrolls under the footer, so this keeps both legible over the row passing behind them. `transparent` on the glass surface. |
821
821
  | `--aia-dropdown-bg` | — | — | Optional bg color the dropdown's "glass" rim shadow tints toward. Set this to the page background behind the dropdown so the bottom-corner glow blends seamlessly. |
822
- | `--aia-scrollbar-thumb` | `rgba(0, 0, 0, 0.3)` | `rgba(0, 0, 0, 0.3)` | Color of the option list's scrollbar thumb (Firefox + WebKit). |
822
+ | `--aia-scrollbar-thumb` | `rgba(0, 0, 0, 0.3)` | `rgba(0, 0, 0, 0.3)` | No longer used: the option list hides its scrollbar in every browser. Kept so existing overrides don't break. |
823
823
  | `--aia-streak-rgb` | `99, 102, 241` | `255, 255, 255` | Comma-separated RGB triplet tinting the datepicker's pressed cell, and its selected cell when `--aia-date-selected-bg` is unset. The today ring uses `--aia-date-today-ring`, not this. |
824
824
  | `--aia-product-card-width` | `116px` | `116px` | Width of a product card in the strip. The media tile is square, so this also sets its height. |
825
825
  | `--aia-product-gap` | `8px` | `8px` | Gap between product cards. |
package/dist/index.js CHANGED
@@ -1710,8 +1710,18 @@
1710
1710
  gap: var(--aia-grid-gap, 0);
1711
1711
  }
1712
1712
 
1713
- /* Scrollable variant \u2014 capped height with a styled thin scrollbar. Rows pack
1714
- from the top instead of stretching to fill the container. */
1713
+ /* Scrollable variant \u2014 capped height, rows packed from the top instead of
1714
+ stretching to fill the container.
1715
+
1716
+ The scrollbar is hidden in every engine, as the product strip's and the
1717
+ input's already are: the list stays scrollable by wheel, trackpad, touch
1718
+ and keyboard, and the dropdown's "more below" arrow says there is more.
1719
+ Styling it instead (a thin, tinted bar) looked right only in Chrome, whose
1720
+ macOS overlay scrollbar ignores the ::-webkit-scrollbar rules \u2014 Safari drew
1721
+ a permanent bar over the list.
1722
+
1723
+ overscroll-behavior: contain keeps a wheel or trackpad fling that runs past
1724
+ either end of the list from scrolling the page behind the dropdown. */
1715
1725
  .aia-grid[data-scroll] {
1716
1726
  grid-auto-rows: min-content;
1717
1727
  align-content: start;
@@ -1721,18 +1731,11 @@
1721
1731
  appearance.css for why. */
1722
1732
  max-height: var(--aia-grid-max-height, 120px);
1723
1733
  overflow-y: auto;
1724
- scrollbar-width: thin;
1725
- scrollbar-color: var(--aia-scrollbar-thumb, rgba(0, 0, 0, 0.3)) transparent;
1734
+ overscroll-behavior: contain;
1735
+ scrollbar-width: none;
1726
1736
  }
1727
1737
  .aia-grid[data-scroll]::-webkit-scrollbar {
1728
- width: 6px;
1729
- }
1730
- .aia-grid[data-scroll]::-webkit-scrollbar-track {
1731
- background: transparent;
1732
- }
1733
- .aia-grid[data-scroll]::-webkit-scrollbar-thumb {
1734
- background: var(--aia-scrollbar-thumb, rgba(0, 0, 0, 0.3));
1735
- border-radius: 3px;
1738
+ display: none;
1736
1739
  }
1737
1740
  `,document.head.appendChild(e)}var Et=require("react/jsx-runtime");function It({min:e="16rem",max:a,gap:t,scroll:n=!1,maxHeight:i,scrollResetKey:r,cols:o,template:d,innerRef:x,className:v,children:w,...S}){let f=(0,Xe.useRef)(null);(0,Xe.useLayoutEffect)(()=>{if(r===void 0)return;let D=f.current;D&&(D.scrollTop=0)},[r]);let y={"--aia-grid-min":e};return a&&(y["--aia-grid-max"]=a),t&&(y["--aia-grid-gap"]=t),i&&(y["--aia-grid-max-height"]=i),o&&(y.gridTemplateColumns=(0,St.optionsGridTemplateColumns)(o)),d&&(y.gridTemplateColumns=d),(0,Et.jsx)("div",{ref:D=>{f.current=D,x?.(D)},className:v?`aia-grid ${v}`:"aia-grid","data-scroll":n||void 0,style:y,...S,children:w})}var de=require("@magicx-eng/ai-autocomplete-vanilla"),le=require("react");if(typeof document<"u"&&!document.getElementById("ac-style-82820da7")){let e=document.createElement("style");e.id="ac-style-82820da7",e.textContent=`.aia-item-d4vpD {
1738
1741
  position: relative;