@factorialco/f0-react 1.244.1 → 1.246.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 +274 -129
- package/dist/experimental.js +11597 -11924
- package/dist/f0.d.ts +342 -89
- package/dist/f0.js +321 -316
- package/dist/global.d.ts +21 -0
- package/dist/{hooks-DfWgtHhy.js → hooks-rjsVZjmG.js} +32174 -31880
- package/dist/styles.css +1 -1
- package/package.json +2 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -39,6 +39,7 @@ import { FolderCellValue } from './types/folder.tsx';
|
|
|
39
39
|
import { FolderCellValue as FolderCellValue_2 } from '../../value-display/types/folder';
|
|
40
40
|
import { ForwardedRef } from 'react';
|
|
41
41
|
import { ForwardRefExoticComponent } from 'react';
|
|
42
|
+
import { HTMLAttributeAnchorTarget } from 'react';
|
|
42
43
|
import { HTMLAttributes } from 'react';
|
|
43
44
|
import { HTMLInputTypeAttribute } from 'react';
|
|
44
45
|
import { IconCellValue } from './types/icon.tsx';
|
|
@@ -93,7 +94,7 @@ declare type Action = {
|
|
|
93
94
|
label: string;
|
|
94
95
|
onClick: () => void;
|
|
95
96
|
icon?: IconType;
|
|
96
|
-
variant?:
|
|
97
|
+
variant?: F0ButtonProps["variant"];
|
|
97
98
|
disabled?: boolean;
|
|
98
99
|
};
|
|
99
100
|
|
|
@@ -104,7 +105,90 @@ declare type Action_2 = {
|
|
|
104
105
|
variant?: "default" | "outline" | "promote";
|
|
105
106
|
};
|
|
106
107
|
|
|
107
|
-
|
|
108
|
+
declare type ActionBaseProps = ActionCommonProps & DataAttributes;
|
|
109
|
+
|
|
110
|
+
declare type ActionButtonProps = ActionBaseProps & {
|
|
111
|
+
type?: ButtonType;
|
|
112
|
+
href?: never;
|
|
113
|
+
target?: never;
|
|
114
|
+
onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
115
|
+
onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
|
|
116
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
declare interface ActionCommonProps {
|
|
120
|
+
/**
|
|
121
|
+
* Tooltip
|
|
122
|
+
*/
|
|
123
|
+
tooltip?: string | false;
|
|
124
|
+
/**
|
|
125
|
+
* The variant of the action.
|
|
126
|
+
*/
|
|
127
|
+
variant?: ActionVariant;
|
|
128
|
+
/**
|
|
129
|
+
* The children of the action.
|
|
130
|
+
*/
|
|
131
|
+
children: ReactNode;
|
|
132
|
+
/**
|
|
133
|
+
* The prepend of the action.
|
|
134
|
+
*/
|
|
135
|
+
prepend?: ReactNode;
|
|
136
|
+
/**
|
|
137
|
+
* The append of the action.
|
|
138
|
+
*/
|
|
139
|
+
append?: ReactNode;
|
|
140
|
+
/**
|
|
141
|
+
* The prepend outside (next to the button) of the action.
|
|
142
|
+
*/
|
|
143
|
+
prependOutside?: ReactNode;
|
|
144
|
+
/**
|
|
145
|
+
* The append outside of the action.
|
|
146
|
+
*/
|
|
147
|
+
appendOutside?: ReactNode;
|
|
148
|
+
/**
|
|
149
|
+
* The disabled state of the action.
|
|
150
|
+
*/
|
|
151
|
+
disabled?: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* The loading state of the action.
|
|
154
|
+
*/
|
|
155
|
+
loading?: boolean;
|
|
156
|
+
/**
|
|
157
|
+
* The pressed state of the action.
|
|
158
|
+
*/
|
|
159
|
+
pressed?: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* The class name of the action.
|
|
162
|
+
*/
|
|
163
|
+
className?: string;
|
|
164
|
+
/**
|
|
165
|
+
* The size of the action.
|
|
166
|
+
*/
|
|
167
|
+
size?: ActionSize;
|
|
168
|
+
/**
|
|
169
|
+
* The render mode.
|
|
170
|
+
* @default "default"
|
|
171
|
+
*/
|
|
172
|
+
mode?: "default" | "only";
|
|
173
|
+
/**
|
|
174
|
+
* The title of the action.
|
|
175
|
+
*/
|
|
176
|
+
title?: string;
|
|
177
|
+
/**
|
|
178
|
+
* make the left and right padding of the action smaller.
|
|
179
|
+
*/
|
|
180
|
+
compact?: boolean;
|
|
181
|
+
/**
|
|
182
|
+
* The aria label of the action.
|
|
183
|
+
*/
|
|
184
|
+
"aria-label"?: string;
|
|
185
|
+
/**
|
|
186
|
+
* The tab index of the action.
|
|
187
|
+
*/
|
|
188
|
+
tabIndex?: number;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export declare type ActionDefinition = DropdownItemSeparator | (Pick<DropdownItemObject, "label" | "icon" | "description" | "critical"> & {
|
|
108
192
|
onClick: () => void;
|
|
109
193
|
enabled?: boolean;
|
|
110
194
|
type?: "primary" | "secondary" | "other";
|
|
@@ -118,6 +202,16 @@ export declare interface ActionItemProps {
|
|
|
118
202
|
inGroup?: boolean;
|
|
119
203
|
}
|
|
120
204
|
|
|
205
|
+
declare type ActionLinkProps = ActionBaseProps & {
|
|
206
|
+
href: string;
|
|
207
|
+
target?: NavTarget;
|
|
208
|
+
rel?: string;
|
|
209
|
+
onFocus?: (event: React.FocusEvent<HTMLAnchorElement>) => void;
|
|
210
|
+
onBlur?: (event: React.FocusEvent<HTMLAnchorElement>) => void;
|
|
211
|
+
onClick?: (event: React.MouseEvent<HTMLAnchorElement>) => void;
|
|
212
|
+
className?: string;
|
|
213
|
+
};
|
|
214
|
+
|
|
121
215
|
declare type ActionProps = {
|
|
122
216
|
buttonType: "gradient" | "internal";
|
|
123
217
|
label: string;
|
|
@@ -127,7 +221,9 @@ declare type ActionProps = {
|
|
|
127
221
|
icon?: IconType;
|
|
128
222
|
};
|
|
129
223
|
|
|
130
|
-
declare type ActionProps_2 =
|
|
224
|
+
declare type ActionProps_2 = ActionLinkProps | ActionButtonProps;
|
|
225
|
+
|
|
226
|
+
declare type ActionProps_3 = {
|
|
131
227
|
/**
|
|
132
228
|
* The label of the action
|
|
133
229
|
*/
|
|
@@ -179,6 +275,10 @@ declare type ActionProps_2 = {
|
|
|
179
275
|
type?: "default";
|
|
180
276
|
});
|
|
181
277
|
|
|
278
|
+
declare type ActionSize = (typeof actionSizes)[number];
|
|
279
|
+
|
|
280
|
+
declare const actionSizes: readonly ["sm", "md", "lg"];
|
|
281
|
+
|
|
182
282
|
declare type ActionType = CopyActionType | NavigateActionType;
|
|
183
283
|
|
|
184
284
|
export declare type actionType = {
|
|
@@ -198,6 +298,10 @@ declare type actionType_2 = {
|
|
|
198
298
|
variant?: "default" | "outline" | "neutral";
|
|
199
299
|
};
|
|
200
300
|
|
|
301
|
+
declare type ActionVariant = (typeof actionVariants)[number];
|
|
302
|
+
|
|
303
|
+
declare const actionVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote", "link", "unstyled", "mention"];
|
|
304
|
+
|
|
201
305
|
export declare const ActivityItemList: (({ items, loadingMoreItems, onClickItem, onEndReached, onEndReachedItemsThreshold, }: ActivityItemListProps) => default_2.JSX.Element) & {
|
|
202
306
|
Skeleton: () => default_2.JSX.Element;
|
|
203
307
|
};
|
|
@@ -687,7 +791,7 @@ declare interface BaseHeaderProps_2 {
|
|
|
687
791
|
} | AvatarVariant;
|
|
688
792
|
description?: string;
|
|
689
793
|
primaryAction?: PrimaryActionButton | PrimaryDropdownAction<string>;
|
|
690
|
-
secondaryActions?:
|
|
794
|
+
secondaryActions?: HeaderSecondaryAction[];
|
|
691
795
|
otherActions?: (DropdownItem & {
|
|
692
796
|
isVisible?: boolean;
|
|
693
797
|
})[];
|
|
@@ -745,13 +849,13 @@ declare type BreadcrumbBaseItemType = NavigationItem & {
|
|
|
745
849
|
label: string;
|
|
746
850
|
};
|
|
747
851
|
|
|
748
|
-
declare type BreadcrumbItemType = BreadcrumbLoadingItemType | BreadcrumbNavItemType | BreadcrumbSelectItemType;
|
|
852
|
+
export declare type BreadcrumbItemType = BreadcrumbLoadingItemType | BreadcrumbNavItemType | BreadcrumbSelectItemType;
|
|
749
853
|
|
|
750
|
-
declare type BreadcrumbLoadingItemType = Pick<BreadcrumbBaseItemType, "id"> & {
|
|
854
|
+
export declare type BreadcrumbLoadingItemType = Pick<BreadcrumbBaseItemType, "id"> & {
|
|
751
855
|
loading: true;
|
|
752
856
|
};
|
|
753
857
|
|
|
754
|
-
declare type BreadcrumbNavItemType = BreadcrumbBaseItemType & {
|
|
858
|
+
export declare type BreadcrumbNavItemType = BreadcrumbBaseItemType & {
|
|
755
859
|
module?: ModuleId;
|
|
756
860
|
};
|
|
757
861
|
|
|
@@ -780,7 +884,7 @@ export declare function Breadcrumbs({ breadcrumbs, append }: BreadcrumbsProps):
|
|
|
780
884
|
|
|
781
885
|
export declare function BreadcrumbSelect<T extends string, R = unknown>({ ...props }: BreadcrumbSelectProps<T, R>): JSX_2.Element;
|
|
782
886
|
|
|
783
|
-
declare type BreadcrumbSelectItemType = BreadcrumbBaseItemType & {
|
|
887
|
+
export declare type BreadcrumbSelectItemType = BreadcrumbBaseItemType & {
|
|
784
888
|
type: "select";
|
|
785
889
|
searchbox?: boolean;
|
|
786
890
|
externalSearch?: boolean;
|
|
@@ -805,6 +909,15 @@ export declare interface BreadcrumbsProps {
|
|
|
805
909
|
append?: ReactNode;
|
|
806
910
|
}
|
|
807
911
|
|
|
912
|
+
export declare interface BreadcrumbState {
|
|
913
|
+
visibleCount: number;
|
|
914
|
+
headItem: BreadcrumbItemType | null;
|
|
915
|
+
tailItems: BreadcrumbItemType[];
|
|
916
|
+
collapsedItems: BreadcrumbItemType[];
|
|
917
|
+
isOnly: boolean;
|
|
918
|
+
minWidth: number | undefined;
|
|
919
|
+
}
|
|
920
|
+
|
|
808
921
|
declare interface BreakType {
|
|
809
922
|
id: string;
|
|
810
923
|
name: string;
|
|
@@ -842,8 +955,6 @@ export declare type BulkActionsDefinition<R extends RecordType, Filters extends
|
|
|
842
955
|
warningMessage: string;
|
|
843
956
|
};
|
|
844
957
|
|
|
845
|
-
declare const Button: React_2.ForwardRefExoticComponent<ButtonProps_2 & React_2.RefAttributes<HTMLButtonElement>>;
|
|
846
|
-
|
|
847
958
|
export declare interface ButtonConfig {
|
|
848
959
|
key: string;
|
|
849
960
|
icon: IconType;
|
|
@@ -855,11 +966,47 @@ export declare interface ButtonConfig {
|
|
|
855
966
|
};
|
|
856
967
|
}
|
|
857
968
|
|
|
858
|
-
declare type
|
|
969
|
+
declare type ButtonDropdownItem<T = string> = {
|
|
970
|
+
/**
|
|
971
|
+
* The value of the item.
|
|
972
|
+
*/
|
|
973
|
+
value: T;
|
|
974
|
+
/**
|
|
975
|
+
* The label of the item.
|
|
976
|
+
*/
|
|
977
|
+
label: string;
|
|
978
|
+
/**
|
|
979
|
+
* The icon of the item.
|
|
980
|
+
*/
|
|
981
|
+
icon?: IconType;
|
|
982
|
+
/**
|
|
983
|
+
* Whether the item is critical.
|
|
984
|
+
* @default false
|
|
985
|
+
*/
|
|
986
|
+
critical?: boolean;
|
|
987
|
+
/**
|
|
988
|
+
* The description of the item.
|
|
989
|
+
*/
|
|
990
|
+
description?: string;
|
|
991
|
+
};
|
|
992
|
+
|
|
993
|
+
declare type ButtonInternalProps = Pick<ActionProps_2, "size" | "disabled" | "className" | "pressed" | "compact" | "variant" | "tooltip"> & DataAttributes & {
|
|
994
|
+
/**
|
|
995
|
+
* The aria-label of the button if not provided title or label will be used.
|
|
996
|
+
*/
|
|
997
|
+
"aria-label"?: string;
|
|
998
|
+
/**
|
|
999
|
+
* The variant of the button.
|
|
1000
|
+
*/
|
|
1001
|
+
variant?: ButtonVariant;
|
|
859
1002
|
/**
|
|
860
1003
|
* Callback fired when the button is clicked. Supports async functions for loading state.
|
|
861
1004
|
*/
|
|
862
|
-
onClick?: (event: React.MouseEvent<
|
|
1005
|
+
onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void | Promise<unknown>;
|
|
1006
|
+
/**
|
|
1007
|
+
* The title of the button.
|
|
1008
|
+
*/
|
|
1009
|
+
title?: string;
|
|
863
1010
|
/**
|
|
864
1011
|
* The visible label for the button. Required for accessibility.
|
|
865
1012
|
*/
|
|
@@ -883,52 +1030,63 @@ declare type ButtonInternalProps = Pick<ComponentProps<typeof Button>, "variant"
|
|
|
883
1030
|
/**
|
|
884
1031
|
* Sets the button size. 'lg' for mobile, 'md' for desktop, 'sm' for compact/secondary actions.
|
|
885
1032
|
*/
|
|
886
|
-
size?:
|
|
1033
|
+
size?: ButtonSize;
|
|
887
1034
|
/**
|
|
1035
|
+
* @private
|
|
888
1036
|
* Appends a React node after the button content (for custom UI extensions).
|
|
889
1037
|
*/
|
|
890
1038
|
append?: React.ReactNode;
|
|
891
|
-
/**
|
|
892
|
-
* Appends a React node as a separate button, visually grouped with the main button.
|
|
893
|
-
*/
|
|
894
|
-
appendButton?: React.ReactNode;
|
|
895
1039
|
/**
|
|
896
1040
|
* If true, the button is inactive and does not respond to user interaction.
|
|
897
1041
|
*/
|
|
898
1042
|
disabled?: boolean;
|
|
899
1043
|
/**
|
|
1044
|
+
* @private
|
|
900
1045
|
* If true, the button is visually active or selected (pressed state).
|
|
901
1046
|
*/
|
|
902
1047
|
pressed?: boolean;
|
|
903
|
-
|
|
1048
|
+
/**
|
|
1049
|
+
* @private
|
|
1050
|
+
* If true, the button will not automatically add a tooltip based on the hideLabel and label properties.
|
|
1051
|
+
*/
|
|
1052
|
+
noAutoTooltip?: boolean;
|
|
1053
|
+
/**
|
|
1054
|
+
* @private
|
|
1055
|
+
* If true, the button will not automatically add a title based label
|
|
1056
|
+
*/
|
|
1057
|
+
noTitle?: boolean;
|
|
1058
|
+
/**
|
|
1059
|
+
* @private
|
|
1060
|
+
* The style of the button.
|
|
1061
|
+
*/
|
|
1062
|
+
style?: React.CSSProperties;
|
|
1063
|
+
} & ({
|
|
1064
|
+
/**
|
|
1065
|
+
* The URL to navigate to when the button is clicked.
|
|
1066
|
+
*/
|
|
1067
|
+
href: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* The target to navigate to when the button is clicked.
|
|
1070
|
+
*/
|
|
1071
|
+
target?: NavTarget;
|
|
1072
|
+
type?: never;
|
|
1073
|
+
} | {
|
|
1074
|
+
href?: never;
|
|
1075
|
+
target?: never;
|
|
1076
|
+
type?: ButtonType;
|
|
1077
|
+
});
|
|
904
1078
|
|
|
905
|
-
declare type
|
|
1079
|
+
declare type ButtonSize = (typeof buttonSizes)[number];
|
|
906
1080
|
|
|
907
|
-
declare
|
|
908
|
-
asChild?: boolean;
|
|
909
|
-
round?: boolean;
|
|
910
|
-
size?: ButtonSize;
|
|
911
|
-
variant?: ButtonVariant;
|
|
912
|
-
appendButton?: React_2.ReactNode;
|
|
913
|
-
pressed?: boolean;
|
|
914
|
-
}
|
|
1081
|
+
declare const buttonSizes: readonly ["sm", "md", "lg"];
|
|
915
1082
|
|
|
916
|
-
declare type
|
|
1083
|
+
declare type ButtonType = (typeof buttonTypes)[number];
|
|
917
1084
|
|
|
918
|
-
declare
|
|
1085
|
+
declare const buttonTypes: readonly ["button", "submit", "reset"];
|
|
919
1086
|
|
|
920
|
-
declare
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
variant?: "default" | "critical" | "promote" | "neutral" | "outline" | "ghost" | "outlinePromote" | undefined;
|
|
924
|
-
size?: "lg" | "md" | "sm" | undefined;
|
|
925
|
-
} & ({
|
|
926
|
-
class?: ClassValue;
|
|
927
|
-
className?: never;
|
|
928
|
-
} | {
|
|
929
|
-
class?: never;
|
|
930
|
-
className?: ClassValue;
|
|
931
|
-
})) | undefined) => string;
|
|
1087
|
+
declare type ButtonVariant = (typeof buttonVariants)[number];
|
|
1088
|
+
|
|
1089
|
+
declare const buttonVariants: readonly ["default", "outline", "critical", "neutral", "ghost", "promote", "outlinePromote"];
|
|
932
1090
|
|
|
933
1091
|
export declare type CalendarDate = {
|
|
934
1092
|
day: number;
|
|
@@ -984,7 +1142,7 @@ declare interface CalloutSkeletonProps {
|
|
|
984
1142
|
variant?: CalloutVariant;
|
|
985
1143
|
}
|
|
986
1144
|
|
|
987
|
-
declare type CalloutVariant = (typeof
|
|
1145
|
+
declare type CalloutVariant = (typeof variants)[number];
|
|
988
1146
|
|
|
989
1147
|
declare type CardAvatarVariant = AvatarVariant | {
|
|
990
1148
|
type: "emoji";
|
|
@@ -1129,7 +1287,7 @@ declare type ChartConfig_2 = {
|
|
|
1129
1287
|
|
|
1130
1288
|
declare const ChartContainer: React_2.ForwardRefExoticComponent<Omit<ChartContainerComponentProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1131
1289
|
|
|
1132
|
-
declare interface ChartContainerComponentProps extends React_2.ComponentProps<"div">, VariantProps<typeof
|
|
1290
|
+
declare interface ChartContainerComponentProps extends React_2.ComponentProps<"div">, VariantProps<typeof variants_2> {
|
|
1133
1291
|
config: ChartConfig_2;
|
|
1134
1292
|
children: React_2.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
1135
1293
|
}
|
|
@@ -1421,6 +1579,10 @@ declare type Data<R extends RecordType> = {
|
|
|
1421
1579
|
*/
|
|
1422
1580
|
export declare type DataAdapter<R extends RecordType, Filters extends FiltersDefinition> = BaseDataAdapter<R, Filters, BaseFetchOptions<Filters>, BaseResponse<R>> | PaginatedDataAdapter<R, Filters, PaginatedFetchOptions<Filters>, PaginatedResponse<R>>;
|
|
1423
1581
|
|
|
1582
|
+
declare type DataAttributes_2 = {
|
|
1583
|
+
[key: `data-${string}`]: string | undefined;
|
|
1584
|
+
};
|
|
1585
|
+
|
|
1424
1586
|
export declare type DataCollectionBaseFetchOptions<Filters extends FiltersDefinition, NavigationFilters extends NavigationFiltersDefinition> = BaseFetchOptions<Filters> & DataCollectionExtendFetchOptions<NavigationFilters>;
|
|
1425
1587
|
|
|
1426
1588
|
/**
|
|
@@ -1778,6 +1940,7 @@ declare const defaultTranslations: {
|
|
|
1778
1940
|
readonly thumbsDown: "Dislike";
|
|
1779
1941
|
readonly other: "Other actions";
|
|
1780
1942
|
readonly toggle: "Toggle";
|
|
1943
|
+
readonly toggleDropdownMenu: "Toggle dropdown menu";
|
|
1781
1944
|
};
|
|
1782
1945
|
readonly status: {
|
|
1783
1946
|
readonly selected: {
|
|
@@ -1979,17 +2142,17 @@ description: string;
|
|
|
1979
2142
|
actions?: {
|
|
1980
2143
|
primary: {
|
|
1981
2144
|
label: string;
|
|
1982
|
-
onClick?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void | Promise<unknown>) | undefined;
|
|
1983
|
-
disabled?: boolean | undefined | undefined;
|
|
1984
2145
|
icon?: IconType_2 | undefined;
|
|
2146
|
+
onClick?: ((event: React.MouseEvent<HTMLElement, MouseEvent>) => void | Promise<unknown>) | undefined;
|
|
2147
|
+
disabled?: boolean | undefined;
|
|
1985
2148
|
} & {
|
|
1986
2149
|
variant?: "default" | "critical" | "neutral";
|
|
1987
2150
|
};
|
|
1988
2151
|
secondary: {
|
|
1989
2152
|
label: string;
|
|
1990
|
-
onClick?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void | Promise<unknown>) | undefined;
|
|
1991
|
-
disabled?: boolean | undefined | undefined;
|
|
1992
2153
|
icon?: IconType_2 | undefined;
|
|
2154
|
+
onClick?: ((event: React.MouseEvent<HTMLElement, MouseEvent>) => void | Promise<unknown>) | undefined;
|
|
2155
|
+
disabled?: boolean | undefined;
|
|
1993
2156
|
};
|
|
1994
2157
|
};
|
|
1995
2158
|
open?: boolean;
|
|
@@ -2017,16 +2180,16 @@ export declare const Dropdown: (props: DropdownProps) => JSX_2.Element;
|
|
|
2017
2180
|
declare type DropdownInternalProps = {
|
|
2018
2181
|
items: DropdownItem[];
|
|
2019
2182
|
icon?: IconType;
|
|
2020
|
-
size?:
|
|
2183
|
+
size?: F0ButtonProps["size"];
|
|
2021
2184
|
children?: default_2.ReactNode;
|
|
2022
2185
|
align?: "start" | "end";
|
|
2023
2186
|
open?: boolean;
|
|
2024
2187
|
onOpenChange?: (open: boolean) => void;
|
|
2025
|
-
} &
|
|
2188
|
+
} & DataAttributes_2;
|
|
2026
2189
|
|
|
2027
2190
|
export declare type DropdownItem = DropdownItemObject | DropdownItemSeparator;
|
|
2028
2191
|
|
|
2029
|
-
export declare type DropdownItemObject = NavigationItem & {
|
|
2192
|
+
export declare type DropdownItemObject = Pick<NavigationItem, "label" | "href"> & {
|
|
2030
2193
|
type?: "item";
|
|
2031
2194
|
onClick?: () => void;
|
|
2032
2195
|
icon?: IconType;
|
|
@@ -2039,14 +2202,14 @@ declare type DropdownItemSeparator = {
|
|
|
2039
2202
|
type: "separator";
|
|
2040
2203
|
};
|
|
2041
2204
|
|
|
2205
|
+
export declare type DropdownItemWithoutIcon = Omit<DropdownItemObject, "icon">;
|
|
2206
|
+
|
|
2042
2207
|
declare const DropdownMenu: React_2.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
2043
2208
|
|
|
2044
2209
|
declare const DropdownMenuItem: React_2.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
2045
2210
|
inset?: boolean;
|
|
2046
2211
|
} & React_2.RefAttributes<HTMLDivElement>>;
|
|
2047
2212
|
|
|
2048
|
-
declare const DropdownMenuTrigger: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
2049
|
-
|
|
2050
2213
|
declare type DropdownProps = Omit<DropdownInternalProps, (typeof privateProps_2)[number]> & {
|
|
2051
2214
|
open?: boolean;
|
|
2052
2215
|
onOpenChange?: (open: boolean) => void;
|
|
@@ -2068,7 +2231,7 @@ declare type EmptyState = {
|
|
|
2068
2231
|
emoji?: string;
|
|
2069
2232
|
title: string;
|
|
2070
2233
|
description?: string;
|
|
2071
|
-
actions?:
|
|
2234
|
+
actions?: ActionProps_3[];
|
|
2072
2235
|
};
|
|
2073
2236
|
|
|
2074
2237
|
declare const emptyStatesTypes: readonly ["no-data", "no-results", "error"];
|
|
@@ -2315,16 +2478,7 @@ declare type F0AvatarTeamProps = {
|
|
|
2315
2478
|
badge?: AvatarBadge;
|
|
2316
2479
|
} & Pick<BaseAvatarProps, "aria-label" | "aria-labelledby">;
|
|
2317
2480
|
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
declare interface F0ButtonToggleProps {
|
|
2321
|
-
selected?: boolean;
|
|
2322
|
-
onSelectedChange?: (selected: boolean) => void;
|
|
2323
|
-
label: string;
|
|
2324
|
-
disabled?: boolean;
|
|
2325
|
-
icon: IconType;
|
|
2326
|
-
size?: "sm" | "md" | "lg";
|
|
2327
|
-
}
|
|
2481
|
+
declare type F0ButtonProps = Omit<ButtonInternalProps, (typeof privateProps)[number]>;
|
|
2328
2482
|
|
|
2329
2483
|
export declare const F0Callout: ForwardRefExoticComponent<CalloutInternalProps & RefAttributes<HTMLDivElement>> & {
|
|
2330
2484
|
Skeleton: ({ compact, variant }: CalloutSkeletonProps) => JSX_2.Element;
|
|
@@ -2350,7 +2504,7 @@ value?: string;
|
|
|
2350
2504
|
threshold?: number;
|
|
2351
2505
|
debounceTime?: number;
|
|
2352
2506
|
autoFocus?: boolean;
|
|
2353
|
-
} & Pick<InputFieldProps<string>, "onChange" | "name" | "onFocus" | "onBlur" | "disabled" | "
|
|
2507
|
+
} & Pick<InputFieldProps<string>, "onChange" | "size" | "name" | "onFocus" | "onBlur" | "disabled" | "placeholder" | "loading" | "clearable"> & RefAttributes<HTMLInputElement>>;
|
|
2354
2508
|
|
|
2355
2509
|
declare type FavoriteMenuItem = ({
|
|
2356
2510
|
type: "icon";
|
|
@@ -2411,7 +2565,7 @@ export declare type FileType = (typeof FILE_TYPES)[keyof typeof FILE_TYPES];
|
|
|
2411
2565
|
* @param actions - The actions to filter
|
|
2412
2566
|
* @returns An array of filtered actions
|
|
2413
2567
|
*/
|
|
2414
|
-
export declare const filterActions: (
|
|
2568
|
+
export declare const filterActions: (groups: SecondaryActionGroup[]) => SecondaryActionGroup[];
|
|
2415
2569
|
|
|
2416
2570
|
/**
|
|
2417
2571
|
* Union of all available filter types.
|
|
@@ -2571,12 +2725,12 @@ export declare const getGranularitySimpleDefinition: (granularityKey: Granularit
|
|
|
2571
2725
|
/**
|
|
2572
2726
|
* Get the primaryActionsItems from the primaryActionsDefinition or the actions property
|
|
2573
2727
|
*/
|
|
2574
|
-
export declare const getPrimaryActions: (primaryActions: PrimaryActionsDefinitionFn | undefined) =>
|
|
2728
|
+
export declare const getPrimaryActions: (primaryActions: PrimaryActionsDefinitionFn | undefined) => PrimaryActionItemDefinition[];
|
|
2575
2729
|
|
|
2576
2730
|
/**
|
|
2577
2731
|
* Get the secondaryActionsItems from the secondaryActionsDefinition or the actions property
|
|
2578
2732
|
*/
|
|
2579
|
-
export declare const getSecondaryActions: (secondaryActions: SecondaryActionsDefinition | undefined) =>
|
|
2733
|
+
export declare const getSecondaryActions: (secondaryActions: SecondaryActionsDefinition | undefined) => SecondaryActionGroup[];
|
|
2580
2734
|
|
|
2581
2735
|
export declare interface GranularityDefinition {
|
|
2582
2736
|
calendarMode?: CalendarMode;
|
|
@@ -2687,6 +2841,10 @@ declare type HeaderProps = {
|
|
|
2687
2841
|
};
|
|
2688
2842
|
};
|
|
2689
2843
|
|
|
2844
|
+
declare type HeaderSecondaryAction = SecondaryAction & {
|
|
2845
|
+
hideLabel?: boolean;
|
|
2846
|
+
};
|
|
2847
|
+
|
|
2690
2848
|
export declare type heightType = "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full" | "auto";
|
|
2691
2849
|
|
|
2692
2850
|
export declare const HighlightBanner: ({ title, subtitle, buttonLabel, onClick, }: HighlightBannerProps) => JSX_2.Element;
|
|
@@ -2823,7 +2981,7 @@ export declare type InfiniteScrollPaginatedResponse<TRecord> = BasePaginatedResp
|
|
|
2823
2981
|
|
|
2824
2982
|
export declare const Input: <T extends string = string>(props: InputProps<T>) => JSX_2.Element;
|
|
2825
2983
|
|
|
2826
|
-
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "
|
|
2984
|
+
declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "size" | "icon" | "role" | "onFocus" | "onBlur" | "status" | "disabled" | "maxLength" | "required" | "loading" | "error" | "hideLabel" | "append" | "labelIcon" | "onClickContent" | "hint" | "readonly" | "clearable" | "onClear" | "isEmpty" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider"> & React_2.RefAttributes<HTMLInputElement>>;
|
|
2827
2985
|
|
|
2828
2986
|
declare const INPUTFIELD_SIZES: readonly ["sm", "md"];
|
|
2829
2987
|
|
|
@@ -3330,7 +3488,7 @@ export declare type NavigationFilterValue<T> = T extends DateNavigatorFilterDefi
|
|
|
3330
3488
|
|
|
3331
3489
|
declare type NavigationItem = Pick<LinkProps, "href" | "exactMatch" | "onClick"> & {
|
|
3332
3490
|
label: string;
|
|
3333
|
-
} &
|
|
3491
|
+
} & DataAttributes_2;
|
|
3334
3492
|
|
|
3335
3493
|
declare type NavigationProps = {
|
|
3336
3494
|
previous?: {
|
|
@@ -3347,6 +3505,8 @@ declare type NavigationProps = {
|
|
|
3347
3505
|
};
|
|
3348
3506
|
};
|
|
3349
3507
|
|
|
3508
|
+
declare type NavTarget = HTMLAttributeAnchorTarget;
|
|
3509
|
+
|
|
3350
3510
|
/**
|
|
3351
3511
|
* Utility type to extract all possible paths from nested object.
|
|
3352
3512
|
* Generates hyphenated paths from nested object structure
|
|
@@ -3533,30 +3693,6 @@ export declare interface OneDatePickerProps extends Omit<DatePickerPopupProps, "
|
|
|
3533
3693
|
hideGoToCurrent?: boolean;
|
|
3534
3694
|
}
|
|
3535
3695
|
|
|
3536
|
-
export declare const OneDropdownButton: ({ items, onClick, value, ...props }: OneDropdownButtonProps) => JSX_2.Element | undefined;
|
|
3537
|
-
|
|
3538
|
-
export declare type OneDropdownButtonItem<T = string> = Pick<DropdownItemObject, "label" | "icon" | "critical" | "description"> & {
|
|
3539
|
-
value: T;
|
|
3540
|
-
};
|
|
3541
|
-
|
|
3542
|
-
export declare type OneDropdownButtonProps<T = string> = {
|
|
3543
|
-
size?: OneDropdownButtonSize;
|
|
3544
|
-
items: (OneDropdownButtonItem<T> | DropdownItemSeparator)[];
|
|
3545
|
-
variant?: OneDropdownButtonVariant;
|
|
3546
|
-
value?: T;
|
|
3547
|
-
disabled?: boolean;
|
|
3548
|
-
loading?: boolean;
|
|
3549
|
-
onClick: (value: T, item: OneDropdownButtonItem<T>) => void;
|
|
3550
|
-
};
|
|
3551
|
-
|
|
3552
|
-
declare type OneDropdownButtonSize = (typeof oneDropdownButtonSizes)[number];
|
|
3553
|
-
|
|
3554
|
-
declare const oneDropdownButtonSizes: readonly ["sm", "md", "lg"];
|
|
3555
|
-
|
|
3556
|
-
declare type OneDropdownButtonVariant = (typeof oneDropdownButtonVariants)[number];
|
|
3557
|
-
|
|
3558
|
-
declare const oneDropdownButtonVariants: readonly ["default", "outline", "neutral"];
|
|
3559
|
-
|
|
3560
3696
|
export declare function OneEmptyState({ title, description, variant, emoji, actions, }: Types.OneEmptyStateProps): JSX_2.Element;
|
|
3561
3697
|
|
|
3562
3698
|
declare type OneEmptyStateProps = {
|
|
@@ -3575,7 +3711,7 @@ declare type OneEmptyStateProps = {
|
|
|
3575
3711
|
* and can include a label, click handler, optional icon, and button variant.
|
|
3576
3712
|
* @optional
|
|
3577
3713
|
*/
|
|
3578
|
-
actions?:
|
|
3714
|
+
actions?: ActionProps_3[];
|
|
3579
3715
|
} & ({
|
|
3580
3716
|
/**
|
|
3581
3717
|
* The variant of the empty state
|
|
@@ -3959,13 +4095,13 @@ declare interface PrimaryActionButton extends PrimaryAction {
|
|
|
3959
4095
|
onClick: () => void;
|
|
3960
4096
|
}
|
|
3961
4097
|
|
|
3962
|
-
export declare type
|
|
4098
|
+
export declare type PrimaryActionItemDefinition = Pick<DropdownItemObject, "onClick" | "label" | "icon">;
|
|
3963
4099
|
|
|
3964
4100
|
/**
|
|
3965
4101
|
* Defines the structure and configuration of the primary action that can be performed on a collection.
|
|
3966
4102
|
* @returns An action
|
|
3967
4103
|
*/
|
|
3968
|
-
export declare type PrimaryActionsDefinitionFn = () =>
|
|
4104
|
+
export declare type PrimaryActionsDefinitionFn = () => PrimaryActionItemDefinition | PrimaryActionItemDefinition[] | undefined;
|
|
3969
4105
|
|
|
3970
4106
|
export declare type primaryActionType = {
|
|
3971
4107
|
action: actionType;
|
|
@@ -3973,19 +4109,21 @@ export declare type primaryActionType = {
|
|
|
3973
4109
|
};
|
|
3974
4110
|
|
|
3975
4111
|
declare interface PrimaryDropdownAction<T> extends PrimaryAction {
|
|
3976
|
-
items:
|
|
4112
|
+
items: ButtonDropdownItem<T>[];
|
|
3977
4113
|
value?: T;
|
|
3978
|
-
onClick: (value: T, item:
|
|
4114
|
+
onClick: (value: T, item: ButtonDropdownItem<T>) => void;
|
|
3979
4115
|
}
|
|
3980
4116
|
|
|
3981
4117
|
export declare const PrivateBox: FC<PropsWithChildren>;
|
|
3982
4118
|
|
|
3983
|
-
declare const privateProps: readonly ["append", "
|
|
4119
|
+
declare const privateProps: readonly ["append", "className", "pressed", "compact", "noTitle", "noAutoTooltip", "style"];
|
|
3984
4120
|
|
|
3985
4121
|
declare const privateProps_2: readonly [];
|
|
3986
4122
|
|
|
3987
4123
|
declare const privateProps_3: readonly ["compact"];
|
|
3988
4124
|
|
|
4125
|
+
declare const privateProps_4: readonly ["delay"];
|
|
4126
|
+
|
|
3989
4127
|
declare type ProductUpdate = {
|
|
3990
4128
|
title: string;
|
|
3991
4129
|
href: string;
|
|
@@ -4002,7 +4140,7 @@ declare type ProductUpdatesProp = {
|
|
|
4002
4140
|
hasUnread?: boolean;
|
|
4003
4141
|
currentModule: string;
|
|
4004
4142
|
onOpenChange?: ComponentProps<typeof DropdownMenu>["onOpenChange"];
|
|
4005
|
-
onHeaderClick?:
|
|
4143
|
+
onHeaderClick?: F0ButtonProps["onClick"];
|
|
4006
4144
|
onItemClick?: ComponentProps<typeof DropdownMenuItem>["onClick"];
|
|
4007
4145
|
emptyScreen: {
|
|
4008
4146
|
title: string;
|
|
@@ -4094,7 +4232,7 @@ declare type Props_2 = {
|
|
|
4094
4232
|
/** Description text below the title */
|
|
4095
4233
|
description: string;
|
|
4096
4234
|
/** Complementary action specific to the section */
|
|
4097
|
-
action?: Pick<
|
|
4235
|
+
action?: Pick<F0ButtonProps, "label" | "onClick"> & {
|
|
4098
4236
|
icon?: IconType;
|
|
4099
4237
|
variant?: "default" | "outline";
|
|
4100
4238
|
};
|
|
@@ -4310,20 +4448,27 @@ declare interface SecondaryAction extends PrimaryActionButton {
|
|
|
4310
4448
|
variant?: "outline" | "critical" | "outlinePromote" | "promote";
|
|
4311
4449
|
}
|
|
4312
4450
|
|
|
4313
|
-
export declare type
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
}
|
|
4451
|
+
export declare type SecondaryActionGroup = {
|
|
4452
|
+
label?: string;
|
|
4453
|
+
items: SecondaryActionItem[];
|
|
4454
|
+
};
|
|
4317
4455
|
|
|
4318
4456
|
/**
|
|
4319
4457
|
* Defines the structure and configuration of secondary actions that can be performed on a collection.
|
|
4320
4458
|
* @returns An array of actions
|
|
4321
4459
|
*/
|
|
4322
|
-
export declare type
|
|
4460
|
+
export declare type SecondaryActionItem = Pick<DropdownItemObject, "label" | "icon" | "description" | "critical" | "onClick"> & {
|
|
4323
4461
|
enabled?: boolean;
|
|
4324
4462
|
hideLabelWhenExpanded?: boolean;
|
|
4325
4463
|
};
|
|
4326
4464
|
|
|
4465
|
+
export declare type SecondaryActionsDefinition = {
|
|
4466
|
+
expanded: Enumerate<typeof MAX_EXPANDED_ACTIONS>;
|
|
4467
|
+
actions: () => SecondaryActionsItems | undefined;
|
|
4468
|
+
} | (() => SecondaryActionsItems | undefined);
|
|
4469
|
+
|
|
4470
|
+
export declare type SecondaryActionsItems = SecondaryActionItem[] | SecondaryActionItem[][] | SecondaryActionGroup[];
|
|
4471
|
+
|
|
4327
4472
|
export declare type secondaryActionsType = secondaryActionType | secondaryActionType[];
|
|
4328
4473
|
|
|
4329
4474
|
export declare type secondaryActionType = (actionType | toggleActionType) & {
|
|
@@ -4484,8 +4629,6 @@ declare type SidebarState = "locked" | "unlocked" | "hidden";
|
|
|
4484
4629
|
*/
|
|
4485
4630
|
declare type SimpleResult<T> = T[];
|
|
4486
4631
|
|
|
4487
|
-
declare const sizes: readonly ["sm", "md", "lg"];
|
|
4488
|
-
|
|
4489
4632
|
declare const skeletonVariants: (props?: ({
|
|
4490
4633
|
height?: "lg" | "md" | "sm" | undefined;
|
|
4491
4634
|
} & ({
|
|
@@ -4534,7 +4677,7 @@ declare interface SpinnerProps extends VariantProps<typeof spinnerVariants> {
|
|
|
4534
4677
|
}
|
|
4535
4678
|
|
|
4536
4679
|
declare const spinnerVariants: (props?: ({
|
|
4537
|
-
size?: "small" | "
|
|
4680
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
4538
4681
|
} & ({
|
|
4539
4682
|
class?: ClassValue;
|
|
4540
4683
|
className?: never;
|
|
@@ -4552,8 +4695,8 @@ width?: "auto" | "full" | undefined;
|
|
|
4552
4695
|
paddingY?: "none" | "p-2" | "p-4" | "p-8" | "p-12" | "p-16" | undefined;
|
|
4553
4696
|
basis?: "0" | undefined;
|
|
4554
4697
|
inline?: boolean | undefined;
|
|
4555
|
-
justifyContent?: "center" | "end" | "start" | "
|
|
4556
|
-
alignItems?: "center" | "end" | "start" | "
|
|
4698
|
+
justifyContent?: "center" | "end" | "start" | "space-between" | "stretch" | undefined;
|
|
4699
|
+
alignItems?: "center" | "end" | "start" | "space-between" | "stretch" | undefined;
|
|
4557
4700
|
grow?: boolean | undefined;
|
|
4558
4701
|
shrink?: boolean | undefined;
|
|
4559
4702
|
} & ({
|
|
@@ -4582,8 +4725,8 @@ width?: "auto" | "full" | undefined;
|
|
|
4582
4725
|
paddingY?: "none" | "p-2" | "p-4" | "p-8" | "p-12" | "p-16" | undefined;
|
|
4583
4726
|
basis?: "0" | undefined;
|
|
4584
4727
|
inline?: boolean | undefined;
|
|
4585
|
-
justifyContent?: "center" | "end" | "start" | "
|
|
4586
|
-
alignItems?: "center" | "end" | "start" | "
|
|
4728
|
+
justifyContent?: "center" | "end" | "start" | "space-between" | "stretch" | undefined;
|
|
4729
|
+
alignItems?: "center" | "end" | "start" | "space-between" | "stretch" | undefined;
|
|
4587
4730
|
grow?: boolean | undefined;
|
|
4588
4731
|
shrink?: boolean | undefined;
|
|
4589
4732
|
} & ({
|
|
@@ -4646,7 +4789,7 @@ export declare type SummaryType = "sum";
|
|
|
4646
4789
|
|
|
4647
4790
|
export declare function Switch({ title, onCheckedChange, id, disabled, checked, value, hideLabel, presentational, ...rest }: SwitchProps): JSX_2.Element;
|
|
4648
4791
|
|
|
4649
|
-
declare interface SwitchProps extends
|
|
4792
|
+
declare interface SwitchProps extends DataAttributes_2 {
|
|
4650
4793
|
/**
|
|
4651
4794
|
* The title of the switch
|
|
4652
4795
|
*/
|
|
@@ -4689,7 +4832,8 @@ export declare type TabItem = {
|
|
|
4689
4832
|
label: string;
|
|
4690
4833
|
index?: boolean;
|
|
4691
4834
|
variant?: "default" | "upsell";
|
|
4692
|
-
|
|
4835
|
+
onClick?: () => void;
|
|
4836
|
+
} & DataAttributes_2 & ({
|
|
4693
4837
|
href: string;
|
|
4694
4838
|
} | {
|
|
4695
4839
|
id: string;
|
|
@@ -4864,7 +5008,7 @@ export declare const Textarea: React.FC<TextareaProps>;
|
|
|
4864
5008
|
|
|
4865
5009
|
declare const Textarea_2: React_2.ForwardRefExoticComponent<Omit<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange" | "onFocus" | "onBlur"> & {
|
|
4866
5010
|
value?: string;
|
|
4867
|
-
} & Pick<InputFieldProps<string>, "label" | "value" | "onChange" | "
|
|
5011
|
+
} & Pick<InputFieldProps<string>, "label" | "value" | "onChange" | "icon" | "onFocus" | "onBlur" | "onKeyDown" | "status" | "maxLength" | "placeholder" | "error" | "hideLabel" | "labelIcon" | "hint" | "clearable" | "onClear"> & React_2.RefAttributes<HTMLTextAreaElement>>;
|
|
4868
5012
|
|
|
4869
5013
|
export declare type TextareaProps = Pick<ComponentProps<typeof Textarea_2>, "disabled" | "onChange" | "value" | "placeholder" | "rows" | "cols" | "label" | "labelIcon" | "icon" | "hideLabel" | "maxLength" | "clearable" | "onBlur" | "onFocus" | "name" | "status" | "hint" | "error">;
|
|
4870
5014
|
|
|
@@ -5015,11 +5159,12 @@ export declare interface ToolbarProps {
|
|
|
5015
5159
|
plainHtmlMode?: boolean;
|
|
5016
5160
|
}
|
|
5017
5161
|
|
|
5018
|
-
export declare
|
|
5162
|
+
export declare const Tooltip: (props: TooltipProps) => default_2.JSX.Element;
|
|
5019
5163
|
|
|
5020
|
-
declare type
|
|
5164
|
+
declare type TooltipInternalProps = {
|
|
5021
5165
|
children: default_2.ReactNode;
|
|
5022
5166
|
shortcut?: ComponentProps<typeof Shortcut>["keys"];
|
|
5167
|
+
delay?: number;
|
|
5023
5168
|
} & ({
|
|
5024
5169
|
label: string;
|
|
5025
5170
|
description?: string;
|
|
@@ -5028,6 +5173,8 @@ declare type TooltipProps = {
|
|
|
5028
5173
|
description: string;
|
|
5029
5174
|
});
|
|
5030
5175
|
|
|
5176
|
+
export declare type TooltipProps = Omit<TooltipInternalProps, (typeof privateProps_4)[number]>;
|
|
5177
|
+
|
|
5031
5178
|
declare interface TranscriptLabels {
|
|
5032
5179
|
deleteBlock: string;
|
|
5033
5180
|
expand: string;
|
|
@@ -5063,7 +5210,7 @@ declare type Type = "bar-chart" | "line-chart";
|
|
|
5063
5210
|
|
|
5064
5211
|
declare namespace Types {
|
|
5065
5212
|
export {
|
|
5066
|
-
|
|
5213
|
+
ActionProps_3 as ActionProps,
|
|
5067
5214
|
OneEmptyStateProps
|
|
5068
5215
|
}
|
|
5069
5216
|
}
|
|
@@ -5191,11 +5338,9 @@ declare type ValueDisplayVisualizationType = "table" | "card" | "list" | (string
|
|
|
5191
5338
|
|
|
5192
5339
|
declare type Variant = "neutral" | "info" | "positive" | "warning" | "critical";
|
|
5193
5340
|
|
|
5194
|
-
declare const variants: readonly ["
|
|
5195
|
-
|
|
5196
|
-
declare const variants_2: readonly ["ai", "critical", "positive", "info", "warning"];
|
|
5341
|
+
declare const variants: readonly ["ai", "critical", "positive", "info", "warning"];
|
|
5197
5342
|
|
|
5198
|
-
declare const
|
|
5343
|
+
declare const variants_2: (props?: ({
|
|
5199
5344
|
aspect?: "small" | "square" | "wide" | undefined;
|
|
5200
5345
|
} & ({
|
|
5201
5346
|
class?: ClassValue;
|
|
@@ -5341,7 +5486,7 @@ export declare interface WidgetProps {
|
|
|
5341
5486
|
};
|
|
5342
5487
|
count?: number;
|
|
5343
5488
|
};
|
|
5344
|
-
action?:
|
|
5489
|
+
action?: F0ButtonProps;
|
|
5345
5490
|
summaries?: Array<{
|
|
5346
5491
|
label: string;
|
|
5347
5492
|
value: string | number;
|
|
@@ -5456,6 +5601,11 @@ declare module "@tiptap/core" {
|
|
|
5456
5601
|
}
|
|
5457
5602
|
|
|
5458
5603
|
|
|
5604
|
+
declare namespace Calendar {
|
|
5605
|
+
var displayName: string;
|
|
5606
|
+
}
|
|
5607
|
+
|
|
5608
|
+
|
|
5459
5609
|
declare module "@tiptap/core" {
|
|
5460
5610
|
interface Commands<ReturnType> {
|
|
5461
5611
|
moodTracker: {
|
|
@@ -5463,8 +5613,3 @@ declare module "@tiptap/core" {
|
|
|
5463
5613
|
};
|
|
5464
5614
|
}
|
|
5465
5615
|
}
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
declare namespace Calendar {
|
|
5469
|
-
var displayName: string;
|
|
5470
|
-
}
|