@factorialco/f0-react 1.316.4 → 1.317.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.
@@ -1266,6 +1266,14 @@ declare type CardAvatarVariant = AvatarVariant | {
1266
1266
  */
1267
1267
  declare type CardCollectionProps<Record extends RecordType, Filters extends FiltersDefinition, Sortings extends SortingsDefinition, Summaries extends SummariesDefinition, ItemActions extends ItemActionsDefinition<Record>, NavigationFilters extends NavigationFiltersDefinition, Grouping extends GroupingDefinition<Record>> = CollectionProps<Record, Filters, Sortings, Summaries, ItemActions, NavigationFilters, Grouping, CardVisualizationOptions<Record, Filters, Sortings>>;
1268
1268
 
1269
+ declare type CardImageFit = (typeof cardImageFits)[number];
1270
+
1271
+ declare const cardImageFits: readonly ["contain", "cover", "fit-width", "fit-height", "scale-down"];
1272
+
1273
+ declare type CardImageSize = (typeof cardImageSizes)[number];
1274
+
1275
+ declare const cardImageSizes: readonly ["xs", "sm", "md", "lg", "xl"];
1276
+
1269
1277
  /**
1270
1278
  * Card metadata property renderers.
1271
1279
  * Each metadata item consists of an icon and a property with its data.
@@ -1309,6 +1317,9 @@ declare type CardVisualizationOptions<T, _Filters extends FiltersDefinition, _So
1309
1317
  description?: (record: T) => string;
1310
1318
  avatar?: (record: T) => CardAvatarVariant;
1311
1319
  image?: (record: T) => string;
1320
+ imageFit?: CardImageFit;
1321
+ imageSize?: CardImageSize;
1322
+ blurredBackground?: boolean;
1312
1323
  compact?: boolean;
1313
1324
  };
1314
1325
 
@@ -6455,6 +6466,23 @@ declare global {
6455
6466
  }
6456
6467
  }
6457
6468
 
6469
+ declare module "gridstack" {
6470
+ interface GridStackWidget {
6471
+ id?: string;
6472
+ allowedSizes?: Array<{
6473
+ w: number;
6474
+ h: number;
6475
+ }>;
6476
+ meta?: Record<string, unknown>;
6477
+ }
6478
+ interface GridStackNode {
6479
+ allowedSizes?: Array<{
6480
+ w: number;
6481
+ h: number;
6482
+ }>;
6483
+ }
6484
+ }
6485
+
6458
6486
 
6459
6487
  declare module "@tiptap/core" {
6460
6488
  interface Commands<ReturnType> {
@@ -6482,21 +6510,9 @@ declare module "@tiptap/core" {
6482
6510
  }
6483
6511
  }
6484
6512
 
6485
- declare module "gridstack" {
6486
- interface GridStackWidget {
6487
- id?: string;
6488
- allowedSizes?: Array<{
6489
- w: number;
6490
- h: number;
6491
- }>;
6492
- meta?: Record<string, unknown>;
6493
- }
6494
- interface GridStackNode {
6495
- allowedSizes?: Array<{
6496
- w: number;
6497
- h: number;
6498
- }>;
6499
- }
6513
+
6514
+ declare namespace Calendar {
6515
+ var displayName: string;
6500
6516
  }
6501
6517
 
6502
6518
 
@@ -6507,8 +6523,3 @@ declare module "@tiptap/core" {
6507
6523
  };
6508
6524
  }
6509
6525
  }
6510
-
6511
-
6512
- declare namespace Calendar {
6513
- var displayName: string;
6514
- }