@factorialco/f0-react 1.292.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.
- package/dist/experimental.d.ts +33 -16
- package/dist/experimental.js +9048 -9012
- package/dist/f0.d.ts +37 -16
- package/dist/f0.js +5 -3
- package/dist/{hooks-C7xcrcsI.js → hooks-B9lijBjS.js} +10984 -10997
- package/dist/i18n-provider-defaults.d.ts +5 -5
- package/dist/styles.css +1 -1
- package/icons/ai/Calendar.d.ts +4 -0
- package/icons/ai/Calendar.d.ts.map +1 -0
- package/icons/ai/Calendar.js +5 -0
- package/icons/ai/Search.d.ts +4 -0
- package/icons/ai/Search.d.ts.map +1 -0
- package/icons/ai/Search.js +5 -0
- package/icons/ai/Summary.d.ts +4 -0
- package/icons/ai/Summary.d.ts.map +1 -0
- package/icons/ai/Summary.js +5 -0
- package/icons/ai/index.d.ts +4 -0
- package/icons/ai/index.d.ts.map +1 -0
- package/icons/ai/index.js +3 -0
- package/package.json +4 -3
- package/tailwind.config.ts +17 -0
package/dist/experimental.d.ts
CHANGED
|
@@ -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" | "
|
|
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?:
|
|
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
|
|
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;
|
|
@@ -1356,7 +1358,13 @@ export declare const ChartWidgetEmptyState: ForwardRefExoticComponent<Props_5 &
|
|
|
1356
1358
|
|
|
1357
1359
|
export declare type ChatWidgetEmptyStateProps = Props_5;
|
|
1358
1360
|
|
|
1359
|
-
declare type ChildrenPaginationInfo
|
|
1361
|
+
declare type ChildrenPaginationInfo = {
|
|
1362
|
+
total: number;
|
|
1363
|
+
perPage: number;
|
|
1364
|
+
currentPage: number;
|
|
1365
|
+
pagesCount: number;
|
|
1366
|
+
hasMore: boolean;
|
|
1367
|
+
};
|
|
1360
1368
|
|
|
1361
1369
|
declare type ChildrenResponse<R extends RecordType> = NestedResponseWithType<R>;
|
|
1362
1370
|
|
|
@@ -1910,11 +1918,18 @@ export declare type DataSourceDefinition<R extends RecordType = RecordType, Filt
|
|
|
1910
1918
|
currentGrouping?: GroupingState<R, Grouping>;
|
|
1911
1919
|
/*******************************************************/
|
|
1912
1920
|
/***** NESTED RECORDS ***************************************************/
|
|
1913
|
-
fetchChildren?: (item
|
|
1921
|
+
fetchChildren?: ({ item, filters, pagination, }: {
|
|
1922
|
+
item: R;
|
|
1923
|
+
filters?: FiltersState<Filters>;
|
|
1924
|
+
pagination?: ChildrenPaginationInfo;
|
|
1925
|
+
}) => Promise<ChildrenResponse<R>>;
|
|
1914
1926
|
/** Function to determine if an item has children */
|
|
1915
1927
|
itemsWithChildren?: (item: R) => boolean;
|
|
1916
1928
|
/** Function to get the number of children for an item */
|
|
1917
|
-
childrenCount?: (item
|
|
1929
|
+
childrenCount?: ({ item, pagination, }: {
|
|
1930
|
+
item: R;
|
|
1931
|
+
pagination?: ChildrenPaginationInfo;
|
|
1932
|
+
}) => number | undefined;
|
|
1918
1933
|
};
|
|
1919
1934
|
|
|
1920
1935
|
export declare type DateFilterDefinition = BaseFilterDefinition<"date"> & {
|
|
@@ -2841,7 +2856,9 @@ declare type F0AvatarTeamProps = {
|
|
|
2841
2856
|
badge?: AvatarBadge;
|
|
2842
2857
|
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
2843
2858
|
|
|
2844
|
-
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
|
+
};
|
|
2845
2862
|
|
|
2846
2863
|
export declare const F0Callout: ForwardRefExoticComponent<CalloutInternalProps & RefAttributes<HTMLDivElement>> & {
|
|
2847
2864
|
Skeleton: ({ compact, variant }: CalloutSkeletonProps) => JSX_2.Element;
|
|
@@ -4049,7 +4066,7 @@ declare type NestedKeyOf<T> = {
|
|
|
4049
4066
|
declare type NestedResponseWithType<R extends RecordType> = {
|
|
4050
4067
|
records: R[];
|
|
4051
4068
|
type?: NestedVariant;
|
|
4052
|
-
paginationInfo?: ChildrenPaginationInfo
|
|
4069
|
+
paginationInfo?: ChildrenPaginationInfo;
|
|
4053
4070
|
};
|
|
4054
4071
|
|
|
4055
4072
|
declare type NestedVariant = "basic" | "detailed";
|
|
@@ -6321,6 +6338,11 @@ declare module "@tiptap/core" {
|
|
|
6321
6338
|
}
|
|
6322
6339
|
|
|
6323
6340
|
|
|
6341
|
+
declare namespace Calendar {
|
|
6342
|
+
var displayName: string;
|
|
6343
|
+
}
|
|
6344
|
+
|
|
6345
|
+
|
|
6324
6346
|
declare module "@tiptap/core" {
|
|
6325
6347
|
interface Commands<ReturnType> {
|
|
6326
6348
|
moodTracker: {
|
|
@@ -6328,8 +6350,3 @@ declare module "@tiptap/core" {
|
|
|
6328
6350
|
};
|
|
6329
6351
|
}
|
|
6330
6352
|
}
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
declare namespace Calendar {
|
|
6334
|
-
var displayName: string;
|
|
6335
|
-
}
|