@factorialco/f0-react 1.293.0 → 1.294.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.
@@ -121,6 +121,10 @@ declare type ActionButtonProps = ActionBaseProps & {
121
121
  onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
122
122
  };
123
123
 
124
+ declare type ActionButtonVariant = (typeof actionButtonVariants)[number];
125
+
126
+ declare const actionButtonVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote", "ai"];
127
+
124
128
  declare interface ActionCommonProps {
125
129
  /**
126
130
  * Tooltip
@@ -307,7 +311,7 @@ declare type actionType_2 = {
307
311
 
308
312
  declare type ActionVariant = (typeof actionVariants)[number];
309
313
 
310
- declare const actionVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote", "link", "unstyled", "mention"];
314
+ declare const actionVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote", "ai", "link", "unstyled", "mention"];
311
315
 
312
316
  export declare const ActivityItemList: (({ items, loadingMoreItems, onClickItem, onEndReached, onEndReachedItemsThreshold, }: ActivityItemListProps) => default_2.JSX.Element) & {
313
317
  Skeleton: () => default_2.JSX.Element;
@@ -1042,7 +1046,7 @@ declare type ButtonDropdownItem<T = string> = {
1042
1046
  description?: string;
1043
1047
  };
1044
1048
 
1045
- declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "className" | "pressed" | "compact" | "variant" | "tooltip"> & DataAttributes & {
1049
+ declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "className" | "pressed" | "compact" | "tooltip"> & DataAttributes & {
1046
1050
  /**
1047
1051
  * The aria-label of the button if not provided title or label will be used.
1048
1052
  */
@@ -1050,7 +1054,7 @@ declare type ButtonInternalProps = Pick<ActionProps, "size" | "disabled" | "clas
1050
1054
  /**
1051
1055
  * The variant of the button.
1052
1056
  */
1053
- variant?: ButtonVariant;
1057
+ variant?: ActionButtonVariant;
1054
1058
  /**
1055
1059
  * Callback fired when the button is clicked. Supports async functions for loading state.
1056
1060
  */
@@ -1136,9 +1140,7 @@ declare type ButtonType = (typeof buttonTypes)[number];
1136
1140
 
1137
1141
  declare const buttonTypes: readonly ["button", "submit", "reset"];
1138
1142
 
1139
- declare type ButtonVariant = (typeof buttonVariants)[number];
1140
-
1141
- declare const buttonVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote"];
1143
+ declare type ButtonVariant = Exclude<(typeof actionButtonVariants)[number], "ai">;
1142
1144
 
1143
1145
  export declare type CalendarDate = {
1144
1146
  day: number;
@@ -2854,7 +2856,9 @@ declare type F0AvatarTeamProps = {
2854
2856
  badge?: AvatarBadge;
2855
2857
  } & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
2856
2858
 
2857
- declare type F0ButtonProps = Omit<ButtonInternalProps, (typeof privateProps)[number]>;
2859
+ declare type F0ButtonProps = Omit<ButtonInternalProps, (typeof privateProps)[number] | "variant"> & {
2860
+ variant?: Exclude<ButtonInternalProps["variant"], "ai">;
2861
+ };
2858
2862
 
2859
2863
  export declare const F0Callout: ForwardRefExoticComponent<CalloutInternalProps & RefAttributes<HTMLDivElement>> & {
2860
2864
  Skeleton: ({ compact, variant }: CalloutSkeletonProps) => JSX_2.Element;
@@ -6282,6 +6286,31 @@ declare global {
6282
6286
  }
6283
6287
 
6284
6288
 
6289
+ declare module "gridstack" {
6290
+ interface GridStackWidget {
6291
+ id?: string;
6292
+ allowedSizes?: Array<{
6293
+ w: number;
6294
+ h: number;
6295
+ }>;
6296
+ renderFn?: () => React.ReactElement | null;
6297
+ meta?: Record<string, unknown>;
6298
+ }
6299
+ interface GridStackNode {
6300
+ id?: string;
6301
+ w?: number;
6302
+ h?: number;
6303
+ x?: number;
6304
+ y?: number;
6305
+ allowedSizes?: Array<{
6306
+ w: number;
6307
+ h: number;
6308
+ }>;
6309
+ renderFn?: () => React.ReactElement | null;
6310
+ }
6311
+ }
6312
+
6313
+
6285
6314
  declare module "@tiptap/core" {
6286
6315
  interface Commands<ReturnType> {
6287
6316
  aiBlock: {
@@ -6309,28 +6338,8 @@ declare module "@tiptap/core" {
6309
6338
  }
6310
6339
 
6311
6340
 
6312
- declare module "gridstack" {
6313
- interface GridStackWidget {
6314
- id?: string;
6315
- allowedSizes?: Array<{
6316
- w: number;
6317
- h: number;
6318
- }>;
6319
- renderFn?: () => React.ReactElement | null;
6320
- meta?: Record<string, unknown>;
6321
- }
6322
- interface GridStackNode {
6323
- id?: string;
6324
- w?: number;
6325
- h?: number;
6326
- x?: number;
6327
- y?: number;
6328
- allowedSizes?: Array<{
6329
- w: number;
6330
- h: number;
6331
- }>;
6332
- renderFn?: () => React.ReactElement | null;
6333
- }
6341
+ declare namespace Calendar {
6342
+ var displayName: string;
6334
6343
  }
6335
6344
 
6336
6345
 
@@ -6341,8 +6350,3 @@ declare module "@tiptap/core" {
6341
6350
  };
6342
6351
  }
6343
6352
  }
6344
-
6345
-
6346
- declare namespace Calendar {
6347
- var displayName: string;
6348
- }