@hitgrab/finder 0.1.10-alpha → 0.1.11-alpha

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.js CHANGED
@@ -323,7 +323,7 @@ function No({ children: c }) {
323
323
  }
324
324
  function Co({ children: c }) {
325
325
  const u = Nn();
326
- return u.hasMatches === !1 ? typeof c == "function" ? /* @__PURE__ */ Le.jsx(c, { pagination: u.pagination, context: u.context }) : c : null;
326
+ return u.isEmpty === !1 && u.hasMatches === !1 ? typeof c == "function" ? /* @__PURE__ */ Le.jsx(c, { pagination: u.pagination, context: u.context }) : c : null;
327
327
  }
328
328
  function Do({ children: c }) {
329
329
  const u = Nn();
@@ -19,7 +19,7 @@
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,Ee,le,nt,le),Ar[le+Ee]=!0)}if(le=null,ne!==void 0&&(i(ne),le=""+ne),A(N)&&(i(N.key),le=""+N.key),"key"in N){ne={};for(var Xn in N)Xn!=="key"&&(ne[Xn]=N[Xn])}else ne=N;return le&&O(ne,typeof S=="function"?S.displayName||S.name||"Unknown":S),k(S,le,we,St,_(),ne,$t,Kn)}function G(S){typeof S=="object"&&S!==null&&S.$$typeof===Ae&&S._store&&(S._store.validated=1)}var ae=J,Ae=Symbol.for("react.transitional.element"),Te=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),Re=Symbol.for("react.strict_mode"),Ce=Symbol.for("react.profiler"),mt=Symbol.for("react.consumer"),Le=Symbol.for("react.context"),ht=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),fn=Symbol.for("react.activity"),Si=Symbol.for("react.client.reference"),$n=ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ir=Object.prototype.hasOwnProperty,Ai=Array.isArray,En=console.createTask?console.createTask:function(){return null};ae={"react-stack-bottom-frame":function(S){return S()}};var mr,Sr={},on=ae["react-stack-bottom-frame"].bind(ae,T)(),Pt=En(l(T)),Ar={};Bn.Fragment=Ne,Bn.jsx=function(S,N,ne,Ee,St){var we=1e4>$n.recentlyCreatedOwnerStacks++;return K(S,N,ne,!1,Ee,St,we?Error("react-stack-top-frame"):on,we?En(l(S)):Pt)},Bn.jsxs=function(S,N,ne,Ee,St){var we=1e4>$n.recentlyCreatedOwnerStacks++;return K(S,N,ne,!0,Ee,St,we?Error("react-stack-top-frame"):on,we?En(l(S)):Pt)}}()),Bn}var Vu;function ta(){return Vu||(Vu=1,process.env.NODE_ENV==="production"?Tr.exports=jo():Tr.exports=ea()),Tr.exports}var Oe=ta();function Qu({children:h}){const u=nn();return u.isLoading?typeof h=="function"?Oe.jsx(h,{pagination:u.pagination,context:u.context}):h:null}function ju({children:h}){const u=nn();return u.isEmpty?typeof h=="function"?Oe.jsx(h,{pagination:u.pagination,context:u.context}):h:null}function es({children:h}){const u=nn();return u.hasMatches===!1?typeof h=="function"?Oe.jsx(h,{pagination:u.pagination,context:u.context}):h:null}function ts({children:h}){const u=nn();return u.hasMatches&&u.matches.items?typeof h=="function"?Oe.jsx(h,{items:u.matches.items,pagination:u.pagination,context:u.context}):h:null}function ns({children:h}){const u=nn();return u.hasMatches&&u.matches.groups?typeof h=="function"?Oe.jsx(h,{groups:u.matches.groups,pagination:u.pagination,context:u.context}):h:null}function Tn({children:h}){if(Object.values(h).length===0)throw new Error("No render props were found.");return[h.loading&&Oe.jsx(Qu,{children:h.loading},"loading"),h.empty&&Oe.jsx(ju,{children:h.empty},"empty"),h.noMatches&&Oe.jsx(es,{children:h.noMatches},"noMatches"),h.items&&Oe.jsx(ts,{children:h.items},"items"),h.groups&&Oe.jsx(ns,{children:h.groups},"groups")]}Tn.Loading=Qu,Tn.Empty=ju,Tn.NoMatches=es,Tn.Items=ts,Tn.Groups=ns;var Gn={exports:{}};/**
22
+ <%s key={someKey} {...props} />`,Ee,le,nt,le),Ar[le+Ee]=!0)}if(le=null,ne!==void 0&&(i(ne),le=""+ne),A(N)&&(i(N.key),le=""+N.key),"key"in N){ne={};for(var Xn in N)Xn!=="key"&&(ne[Xn]=N[Xn])}else ne=N;return le&&O(ne,typeof S=="function"?S.displayName||S.name||"Unknown":S),k(S,le,we,St,_(),ne,$t,Kn)}function G(S){typeof S=="object"&&S!==null&&S.$$typeof===Ae&&S._store&&(S._store.validated=1)}var ae=J,Ae=Symbol.for("react.transitional.element"),Te=Symbol.for("react.portal"),Ne=Symbol.for("react.fragment"),Re=Symbol.for("react.strict_mode"),Ce=Symbol.for("react.profiler"),mt=Symbol.for("react.consumer"),Le=Symbol.for("react.context"),ht=Symbol.for("react.forward_ref"),De=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),de=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),fn=Symbol.for("react.activity"),Si=Symbol.for("react.client.reference"),$n=ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ir=Object.prototype.hasOwnProperty,Ai=Array.isArray,En=console.createTask?console.createTask:function(){return null};ae={"react-stack-bottom-frame":function(S){return S()}};var mr,Sr={},on=ae["react-stack-bottom-frame"].bind(ae,T)(),Pt=En(l(T)),Ar={};Bn.Fragment=Ne,Bn.jsx=function(S,N,ne,Ee,St){var we=1e4>$n.recentlyCreatedOwnerStacks++;return K(S,N,ne,!1,Ee,St,we?Error("react-stack-top-frame"):on,we?En(l(S)):Pt)},Bn.jsxs=function(S,N,ne,Ee,St){var we=1e4>$n.recentlyCreatedOwnerStacks++;return K(S,N,ne,!0,Ee,St,we?Error("react-stack-top-frame"):on,we?En(l(S)):Pt)}}()),Bn}var Vu;function ta(){return Vu||(Vu=1,process.env.NODE_ENV==="production"?Tr.exports=jo():Tr.exports=ea()),Tr.exports}var Oe=ta();function Qu({children:h}){const u=nn();return u.isLoading?typeof h=="function"?Oe.jsx(h,{pagination:u.pagination,context:u.context}):h:null}function ju({children:h}){const u=nn();return u.isEmpty?typeof h=="function"?Oe.jsx(h,{pagination:u.pagination,context:u.context}):h:null}function es({children:h}){const u=nn();return u.isEmpty===!1&&u.hasMatches===!1?typeof h=="function"?Oe.jsx(h,{pagination:u.pagination,context:u.context}):h:null}function ts({children:h}){const u=nn();return u.hasMatches&&u.matches.items?typeof h=="function"?Oe.jsx(h,{items:u.matches.items,pagination:u.pagination,context:u.context}):h:null}function ns({children:h}){const u=nn();return u.hasMatches&&u.matches.groups?typeof h=="function"?Oe.jsx(h,{groups:u.matches.groups,pagination:u.pagination,context:u.context}):h:null}function Tn({children:h}){if(Object.values(h).length===0)throw new Error("No render props were found.");return[h.loading&&Oe.jsx(Qu,{children:h.loading},"loading"),h.empty&&Oe.jsx(ju,{children:h.empty},"empty"),h.noMatches&&Oe.jsx(es,{children:h.noMatches},"noMatches"),h.items&&Oe.jsx(ts,{children:h.items},"items"),h.groups&&Oe.jsx(ns,{children:h.groups},"groups")]}Tn.Loading=Qu,Tn.Empty=ju,Tn.NoMatches=es,Tn.Items=ts,Tn.Groups=ns;var Gn={exports:{}};/**
23
23
  * @license
24
24
  * Lodash <https://lodash.com/>
25
25
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitgrab/finder",
3
- "version": "0.1.10-alpha",
3
+ "version": "0.1.11-alpha",
4
4
  "description": "Headless datatables for things that aren't tables.",
5
5
  "type": "module",
6
6
  "files": [
@@ -25,7 +25,7 @@
25
25
  "scripts": {
26
26
  "dev": "vite",
27
27
  "build": "vite build && tsc --project tsconfig.production.json",
28
- "build:docs": "npm --prefix docusaurus run build && rm -r docs && cp -r ./docusaurus/build ./docs && mkdir ./docs/examples",
28
+ "build:docs": "npm --prefix docusaurus run build && rm -r docs && cp -r ./docusaurus/build ./docs && mkdir ./docs/examples && mkdir ./docs/examples/armory && mkdir ./docs/examples/shoes",
29
29
  "build:armory": "npm --prefix examples/pixel-armory run build && rm -r ./docs/examples/armory && cp -r ./examples/pixel-armory/dist ./docs/examples/armory",
30
30
  "build:shoes": "npm --prefix examples/shoe-store run build && rm -r ./docs/examples/shoes && cp -r ./examples/shoe-store/dist ./docs/examples/shoes",
31
31
  "test": "vitest"