@factorialco/f0-react 1.240.2 → 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.
@@ -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: BulkActionDefinition[];
815
- secondary?: BulkActionDefinition[];
817
+ primary?: (BulkActionDefinition | {
818
+ type: "separator";
819
+ })[];
820
+ secondary?: (BulkActionDefinition | {
821
+ type: "separator";
822
+ })[];
816
823
  } | {
817
824
  warningMessage: string;
818
825
  };
@@ -2763,7 +2770,7 @@ export declare type InfiniteScrollPaginatedResponse<TRecord> = BasePaginatedResp
2763
2770
 
2764
2771
  export declare const Input: <T extends string = string>(props: InputProps<T>) => JSX_2.Element;
2765
2772
 
2766
- declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "role" | "status" | "disabled" | "size" | "icon" | "loading" | "hideLabel" | "append" | "maxLength" | "required" | "error" | "labelIcon" | "onClickContent" | "hint" | "clearable" | "isEmpty" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider"> & React_2.RefAttributes<HTMLInputElement>>;
2773
+ declare const Input_2: React_2.ForwardRefExoticComponent<Omit<React_2.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size"> & Pick<InputFieldProps<string>, "label" | "onChange" | "role" | "onFocus" | "onBlur" | "status" | "disabled" | "size" | "icon" | "loading" | "hideLabel" | "append" | "maxLength" | "required" | "error" | "labelIcon" | "onClickContent" | "hint" | "readonly" | "clearable" | "onClear" | "isEmpty" | "emptyValue" | "hideMaxLength" | "appendTag" | "lengthProvider"> & React_2.RefAttributes<HTMLInputElement>>;
2767
2774
 
2768
2775
  declare const INPUTFIELD_SIZES: readonly ["sm", "md"];
2769
2776
 
@@ -2789,11 +2796,13 @@ declare type InputFieldProps<T> = {
2789
2796
  readonly?: boolean;
2790
2797
  clearable?: boolean;
2791
2798
  role?: string;
2799
+ inputRef?: React.Ref<unknown>;
2792
2800
  "aria-controls"?: AriaAttributes["aria-controls"];
2793
2801
  "aria-expanded"?: AriaAttributes["aria-expanded"];
2794
2802
  onClear?: () => void;
2795
2803
  onFocus?: () => void;
2796
2804
  onBlur?: () => void;
2805
+ onKeyDown?: (event: React.KeyboardEvent<HTMLInputElement>) => void;
2797
2806
  canGrow?: boolean;
2798
2807
  children: React.ReactNode & {
2799
2808
  onFocus?: () => void;
@@ -3489,16 +3498,13 @@ export declare interface OneDatePickerProps extends Omit<OneDatePickerPopupProps
3489
3498
 
3490
3499
  export declare const OneDropdownButton: ({ items, onClick, value, ...props }: OneDropdownButtonProps) => JSX_2.Element | undefined;
3491
3500
 
3492
- export declare type OneDropdownButtonItem<T = string> = {
3501
+ export declare type OneDropdownButtonItem<T = string> = Pick<DropdownItemObject, "label" | "icon" | "critical" | "description"> & {
3493
3502
  value: T;
3494
- label: string;
3495
- icon?: IconType;
3496
- critical?: boolean;
3497
3503
  };
3498
3504
 
3499
3505
  export declare type OneDropdownButtonProps<T = string> = {
3500
3506
  size?: OneDropdownButtonSize;
3501
- items: OneDropdownButtonItem<T>[];
3507
+ items: (OneDropdownButtonItem<T> | DropdownItemSeparator)[];
3502
3508
  variant?: OneDropdownButtonVariant;
3503
3509
  value?: T;
3504
3510
  disabled?: boolean;
@@ -4819,7 +4825,7 @@ export declare const Textarea: React.FC<TextareaProps>;
4819
4825
 
4820
4826
  declare const Textarea_2: React_2.ForwardRefExoticComponent<Omit<React_2.TextareaHTMLAttributes<HTMLTextAreaElement>, "value" | "onChange" | "onFocus" | "onBlur"> & {
4821
4827
  value?: string;
4822
- } & Pick<InputFieldProps<string>, "label" | "value" | "onChange" | "onFocus" | "onBlur" | "status" | "icon" | "hideLabel" | "maxLength" | "placeholder" | "error" | "labelIcon" | "hint" | "clearable" | "onClear"> & React_2.RefAttributes<HTMLTextAreaElement>>;
4828
+ } & Pick<InputFieldProps<string>, "label" | "value" | "onChange" | "onFocus" | "onBlur" | "onKeyDown" | "status" | "icon" | "hideLabel" | "maxLength" | "placeholder" | "error" | "labelIcon" | "hint" | "clearable" | "onClear"> & React_2.RefAttributes<HTMLTextAreaElement>>;
4823
4829
 
4824
4830
  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">;
4825
4831
 
@@ -5411,11 +5417,6 @@ declare module "@tiptap/core" {
5411
5417
  }
5412
5418
 
5413
5419
 
5414
- declare namespace Calendar {
5415
- var displayName: string;
5416
- }
5417
-
5418
-
5419
5420
  declare module "@tiptap/core" {
5420
5421
  interface Commands<ReturnType> {
5421
5422
  moodTracker: {
@@ -5423,3 +5424,8 @@ declare module "@tiptap/core" {
5423
5424
  };
5424
5425
  }
5425
5426
  }
5427
+
5428
+
5429
+ declare namespace Calendar {
5430
+ var displayName: string;
5431
+ }