lkd-web-kit 0.6.0 → 0.6.2
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/components/InfinityLoader/index.cjs +1 -1
- package/dist/components/InfinityLoader/index.js +1 -1
- package/dist/components/SelectInfinity/index.cjs +1 -1
- package/dist/components/SelectInfinity/index.js +1 -1
- package/dist/hocs/withController.cjs +2 -1
- package/dist/hocs/withController.js +2 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ const InfinityLoader = ({
|
|
|
31
31
|
const showLoader = infinity.isLoading || infinity.isFetchingNextPage;
|
|
32
32
|
const showEndMessage = infinity.data && infinity.data.pages.length > 1 && !infinity.hasNextPage;
|
|
33
33
|
if (!showLoader && !showEndMessage) {
|
|
34
|
-
return
|
|
34
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref });
|
|
35
35
|
}
|
|
36
36
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
37
37
|
core.Center,
|
|
@@ -27,7 +27,7 @@ const InfinityLoader = ({
|
|
|
27
27
|
const showLoader = infinity.isLoading || infinity.isFetchingNextPage;
|
|
28
28
|
const showEndMessage = infinity.data && infinity.data.pages.length > 1 && !infinity.hasNextPage;
|
|
29
29
|
if (!showLoader && !showEndMessage) {
|
|
30
|
-
return
|
|
30
|
+
return /* @__PURE__ */ jsx("div", { ref });
|
|
31
31
|
}
|
|
32
32
|
return /* @__PURE__ */ jsx(
|
|
33
33
|
Center,
|
package/dist/index.d.ts
CHANGED
|
@@ -315,7 +315,7 @@ export declare function indexBy<T, K, C extends string>(arr: T[], getKey: (item:
|
|
|
315
315
|
|
|
316
316
|
export declare type IndexByResult<T> = Record<string, T | undefined>;
|
|
317
317
|
|
|
318
|
-
export declare const InfinityLoader: ({ root, infinity, rootMargin, endMessage, loaderProps, ...props }: InfinityLoaderProps) => JSX.Element
|
|
318
|
+
export declare const InfinityLoader: ({ root, infinity, rootMargin, endMessage, loaderProps, ...props }: InfinityLoaderProps) => JSX.Element;
|
|
319
319
|
|
|
320
320
|
export declare interface InfinityLoaderProps extends CenterProps {
|
|
321
321
|
infinity: InfiniteQueryHookResult<InfiniteData<{
|