@sesionario/blocks 1.28.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/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?: LucideIcon;
73
+ icon?: EmptyStateIcon;
69
74
  variant?: "default" | "compact";
70
75
  className?: string;
71
76
  };
@@ -262,7 +267,7 @@ declare function ExpandableText({ children, expandLabel, collapseLabel, classNam
262
267
  declare function Empty({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
263
268
  declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
264
269
  declare const emptyMediaVariants: (props?: ({
265
- variant?: "icon" | "default" | null | undefined;
270
+ variant?: "default" | "icon" | null | undefined;
266
271
  } & class_variance_authority_types.ClassProp) | undefined) => string;
267
272
  declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): React.JSX.Element;
268
273
  declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
@@ -1424,7 +1429,7 @@ declare function MessageFooter({ className, ...props }: React.ComponentProps<"di
1424
1429
 
1425
1430
  declare function BubbleGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
1426
1431
  declare const bubbleVariants: (props?: ({
1427
- variant?: "outline" | "default" | "destructive" | "secondary" | "ghost" | "muted" | "tinted" | null | undefined;
1432
+ variant?: "default" | "outline" | "secondary" | "destructive" | "ghost" | "muted" | "tinted" | null | undefined;
1428
1433
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1429
1434
  declare function Bubble({ variant, align, className, ...props }: React.ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & {
1430
1435
  align?: "start" | "end";
@@ -1438,7 +1443,7 @@ declare function BubbleReactions({ side, align, className, ...props }: React.Com
1438
1443
  }): React.JSX.Element;
1439
1444
 
1440
1445
  declare const markerVariants: (props?: ({
1441
- variant?: "border" | "separator" | "default" | null | undefined;
1446
+ variant?: "default" | "border" | "separator" | null | undefined;
1442
1447
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1443
1448
  declare function Marker({ className, variant, asChild, ...props }: React.ComponentProps<"div"> & VariantProps<typeof markerVariants> & {
1444
1449
  asChild?: boolean;
@@ -1447,8 +1452,8 @@ declare function MarkerIcon({ className, ...props }: React.ComponentProps<"span"
1447
1452
  declare function MarkerContent({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
1448
1453
 
1449
1454
  declare const buttonVariants: (props?: ({
1450
- variant?: "link" | "outline" | "default" | "destructive" | "secondary" | "ghost" | null | undefined;
1451
- size?: "icon" | "default" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
1455
+ variant?: "link" | "default" | "outline" | "secondary" | "destructive" | "ghost" | null | undefined;
1456
+ size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
1452
1457
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1453
1458
  declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
1454
1459
  asChild?: boolean;
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?: LucideIcon;
73
+ icon?: EmptyStateIcon;
69
74
  variant?: "default" | "compact";
70
75
  className?: string;
71
76
  };
@@ -262,7 +267,7 @@ declare function ExpandableText({ children, expandLabel, collapseLabel, classNam
262
267
  declare function Empty({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
263
268
  declare function EmptyHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
264
269
  declare const emptyMediaVariants: (props?: ({
265
- variant?: "icon" | "default" | null | undefined;
270
+ variant?: "default" | "icon" | null | undefined;
266
271
  } & class_variance_authority_types.ClassProp) | undefined) => string;
267
272
  declare function EmptyMedia({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof emptyMediaVariants>): React.JSX.Element;
268
273
  declare function EmptyTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
@@ -1424,7 +1429,7 @@ declare function MessageFooter({ className, ...props }: React.ComponentProps<"di
1424
1429
 
1425
1430
  declare function BubbleGroup({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
1426
1431
  declare const bubbleVariants: (props?: ({
1427
- variant?: "outline" | "default" | "destructive" | "secondary" | "ghost" | "muted" | "tinted" | null | undefined;
1432
+ variant?: "default" | "outline" | "secondary" | "destructive" | "ghost" | "muted" | "tinted" | null | undefined;
1428
1433
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1429
1434
  declare function Bubble({ variant, align, className, ...props }: React.ComponentProps<"div"> & VariantProps<typeof bubbleVariants> & {
1430
1435
  align?: "start" | "end";
@@ -1438,7 +1443,7 @@ declare function BubbleReactions({ side, align, className, ...props }: React.Com
1438
1443
  }): React.JSX.Element;
1439
1444
 
1440
1445
  declare const markerVariants: (props?: ({
1441
- variant?: "border" | "separator" | "default" | null | undefined;
1446
+ variant?: "default" | "border" | "separator" | null | undefined;
1442
1447
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1443
1448
  declare function Marker({ className, variant, asChild, ...props }: React.ComponentProps<"div"> & VariantProps<typeof markerVariants> & {
1444
1449
  asChild?: boolean;
@@ -1447,8 +1452,8 @@ declare function MarkerIcon({ className, ...props }: React.ComponentProps<"span"
1447
1452
  declare function MarkerContent({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
1448
1453
 
1449
1454
  declare const buttonVariants: (props?: ({
1450
- variant?: "link" | "outline" | "default" | "destructive" | "secondary" | "ghost" | null | undefined;
1451
- size?: "icon" | "default" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
1455
+ variant?: "link" | "default" | "outline" | "secondary" | "destructive" | "ghost" | null | undefined;
1456
+ size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
1452
1457
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1453
1458
  declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
1454
1459
  asChild?: boolean;