@factorialco/f0-react 1.240.3 → 1.241.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 +11 -7
- package/dist/experimental.js +8055 -8032
- package/dist/f0.d.ts +9 -2
- package/package.json +1 -1
package/dist/experimental.d.ts
CHANGED
|
@@ -808,11 +808,18 @@ export declare type BulkActionDefinition = {
|
|
|
808
808
|
icon?: IconType;
|
|
809
809
|
id: string;
|
|
810
810
|
keepSelection?: boolean;
|
|
811
|
+
critical?: boolean;
|
|
812
|
+
description?: string;
|
|
813
|
+
disabled?: boolean;
|
|
811
814
|
};
|
|
812
815
|
|
|
813
816
|
export declare type BulkActionsDefinition<R extends RecordType, Filters extends FiltersDefinition> = (selectedItems: Parameters<OnBulkActionCallback<R, Filters>>[1]) => {
|
|
814
|
-
primary
|
|
815
|
-
|
|
817
|
+
primary?: (BulkActionDefinition | {
|
|
818
|
+
type: "separator";
|
|
819
|
+
})[];
|
|
820
|
+
secondary?: (BulkActionDefinition | {
|
|
821
|
+
type: "separator";
|
|
822
|
+
})[];
|
|
816
823
|
} | {
|
|
817
824
|
warningMessage: string;
|
|
818
825
|
};
|
|
@@ -3491,16 +3498,13 @@ export declare interface OneDatePickerProps extends Omit<OneDatePickerPopupProps
|
|
|
3491
3498
|
|
|
3492
3499
|
export declare const OneDropdownButton: ({ items, onClick, value, ...props }: OneDropdownButtonProps) => JSX_2.Element | undefined;
|
|
3493
3500
|
|
|
3494
|
-
export declare type OneDropdownButtonItem<T = string> = {
|
|
3501
|
+
export declare type OneDropdownButtonItem<T = string> = Pick<DropdownItemObject, "label" | "icon" | "critical" | "description"> & {
|
|
3495
3502
|
value: T;
|
|
3496
|
-
label: string;
|
|
3497
|
-
icon?: IconType;
|
|
3498
|
-
critical?: boolean;
|
|
3499
3503
|
};
|
|
3500
3504
|
|
|
3501
3505
|
export declare type OneDropdownButtonProps<T = string> = {
|
|
3502
3506
|
size?: OneDropdownButtonSize;
|
|
3503
|
-
items: OneDropdownButtonItem<T>[];
|
|
3507
|
+
items: (OneDropdownButtonItem<T> | DropdownItemSeparator)[];
|
|
3504
3508
|
variant?: OneDropdownButtonVariant;
|
|
3505
3509
|
value?: T;
|
|
3506
3510
|
disabled?: boolean;
|