@factorialco/f0-react 1.318.0 → 1.319.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.
@@ -860,12 +860,13 @@ declare type BaseFilterDefinition<T extends FilterTypeKey> = {
860
860
  hideSelector?: boolean;
861
861
  };
862
862
 
863
- declare function BaseHeader({ title, avatar, description, primaryAction, secondaryActions, otherActions, status, metadata, }: BaseHeaderProps_2): JSX_2.Element;
863
+ declare function BaseHeader({ title, avatar, deactivated, description, primaryAction, secondaryActions, otherActions, status, metadata, }: BaseHeaderProps_2): JSX_2.Element;
864
864
 
865
865
  declare type BaseHeaderProps = ComponentProps<typeof BaseHeader>;
866
866
 
867
867
  declare interface BaseHeaderProps_2 {
868
868
  title: string;
869
+ deactivated?: boolean;
869
870
  avatar?: {
870
871
  type: "generic";
871
872
  name: string;
@@ -2762,6 +2763,7 @@ export declare type EntitySelectEntity = {
2762
2763
  avatar?: string;
2763
2764
  expanded?: boolean;
2764
2765
  searchKeys?: string[];
2766
+ deactivated?: boolean;
2765
2767
  subItems?: EntitySelectSubEntity[];
2766
2768
  };
2767
2769
 
@@ -4037,14 +4039,6 @@ declare interface MetadataProps {
4037
4039
 
4038
4040
  export declare const MobileDropdown: ({ items, children }: DropdownProps) => JSX_2.Element;
4039
4041
 
4040
- declare type ModalPosition = (typeof modalPositions)[number];
4041
-
4042
- declare const modalPositions: readonly ["center", "left", "right", "fullscreen"];
4043
-
4044
- declare type ModalWidth = (typeof modalWidths)[number];
4045
-
4046
- declare const modalWidths: readonly ["sm", "md", "lg"];
4047
-
4048
4042
  declare const moduleAvatarVariants: (props?: ({
4049
4043
  size?: "lg" | "md" | "sm" | "xs" | "xxs" | undefined;
4050
4044
  } & ({
@@ -4561,61 +4555,6 @@ declare interface OneIconProps extends SVGProps<SVGSVGElement> {
4561
4555
  size?: "xs" | "sm" | "md" | "lg";
4562
4556
  }
4563
4557
 
4564
- export declare const OneModal: OneModalComponent;
4565
-
4566
- declare const OneModal_2: FC<OneModalProps>;
4567
-
4568
- declare type OneModalComponent = typeof OneModal_2 & {
4569
- Header: typeof OneModalHeader;
4570
- Content: typeof OneModalContent;
4571
- Footer: typeof OneModalFooter;
4572
- };
4573
-
4574
- declare const OneModalContent: ({ tabs, activeTabId, setActiveTabId, withPadding, children, }: OneModalContentProps) => JSX_2.Element;
4575
-
4576
- declare type OneModalContentProps = {
4577
- children: React.ReactNode;
4578
- withPadding?: boolean;
4579
- } & Partial<Pick<TabsProps, "tabs" | "activeTabId" | "setActiveTabId">>;
4580
-
4581
- declare const OneModalFooter: ({ children }: OneModalFooterProps) => JSX_2.Element;
4582
-
4583
- declare type OneModalFooterProps = {
4584
- children: React.ReactNode;
4585
- };
4586
-
4587
- declare const OneModalHeader: ({ title, description, module, otherActions, }: OneModalHeaderProps) => JSX_2.Element;
4588
-
4589
- declare type OneModalHeaderProps = {
4590
- title?: string;
4591
- description?: string;
4592
- /**
4593
- * Module configuration for the header. Only works when modal position is set to "right".
4594
- * Displays module icon and name in the header.
4595
- */
4596
- module?: {
4597
- id: ModuleId;
4598
- label: string;
4599
- href: string;
4600
- };
4601
- otherActions?: DropdownInternalProps["items"];
4602
- };
4603
-
4604
- declare type OneModalProps = {
4605
- /** Whether the modal is open */
4606
- isOpen: boolean;
4607
- /** Callback when modal is closed */
4608
- onClose: () => void;
4609
- /** Whether to render the modal as a bottom sheet on mobile */
4610
- asBottomSheetInMobile?: boolean;
4611
- /** The position of the modal */
4612
- position?: ModalPosition;
4613
- /** The width of the modal. Only applies to center position but we can NOT use narrowing as position undefined is valid */
4614
- width?: ModalWidth;
4615
- /** Custom content to render in the modal. Only accepts OneModal.Header and OneModal.Content components */
4616
- children: ReactElement<ComponentProps<typeof OneModalHeader> | ComponentProps<typeof OneModalContent>> | ReactElement<ComponentProps<typeof OneModalHeader> | ComponentProps<typeof OneModalContent>>[];
4617
- } & Partial<Pick<TabsProps, "tabs" | "activeTabId" | "setActiveTabId">>;
4618
-
4619
4558
  export declare function OnePagination({ totalPages, currentPage, onPageChange, showControls, ariaLabel, visibleRange, hasNextPage, disabled, }: OnePaginationProps): JSX_2.Element;
4620
4559
 
4621
4560
  declare interface OnePaginationProps {
@@ -5041,7 +4980,7 @@ declare type PropertyDefinition_2<T> = {
5041
4980
  hide?: (item: T) => boolean;
5042
4981
  };
5043
4982
 
5044
- declare type Props = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status">;
4983
+ declare type Props = {} & Pick<BaseHeaderProps, "avatar" | "title" | "description" | "primaryAction" | "secondaryActions" | "otherActions" | "metadata" | "status" | "deactivated">;
5045
4984
 
5046
4985
  declare type Props_2 = {
5047
4986
  /** Main heading text */
@@ -5211,7 +5150,7 @@ declare type RendererDefinition = ValueDisplayRendererDefinition;
5211
5150
 
5212
5151
  export declare type ResolvedRecordType<R> = R extends RecordType ? R : RecordType;
5213
5152
 
5214
- export declare const ResourceHeader: ({ avatar, title, description, primaryAction, secondaryActions, otherActions, status, metadata, }: Props) => JSX_2.Element;
5153
+ export declare const ResourceHeader: ({ avatar, title, description, primaryAction, secondaryActions, otherActions, status, metadata, deactivated, }: Props) => JSX_2.Element;
5215
5154
 
5216
5155
  export declare type resultType = {
5217
5156
  value: string | null;
@@ -6466,28 +6405,11 @@ declare global {
6466
6405
  }
6467
6406
  }
6468
6407
 
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
-
6486
6408
 
6487
6409
  declare module "@tiptap/core" {
6488
6410
  interface Commands<ReturnType> {
6489
- aiBlock: {
6490
- insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
6411
+ liveCompanion: {
6412
+ insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
6491
6413
  };
6492
6414
  }
6493
6415
  }
@@ -6495,8 +6417,8 @@ declare module "@tiptap/core" {
6495
6417
 
6496
6418
  declare module "@tiptap/core" {
6497
6419
  interface Commands<ReturnType> {
6498
- liveCompanion: {
6499
- insertLiveCompanion: (data: LiveCompanionData, config?: LiveCompanionConfig) => ReturnType;
6420
+ aiBlock: {
6421
+ insertAIBlock: (data: AIBlockData, config: AIBlockConfigWithLabels) => ReturnType;
6500
6422
  };
6501
6423
  }
6502
6424
  }
@@ -6510,9 +6432,21 @@ declare module "@tiptap/core" {
6510
6432
  }
6511
6433
  }
6512
6434
 
6513
-
6514
- declare namespace Calendar {
6515
- var displayName: string;
6435
+ declare module "gridstack" {
6436
+ interface GridStackWidget {
6437
+ id?: string;
6438
+ allowedSizes?: Array<{
6439
+ w: number;
6440
+ h: number;
6441
+ }>;
6442
+ meta?: Record<string, unknown>;
6443
+ }
6444
+ interface GridStackNode {
6445
+ allowedSizes?: Array<{
6446
+ w: number;
6447
+ h: number;
6448
+ }>;
6449
+ }
6516
6450
  }
6517
6451
 
6518
6452
 
@@ -6523,3 +6457,8 @@ declare module "@tiptap/core" {
6523
6457
  };
6524
6458
  }
6525
6459
  }
6460
+
6461
+
6462
+ declare namespace Calendar {
6463
+ var displayName: string;
6464
+ }