@nimbus-ds/components 5.39.0 → 5.40.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/CHANGELOG.md +8 -1
- package/dist/CHANGELOG.md +8 -1
- package/dist/FileUploader/index.d.ts +87 -3
- package/dist/FileUploader/index.js +1 -1
- package/dist/Icon/index.d.ts +1 -1
- package/dist/IconButton/index.d.ts +1 -1
- package/dist/components-props.json +1 -1
- package/dist/index.d.ts +83 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -831,8 +831,10 @@ declare const fileUploader: {
|
|
|
831
831
|
aspectRatio?: "none" | AspectRatio | undefined;
|
|
832
832
|
flexDirection?: "row" | "column" | undefined;
|
|
833
833
|
cursor?: Cursor | undefined;
|
|
834
|
+
backgroundColor?: "transparent" | "primary-surface" | "neutral-background" | undefined;
|
|
835
|
+
borderColor?: "transparent" | "primary-interactive" | "ai-gradientPurpleHigh" | undefined;
|
|
834
836
|
}) => string) & {
|
|
835
|
-
properties: Set<"aspectRatio" | "cursor" | "flexDirection">;
|
|
837
|
+
properties: Set<"aspectRatio" | "backgroundColor" | "cursor" | "flexDirection" | "borderColor">;
|
|
836
838
|
};
|
|
837
839
|
properties: {
|
|
838
840
|
aspectRatio: readonly [
|
|
@@ -844,6 +846,16 @@ declare const fileUploader: {
|
|
|
844
846
|
"column"
|
|
845
847
|
];
|
|
846
848
|
cursor: Cursor[];
|
|
849
|
+
backgroundColor: {
|
|
850
|
+
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
851
|
+
"neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
852
|
+
transparent: string;
|
|
853
|
+
};
|
|
854
|
+
borderColor: {
|
|
855
|
+
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
856
|
+
"ai-gradientPurpleHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
857
|
+
transparent: string;
|
|
858
|
+
};
|
|
847
859
|
};
|
|
848
860
|
classnames: {
|
|
849
861
|
container: string;
|
|
@@ -851,11 +863,13 @@ declare const fileUploader: {
|
|
|
851
863
|
disabled: string;
|
|
852
864
|
dragging: string;
|
|
853
865
|
skeleton: string;
|
|
866
|
+
overlay: string;
|
|
867
|
+
overlay__image: string;
|
|
854
868
|
};
|
|
855
869
|
};
|
|
856
870
|
declare const icon: {
|
|
857
871
|
sprinkle: ((props: {
|
|
858
|
-
color?: "currentColor" | "primary-interactive" | "primary-surface" | "primary-textLow" | "success-textLow" | "success-surface" | "warning-interactive" | "warning-surface" | "warning-textLow" | "danger-interactive" | "danger-surface" | "danger-textLow" | "neutral-background" | "neutral-interactive" | "neutral-surface" | "neutral-textLow" | "neutral-textHigh" | "success-interactive" | "ai-generative" | "primary-textHigh" | "success-textHigh" | "warning-textHigh" | "danger-textHigh" | "neutral-textDisabled" |
|
|
872
|
+
color?: "currentColor" | "primary-interactive" | "primary-surface" | "primary-textLow" | "success-textLow" | "success-surface" | "warning-interactive" | "warning-surface" | "warning-textLow" | "danger-interactive" | "danger-surface" | "danger-textLow" | "neutral-background" | "neutral-interactive" | "neutral-surface" | "neutral-textLow" | "neutral-textHigh" | "success-interactive" | "ai-generative" | "ai-gradientPurpleHigh" | "primary-textHigh" | "success-textHigh" | "warning-textHigh" | "danger-textHigh" | "neutral-textDisabled" | undefined;
|
|
859
873
|
cursor?: Cursor | undefined;
|
|
860
874
|
}) => string) & {
|
|
861
875
|
properties: Set<"color" | "cursor">;
|
|
@@ -2446,8 +2460,43 @@ export type FileUploaderSkeletonProperties = Partial<Pick<SkeletonProps, "width"
|
|
|
2446
2460
|
};
|
|
2447
2461
|
export type FileUploaderSkeletonProps = FileUploaderSkeletonProperties;
|
|
2448
2462
|
declare const FileUploaderSkeleton: React.FC<FileUploaderSkeletonProps>;
|
|
2463
|
+
export interface FileUploaderOverlayProperties {
|
|
2464
|
+
/**
|
|
2465
|
+
* Title text displayed in the overlay
|
|
2466
|
+
*/
|
|
2467
|
+
title?: string;
|
|
2468
|
+
/**
|
|
2469
|
+
* Subtitle text displayed below the title
|
|
2470
|
+
*/
|
|
2471
|
+
subtitle?: string;
|
|
2472
|
+
/**
|
|
2473
|
+
* Source URL for the image displayed in the overlay
|
|
2474
|
+
*/
|
|
2475
|
+
imageSrc?: string;
|
|
2476
|
+
/**
|
|
2477
|
+
* Alt text for the image
|
|
2478
|
+
*/
|
|
2479
|
+
imageAlt?: string;
|
|
2480
|
+
/**
|
|
2481
|
+
* Border color of the overlay
|
|
2482
|
+
* @default primary-interactive
|
|
2483
|
+
*/
|
|
2484
|
+
borderColor?: keyof typeof fileUploader.properties.borderColor;
|
|
2485
|
+
/**
|
|
2486
|
+
* Background color of the overlay
|
|
2487
|
+
* @default primary-surface
|
|
2488
|
+
*/
|
|
2489
|
+
backgroundColor?: keyof typeof fileUploader.properties.backgroundColor;
|
|
2490
|
+
/**
|
|
2491
|
+
* Content to render inside the overlay
|
|
2492
|
+
*/
|
|
2493
|
+
children?: ReactNode;
|
|
2494
|
+
}
|
|
2495
|
+
export type FileUploaderOverlayProps = FileUploaderOverlayProperties & Omit<HTMLAttributes<HTMLDivElement>, "title">;
|
|
2496
|
+
declare const FileUploaderOverlay: React.FC<FileUploaderOverlayProps>;
|
|
2449
2497
|
export interface FileUploaderComponents {
|
|
2450
2498
|
Skeleton: typeof FileUploaderSkeleton;
|
|
2499
|
+
Overlay: typeof FileUploaderOverlay;
|
|
2451
2500
|
}
|
|
2452
2501
|
export interface FileUploaderProperties {
|
|
2453
2502
|
/**
|
|
@@ -2495,8 +2544,39 @@ export interface FileUploaderProperties {
|
|
|
2495
2544
|
* Callback fired when an error occurs during file drop processing
|
|
2496
2545
|
*/
|
|
2497
2546
|
onError?: (error: Error) => void;
|
|
2547
|
+
/**
|
|
2548
|
+
* Content to render inside the file uploader container
|
|
2549
|
+
*/
|
|
2550
|
+
children?: ReactNode;
|
|
2551
|
+
/**
|
|
2552
|
+
* Hides the default icon when true
|
|
2553
|
+
* @default true
|
|
2554
|
+
*/
|
|
2555
|
+
showIcon?: boolean;
|
|
2556
|
+
/**
|
|
2557
|
+
* Border color of the file uploader
|
|
2558
|
+
* @default primary-interactive
|
|
2559
|
+
*/
|
|
2560
|
+
borderColor?: keyof typeof fileUploader.properties.borderColor;
|
|
2561
|
+
/**
|
|
2562
|
+
* Background color of the file uploader
|
|
2563
|
+
* @default primary-surface
|
|
2564
|
+
*/
|
|
2565
|
+
backgroundColor?: keyof typeof fileUploader.properties.backgroundColor;
|
|
2566
|
+
/**
|
|
2567
|
+
* Custom overlay element to render when dragging files over the uploader.
|
|
2568
|
+
* When defined, this overlay will be displayed instead of children during drag operations.
|
|
2569
|
+
*/
|
|
2570
|
+
dragOverlay?: ReactNode;
|
|
2571
|
+
/**
|
|
2572
|
+
* When true, the file uploader will not be clickable and files can only be uploaded by dragging and dropping. Useful for invisible upload areas used along FileUploader.Overlay.
|
|
2573
|
+
* @default false
|
|
2574
|
+
*/
|
|
2575
|
+
disableClickUpload?: boolean;
|
|
2498
2576
|
}
|
|
2499
|
-
export type FileUploaderProps = FileUploaderProperties &
|
|
2577
|
+
export type FileUploaderProps = FileUploaderProperties & {
|
|
2578
|
+
dragOverlay?: ReactElement<FileUploaderOverlayProps>;
|
|
2579
|
+
} & InputHTMLAttributes<HTMLInputElement>;
|
|
2500
2580
|
export declare const FileUploader: React.FC<FileUploaderProps> & FileUploaderComponents;
|
|
2501
2581
|
export type IconSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
|
|
2502
2582
|
/**
|