monica-alexandria 3.6.13 → 3.6.14

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.es.js CHANGED
@@ -841,7 +841,7 @@ import e,{useState as t,createContext as n,useContext as r,useEffect as a}from"r
841
841
  width: 3rem;
842
842
  fill: var(--greyDark);
843
843
  }
844
- `,$t=n=>{let r={includeScore:!0,keys:n.fileKeys};console.log(r);const[i,o]=t([]),[c,l]=t([]);a((()=>{o(n.file)}),[n.file]);const[u,s]=t({query:"",file:i,notfoundmessage:!1,defaultValue:n.defaultValue});return a((()=>{r.minMatchCharLength=n.minMatchCharacters?n.minMatchCharacters:1;const e=new vt(i,r);let t=u.query?e.search(u.query):i;n.displayResults(u.query?.length?t:[]),l(t)}),[u]),console.log("Alexandria results:",c),e.createElement(Lt,null,e.createElement(Ct,null,e.createElement(At,{placeholder:n.placeholder,onChange:e=>{const{target:t={}}=e,{value:r=""}=t;let a=Mt.toGreek(r);s({...u,query:n.sanitize?a:r})},defaultValue:u.defaultValue,disabled:n.isLoading}),e.createElement(St,null,n.placeholder),e.createElement(It,null,e.createElement(d,{Icon:"Search"}))))},Rt=i.div`
844
+ `,$t=n=>{let r={includeScore:!0,keys:n.fileKeys};console.log(r);const[i,o]=t([]),[c,l]=t([]);a((()=>{o(n.file)}),[n.file]);const[u,s]=t({query:"",file:i,notfoundmessage:!1,defaultValue:n.defaultValue});return a((()=>{r.minMatchCharLength=n.minMatchCharacters?n.minMatchCharacters:1;const e=new vt(i,r);let t=u.query?e.search(u.query):i;n.displayResults(u.query?.length?t:[]),l(t)}),[u]),e.createElement(Lt,null,e.createElement(Ct,null,e.createElement(At,{placeholder:n.placeholder,onChange:e=>{const{target:t={}}=e,{value:r=""}=t;let a=Mt.toGreek(r);s({...u,query:n.sanitize?a:r})},defaultValue:u.defaultValue,disabled:n.isLoading}),e.createElement(St,null,n.placeholder),e.createElement(It,null,e.createElement(d,{Icon:"Search"}))))},Rt=i.div`
845
845
  display: flex;
846
846
  gap: 1rem;
847
847
  align-items: center;