@sesionario/blocks 1.29.0 → 1.30.0
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/charts.cjs +1 -0
- package/dist/charts.d.cts +20 -1
- package/dist/charts.d.ts +20 -1
- package/dist/charts.js +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -2
- package/dist/index.d.ts +7 -2
- package/dist/index.js.map +1 -1
- package/dist/pdf.cjs.map +1 -1
- package/dist/pdf.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FormEvent, KeyboardEvent, RefObject, CSSProperties, ReactNode, ComponentProps, PointerEvent, Dispatch, SetStateAction, SVGProps } from 'react';
|
|
3
|
-
import { LucideIcon } from 'lucide-react';
|
|
4
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
4
|
import { VariantProps } from 'class-variance-authority';
|
|
6
5
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
@@ -61,11 +60,17 @@ declare function ErrorState({ title, description, action, className, }: {
|
|
|
61
60
|
action?: React.ReactNode;
|
|
62
61
|
className?: string;
|
|
63
62
|
}): React.JSX.Element;
|
|
63
|
+
/** Accept any icon component with a className prop — avoids LucideIcon
|
|
64
|
+
* version skew between blocks peers and consuming apps. */
|
|
65
|
+
type EmptyStateIcon = React.ComponentType<{
|
|
66
|
+
className?: string;
|
|
67
|
+
"aria-hidden"?: boolean | "true" | "false";
|
|
68
|
+
}>;
|
|
64
69
|
type EmptyStateProps = {
|
|
65
70
|
title: string;
|
|
66
71
|
description?: string;
|
|
67
72
|
action?: React.ReactNode;
|
|
68
|
-
icon?:
|
|
73
|
+
icon?: EmptyStateIcon;
|
|
69
74
|
variant?: "default" | "compact";
|
|
70
75
|
className?: string;
|
|
71
76
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FormEvent, KeyboardEvent, RefObject, CSSProperties, ReactNode, ComponentProps, PointerEvent, Dispatch, SetStateAction, SVGProps } from 'react';
|
|
3
|
-
import { LucideIcon } from 'lucide-react';
|
|
4
3
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
4
|
import { VariantProps } from 'class-variance-authority';
|
|
6
5
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
@@ -61,11 +60,17 @@ declare function ErrorState({ title, description, action, className, }: {
|
|
|
61
60
|
action?: React.ReactNode;
|
|
62
61
|
className?: string;
|
|
63
62
|
}): React.JSX.Element;
|
|
63
|
+
/** Accept any icon component with a className prop — avoids LucideIcon
|
|
64
|
+
* version skew between blocks peers and consuming apps. */
|
|
65
|
+
type EmptyStateIcon = React.ComponentType<{
|
|
66
|
+
className?: string;
|
|
67
|
+
"aria-hidden"?: boolean | "true" | "false";
|
|
68
|
+
}>;
|
|
64
69
|
type EmptyStateProps = {
|
|
65
70
|
title: string;
|
|
66
71
|
description?: string;
|
|
67
72
|
action?: React.ReactNode;
|
|
68
|
-
icon?:
|
|
73
|
+
icon?: EmptyStateIcon;
|
|
69
74
|
variant?: "default" | "compact";
|
|
70
75
|
className?: string;
|
|
71
76
|
};
|