@ericbutera/kaleido 0.8.0 → 0.8.4

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.
@@ -0,0 +1,37 @@
1
+ import { ComponentProps, ReactNode } from 'react';
2
+ type SpinnerSize = "xs" | "sm" | "md" | "lg";
3
+ export declare function LoadingSpinner({ size, className, ...props }: ComponentProps<"span"> & {
4
+ size?: SpinnerSize;
5
+ className?: string;
6
+ }): import("react").JSX.Element;
7
+ export declare function CenteredLoading({ size, className, }: {
8
+ size?: SpinnerSize;
9
+ className?: string;
10
+ }): import("react").JSX.Element;
11
+ export declare function ApiErrorAlert({ error, fallback, className, children, }: {
12
+ error?: unknown;
13
+ fallback?: string;
14
+ className?: string;
15
+ children?: ReactNode;
16
+ }): import("react").JSX.Element;
17
+ export declare function ApiMutationErrors({ errors, className, }: {
18
+ errors: Array<unknown | false | null | undefined>;
19
+ className?: string;
20
+ }): import("react").JSX.Element;
21
+ export declare function QueryStateCard({ children, className, bodyClassName, }: {
22
+ children: ReactNode;
23
+ className?: string;
24
+ bodyClassName?: string;
25
+ }): import("react").JSX.Element;
26
+ export declare function LoadingCard({ size, className, bodyClassName, }: {
27
+ size?: SpinnerSize;
28
+ className?: string;
29
+ bodyClassName?: string;
30
+ }): import("react").JSX.Element;
31
+ export declare function ErrorCard({ error, fallback, className, bodyClassName, }: {
32
+ error?: unknown;
33
+ fallback?: string;
34
+ className?: string;
35
+ bodyClassName?: string;
36
+ }): import("react").JSX.Element;
37
+ export {};
@@ -0,0 +1,6 @@
1
+ type ReactQueryActivityIndicatorProps = {
2
+ className?: string;
3
+ includeMutations?: boolean;
4
+ };
5
+ export default function ReactQueryActivityIndicator({ className, includeMutations, }: ReactQueryActivityIndicatorProps): import("react").JSX.Element | null;
6
+ export {};
@@ -4,3 +4,5 @@ export { default as GenericList, type Column } from './common/GenericList';
4
4
  export { default as ModalErrors } from './common/ModalErrors';
5
5
  export { default as Pagination } from './common/Pagination';
6
6
  export { default as QRCodeGenerator } from './common/QRCodeGenerator';
7
+ export { default as ReactQueryActivityIndicator } from './common/ReactQueryActivityIndicator';
8
+ export { ApiErrorAlert, ApiMutationErrors, CenteredLoading, ErrorCard, LoadingCard, LoadingSpinner, QueryStateCard, } from './common/QueryState';
package/dist/index.d.ts CHANGED
@@ -5,12 +5,14 @@ export * as components from './components';
5
5
  export { default as GenericList } from './components/common/GenericList';
6
6
  export type { Column, GenericListProps } from './components/common/GenericList';
7
7
  export { default as Pagination } from './components/common/Pagination';
8
+ export { default as ReactQueryActivityIndicator } from './components/common/ReactQueryActivityIndicator';
9
+ export { ApiErrorAlert, ApiMutationErrors, CenteredLoading, ErrorCard, LoadingCard, LoadingSpinner, QueryStateCard, } from './components/common/QueryState';
8
10
  export { default as SortHeader } from './components/common/SortHeader';
9
11
  export { configureKaleido, type KaleidoConfig, type KaleidoFeature, type KaleidoFeatureAdapters, } from './configureKaleido';
10
12
  export * as featureFlags from './featureFlags';
11
13
  export { default, default as kaleido, type KaleidoAppConfig, type KaleidoRuntimeConfig, type KaleidoToggleConfig, } from './kaleido';
12
14
  export { createClient, createFetchClient, fetchWithCredentials, handleApiError, newQueryClient, } from './lib/apiHelpers';
13
- export type { ApiError } from './lib/apiHelpers';
15
+ export type { ApiError, KaleidoQueryClientOptions } from './lib/apiHelpers';
14
16
  export { buildApiQuery, parseParams, toSearchParams, } from './lib/params/paramsUtils';
15
17
  export { validateParams } from './lib/params/validateParams';
16
18
  export * from './openapi';