@nimbus-ds/components 5.34.0 → 5.35.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/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Generated by dts-bundle-generator v7.2.0
2
2
 
3
3
  import React from 'react';
4
- import { ButtonHTMLAttributes, ComponentPropsWithRef, HTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, PropsWithChildren, ReactElement, ReactNode, SVGAttributes } from 'react';
4
+ import { ButtonHTMLAttributes, ComponentPropsWithRef, DragEvent, HTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, PropsWithChildren, ReactElement, ReactNode, SVGAttributes } from 'react';
5
5
 
6
6
  export interface SkeletonProperties {
7
7
  /**
@@ -846,6 +846,7 @@ declare const fileUploader: {
846
846
  container: string;
847
847
  container__input: string;
848
848
  disabled: string;
849
+ dragging: string;
849
850
  skeleton: string;
850
851
  };
851
852
  };
@@ -2463,12 +2464,28 @@ export interface FileUploaderProperties {
2463
2464
  * Permitted aspect ratios for the size of the file uploader.
2464
2465
  * @default 1/1
2465
2466
  */
2466
- aspectRatio?: typeof fileUploader.properties.aspectRatio[number];
2467
+ aspectRatio?: (typeof fileUploader.properties.aspectRatio)[number];
2467
2468
  /**
2468
2469
  * Defines the position of the placeholder in relation to the icon.
2469
2470
  * @default column
2470
2471
  */
2471
- flexDirection?: typeof fileUploader.properties.flexDirection[number];
2472
+ flexDirection?: (typeof fileUploader.properties.flexDirection)[number];
2473
+ /**
2474
+ * Callback fired when files are dropped (before validation)
2475
+ */
2476
+ onDrop?: (event: DragEvent<HTMLLabelElement>) => void;
2477
+ /**
2478
+ * Callback fired when all dropped files are rejected due to file type validation
2479
+ */
2480
+ onDropReject?: (event: DragEvent<HTMLLabelElement>) => void;
2481
+ /**
2482
+ * Callback fired when files are successfully accepted and processed
2483
+ */
2484
+ onDropSuccess?: (event: DragEvent<HTMLLabelElement>) => void;
2485
+ /**
2486
+ * Callback fired when an error occurs during file drop processing
2487
+ */
2488
+ onError?: (error: Error) => void;
2472
2489
  }
2473
2490
  export type FileUploaderProps = FileUploaderProperties & InputHTMLAttributes<HTMLInputElement>;
2474
2491
  export declare const FileUploader: React.FC<FileUploaderProps> & FileUploaderComponents;