@delightui/components 0.1.95 → 0.1.97

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,3 @@
1
+ import { RenderStateViewProps } from "./RenderStateView.types";
2
+ declare const RenderStateView: <T = unknown>(props: RenderStateViewProps<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export default RenderStateView;
@@ -0,0 +1,9 @@
1
+ export type RenderStateViewProps<T = unknown> = {
2
+ data: T | null | undefined;
3
+ isLoading: boolean;
4
+ Filled: React.ComponentType<{
5
+ data: T;
6
+ }>;
7
+ Empty: React.ComponentType;
8
+ Loading: React.ComponentType;
9
+ };
@@ -0,0 +1,2 @@
1
+ export { default as RenderStateView } from "./RenderStateView";
2
+ export type { RenderStateViewProps } from "./RenderStateView.types";
@@ -0,0 +1,6 @@
1
+ import { RenderStateViewProps } from "./RenderStateView.types";
2
+ export declare const usePresenter: <T = unknown>(props: RenderStateViewProps<T>) => {
3
+ showLoading: boolean;
4
+ showEmpty: boolean;
5
+ showFilled: boolean;
6
+ };
@@ -1,5 +1,7 @@
1
1
  export { ConditionalView } from './ConditionalView';
2
2
  export { WrapTextNodes } from './WrapTextNodes';
3
+ export { RenderStateView } from './RenderStateView';
3
4
  export * from './ConditionalView';
4
5
  export * from './WrapTextNodes';
6
+ export * from './RenderStateView';
5
7
  export * from './utils';