@magicx-eng/ai-autocomplete-react 0.29.2 → 0.29.3

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/dist/index.mjs CHANGED
@@ -1286,6 +1286,7 @@ import{buildSubmitResult as nn,cellDay as rn,cellIso as sn,DATE_RANGE_META_END a
1286
1286
  gap: 2px;
1287
1287
  text-decoration: none;
1288
1288
  cursor: pointer;
1289
+ transition: opacity 150ms ease-out;
1289
1290
  }
1290
1291
 
1291
1292
  /* The two content groups carry a solid surface fill so the keyboard hint and
@@ -1320,17 +1321,7 @@ import{buildSubmitResult as nn,cellDay as rn,cellIso as sn,DATE_RANGE_META_END a
1320
1321
  gap: 4px;
1321
1322
  }
1322
1323
 
1323
- /* Hover dims the brand's text and badge rather than the link itself: the
1324
- link's opacity is pinned inline so a stylesheet can't fade the attribution
1325
- out (vanilla guardAttribution.ts), and its pill fill is the dropdown's own
1326
- surface, so dimming it never showed anyway. */
1327
- .aia-brand-Al-lR,
1328
- .aia-badge-Fk9vg {
1329
- transition: opacity 150ms ease-out;
1330
- }
1331
-
1332
- .aia-brandLink-r4f3R:hover .aia-brand-Al-lR,
1333
- .aia-brandLink-r4f3R:hover .aia-badge-Fk9vg {
1324
+ .aia-brandLink-r4f3R:hover {
1334
1325
  opacity: 0.7;
1335
1326
  }
1336
1327
 
@@ -1387,7 +1378,7 @@ import{buildSubmitResult as nn,cellDay as rn,cellIso as sn,DATE_RANGE_META_END a
1387
1378
  justify-content: flex-end;
1388
1379
  }
1389
1380
  }
1390
- `,document.head.appendChild(e)}var se={footer:"aia-footer-qQQ7x",hintGroup:"aia-hintGroup-ZzbPf",brandLink:"aia-brandLink-r4f3R",brand:"aia-brand-Al-lR",badge:"aia-badge-Fk9vg",key:"aia-key-Bz1H-",hint:"aia-hint-GKEOH",row:"aia-row-BgZ6Q"};import{jsx as Re,jsxs as je}from"react/jsx-runtime";function ut({isOptionHighlighted:e=!1,isInputEmpty:o=!1}){let{key:t,hint:n}=la(e,o),[r,i]=ca(ra);return da(()=>{i(sa())},[]),Re("footer",{className:se.footer,"data-aia-footer":"",children:je(Ae,{justify:"between",noWrap:!0,className:se.row,children:[je(Ae,{gap:"5px",className:se.hintGroup,children:[Re("kbd",{className:se.key,children:t}),Re("span",{className:se.hint,children:n})]}),je("a",{className:se.brandLink,href:r,target:"_blank",rel:"noopener noreferrer",children:[Re("span",{className:se.brand,children:"AI"}),Re("span",{className:se.badge,children:"Autocomplete"})]})]})})}if(typeof document<"u"&&!document.getElementById("ac-style-199d0432")){let e=document.createElement("style");e.id="ac-style-199d0432",e.textContent=`/* ParamPill (Figma "ParamPill") \u2014 unfilled suggestion pill: transparent fill,
1381
+ `,document.head.appendChild(e)}var se={footer:"aia-footer-qQQ7x",hintGroup:"aia-hintGroup-ZzbPf",brandLink:"aia-brandLink-r4f3R",key:"aia-key-Bz1H-",hint:"aia-hint-GKEOH",brand:"aia-brand-Al-lR",badge:"aia-badge-Fk9vg",row:"aia-row-BgZ6Q"};import{jsx as Re,jsxs as je}from"react/jsx-runtime";function ut({isOptionHighlighted:e=!1,isInputEmpty:o=!1}){let{key:t,hint:n}=la(e,o),[r,i]=ca(ra);return da(()=>{i(sa())},[]),Re("footer",{className:se.footer,"data-aia-footer":"",children:je(Ae,{justify:"between",noWrap:!0,className:se.row,children:[je(Ae,{gap:"5px",className:se.hintGroup,children:[Re("kbd",{className:se.key,children:t}),Re("span",{className:se.hint,children:n})]}),je("a",{className:se.brandLink,href:r,target:"_blank",rel:"noopener noreferrer",children:[Re("span",{className:se.brand,children:"AI"}),Re("span",{className:se.badge,children:"Autocomplete"})]})]})})}if(typeof document<"u"&&!document.getElementById("ac-style-199d0432")){let e=document.createElement("style");e.id="ac-style-199d0432",e.textContent=`/* ParamPill (Figma "ParamPill") \u2014 unfilled suggestion pill: transparent fill,
1391
1382
  no outline. ~28px via 6px padding + 14px text + the 1px border (border-box).
1392
1383
  The border is kept as a 1px transparent line so the box stays the same size
1393
1384
  as it was when the outline was dashed. */