@factorialco/f0-react 1.304.1 → 1.305.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.
@@ -1654,7 +1654,7 @@ declare type Content = (ComponentProps<typeof DataList.Item> & {
1654
1654
  type: "dot-tag";
1655
1655
  });
1656
1656
 
1657
- declare type ContentPadding = "sm" | "md";
1657
+ declare type ContentPadding = (typeof modalContentPaddings)[number];
1658
1658
 
1659
1659
  declare type CopyActionType = {
1660
1660
  type: "copy";
@@ -3979,7 +3979,15 @@ declare interface MetadataProps {
3979
3979
 
3980
3980
  export declare const MobileDropdown: ({ items, children }: DropdownProps) => JSX_2.Element;
3981
3981
 
3982
- declare type ModalPosition = "center" | "left" | "right" | "fullscreen";
3982
+ declare const modalContentPaddings: readonly ["sm", "md"];
3983
+
3984
+ declare type ModalPosition = (typeof modalPositions)[number];
3985
+
3986
+ declare const modalPositions: readonly ["center", "left", "right", "fullscreen"];
3987
+
3988
+ declare type ModalWidth = (typeof modalWidths)[number];
3989
+
3990
+ declare const modalWidths: readonly ["sm", "md", "lg"];
3983
3991
 
3984
3992
  declare const moduleAvatarVariants: (props?: ({
3985
3993
  size?: "lg" | "md" | "sm" | "xs" | "xxs" | undefined;
@@ -4512,10 +4520,11 @@ declare type OneModalFooterProps = {
4512
4520
  children: React.ReactNode;
4513
4521
  };
4514
4522
 
4515
- declare const OneModalHeader: ({ title, module, otherActions, }: OneModalHeaderProps) => JSX_2.Element;
4523
+ declare const OneModalHeader: ({ title, description, module, otherActions, }: OneModalHeaderProps) => JSX_2.Element;
4516
4524
 
4517
4525
  declare type OneModalHeaderProps = {
4518
4526
  title?: string;
4527
+ description?: string;
4519
4528
  /**
4520
4529
  * Module configuration for the header. Only works when modal position is set to "right".
4521
4530
  * Displays module icon and name in the header.
@@ -4537,7 +4546,10 @@ declare type OneModalProps = {
4537
4546
  asBottomSheetInMobile?: boolean;
4538
4547
  /** the padding of internal content areas (header, content, footer) */
4539
4548
  contentPadding?: ContentPadding;
4549
+ /** The position of the modal */
4540
4550
  position?: ModalPosition;
4551
+ /** The width of the modal. Only applies to center position but we can NOT use narrowing as position undefined is valid */
4552
+ width?: ModalWidth;
4541
4553
  /** Custom content to render in the modal. Only accepts OneModal.Header and OneModal.Content components */
4542
4554
  children: ReactElement<ComponentProps<typeof OneModalHeader> | ComponentProps<typeof OneModalContent>> | ReactElement<ComponentProps<typeof OneModalHeader> | ComponentProps<typeof OneModalContent>>[];
4543
4555
  } & Partial<Pick<TabsProps, "tabs" | "activeTabId" | "setActiveTabId">>;
@@ -6434,6 +6446,11 @@ declare module "@tiptap/core" {
6434
6446
  }
6435
6447
 
6436
6448
 
6449
+ declare namespace Calendar {
6450
+ var displayName: string;
6451
+ }
6452
+
6453
+
6437
6454
  declare module "@tiptap/core" {
6438
6455
  interface Commands<ReturnType> {
6439
6456
  moodTracker: {
@@ -6441,8 +6458,3 @@ declare module "@tiptap/core" {
6441
6458
  };
6442
6459
  }
6443
6460
  }
6444
-
6445
-
6446
- declare namespace Calendar {
6447
- var displayName: string;
6448
- }