@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/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
Nimbus is an open-source Design System created by Tiendanube / Nuvemshop's team to empower and enhance more stories
|
|
3
|
+
Nimbus is an open-source Design System created by Tiendanube / Nuvemshop's team to empower and enhance more stories
|
|
4
|
+
every day, with simplicity, accessibility, consistency and performance.
|
|
5
|
+
|
|
6
|
+
## 2025-12-09 `5.40.0`
|
|
7
|
+
|
|
8
|
+
#### 🎉 New features
|
|
9
|
+
|
|
10
|
+
- `FileUploader`: Added `dragOverlay` property to render a custom overlay when dragging files over the uploader. ([#387](https://github.com/TiendaNube/nimbus-design-system/pull/387) by [@joacotornello](https://github.com/joacotornello))
|
|
4
11
|
|
|
5
12
|
## 2025-12-02 `5.39.0`
|
|
6
13
|
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
Nimbus is an open-source Design System created by Tiendanube / Nuvemshop's team to empower and enhance more stories
|
|
3
|
+
Nimbus is an open-source Design System created by Tiendanube / Nuvemshop's team to empower and enhance more stories
|
|
4
|
+
every day, with simplicity, accessibility, consistency and performance.
|
|
5
|
+
|
|
6
|
+
## 2025-12-09 `5.40.0`
|
|
7
|
+
|
|
8
|
+
#### 🎉 New features
|
|
9
|
+
|
|
10
|
+
- `FileUploader`: Added `dragOverlay` property to render a custom overlay when dragging files over the uploader. ([#387](https://github.com/TiendaNube/nimbus-design-system/pull/387) by [@joacotornello](https://github.com/joacotornello))
|
|
4
11
|
|
|
5
12
|
## 2025-12-02 `5.39.0`
|
|
6
13
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v7.2.0
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import { DragEvent, HTMLAttributes, InputHTMLAttributes } from 'react';
|
|
4
|
+
import { DragEvent, HTMLAttributes, InputHTMLAttributes, ReactElement, ReactNode } from 'react';
|
|
5
5
|
|
|
6
6
|
export type AspectRatio = "1/1" | "16/9" | "9/16" | "4/3" | "3/4" | "2/1" | "1/2";
|
|
7
7
|
export type Cursor = "auto" | "pointer" | "not-allowed" | "grab" | "inherit";
|
|
@@ -10,8 +10,10 @@ declare const fileUploader: {
|
|
|
10
10
|
aspectRatio?: "none" | AspectRatio | undefined;
|
|
11
11
|
flexDirection?: "row" | "column" | undefined;
|
|
12
12
|
cursor?: Cursor | undefined;
|
|
13
|
+
backgroundColor?: "transparent" | "primary-surface" | "neutral-background" | undefined;
|
|
14
|
+
borderColor?: "transparent" | "primary-interactive" | "ai-gradientPurpleHigh" | undefined;
|
|
13
15
|
}) => string) & {
|
|
14
|
-
properties: Set<"aspectRatio" | "cursor" | "flexDirection">;
|
|
16
|
+
properties: Set<"aspectRatio" | "backgroundColor" | "cursor" | "flexDirection" | "borderColor">;
|
|
15
17
|
};
|
|
16
18
|
properties: {
|
|
17
19
|
aspectRatio: readonly [
|
|
@@ -23,6 +25,16 @@ declare const fileUploader: {
|
|
|
23
25
|
"column"
|
|
24
26
|
];
|
|
25
27
|
cursor: Cursor[];
|
|
28
|
+
backgroundColor: {
|
|
29
|
+
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
30
|
+
"neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
31
|
+
transparent: string;
|
|
32
|
+
};
|
|
33
|
+
borderColor: {
|
|
34
|
+
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
35
|
+
"ai-gradientPurpleHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
36
|
+
transparent: string;
|
|
37
|
+
};
|
|
26
38
|
};
|
|
27
39
|
classnames: {
|
|
28
40
|
container: string;
|
|
@@ -30,6 +42,8 @@ declare const fileUploader: {
|
|
|
30
42
|
disabled: string;
|
|
31
43
|
dragging: string;
|
|
32
44
|
skeleton: string;
|
|
45
|
+
overlay: string;
|
|
46
|
+
overlay__image: string;
|
|
33
47
|
};
|
|
34
48
|
};
|
|
35
49
|
export interface SkeletonProperties {
|
|
@@ -59,8 +73,47 @@ export type FileUploaderSkeletonProperties = Partial<Pick<SkeletonProps, "width"
|
|
|
59
73
|
};
|
|
60
74
|
export type FileUploaderSkeletonProps = FileUploaderSkeletonProperties;
|
|
61
75
|
export declare const FileUploaderSkeleton: React.FC<FileUploaderSkeletonProps>;
|
|
76
|
+
export interface FileUploaderOverlayProperties {
|
|
77
|
+
/**
|
|
78
|
+
* Title text displayed in the overlay
|
|
79
|
+
*/
|
|
80
|
+
title?: string;
|
|
81
|
+
/**
|
|
82
|
+
* Subtitle text displayed below the title
|
|
83
|
+
*/
|
|
84
|
+
subtitle?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Source URL for the image displayed in the overlay
|
|
87
|
+
*/
|
|
88
|
+
imageSrc?: string;
|
|
89
|
+
/**
|
|
90
|
+
* Alt text for the image
|
|
91
|
+
*/
|
|
92
|
+
imageAlt?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Border color of the overlay
|
|
95
|
+
* @default primary-interactive
|
|
96
|
+
*/
|
|
97
|
+
borderColor?: keyof typeof fileUploader.properties.borderColor;
|
|
98
|
+
/**
|
|
99
|
+
* Background color of the overlay
|
|
100
|
+
* @default primary-surface
|
|
101
|
+
*/
|
|
102
|
+
backgroundColor?: keyof typeof fileUploader.properties.backgroundColor;
|
|
103
|
+
/**
|
|
104
|
+
* Content to render inside the overlay
|
|
105
|
+
*/
|
|
106
|
+
children?: ReactNode;
|
|
107
|
+
}
|
|
108
|
+
export type FileUploaderOverlayProps = FileUploaderOverlayProperties & Omit<HTMLAttributes<HTMLDivElement>, "title">;
|
|
109
|
+
/**
|
|
110
|
+
* Overlay component displayed during drag operations on FileUploader.
|
|
111
|
+
* Renders a customizable visual feedback with optional title, subtitle and image.
|
|
112
|
+
*/
|
|
113
|
+
export declare const FileUploaderOverlay: React.FC<FileUploaderOverlayProps>;
|
|
62
114
|
export interface FileUploaderComponents {
|
|
63
115
|
Skeleton: typeof FileUploaderSkeleton;
|
|
116
|
+
Overlay: typeof FileUploaderOverlay;
|
|
64
117
|
}
|
|
65
118
|
export interface FileUploaderProperties {
|
|
66
119
|
/**
|
|
@@ -108,8 +161,39 @@ export interface FileUploaderProperties {
|
|
|
108
161
|
* Callback fired when an error occurs during file drop processing
|
|
109
162
|
*/
|
|
110
163
|
onError?: (error: Error) => void;
|
|
164
|
+
/**
|
|
165
|
+
* Content to render inside the file uploader container
|
|
166
|
+
*/
|
|
167
|
+
children?: ReactNode;
|
|
168
|
+
/**
|
|
169
|
+
* Hides the default icon when true
|
|
170
|
+
* @default true
|
|
171
|
+
*/
|
|
172
|
+
showIcon?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Border color of the file uploader
|
|
175
|
+
* @default primary-interactive
|
|
176
|
+
*/
|
|
177
|
+
borderColor?: keyof typeof fileUploader.properties.borderColor;
|
|
178
|
+
/**
|
|
179
|
+
* Background color of the file uploader
|
|
180
|
+
* @default primary-surface
|
|
181
|
+
*/
|
|
182
|
+
backgroundColor?: keyof typeof fileUploader.properties.backgroundColor;
|
|
183
|
+
/**
|
|
184
|
+
* Custom overlay element to render when dragging files over the uploader.
|
|
185
|
+
* When defined, this overlay will be displayed instead of children during drag operations.
|
|
186
|
+
*/
|
|
187
|
+
dragOverlay?: ReactNode;
|
|
188
|
+
/**
|
|
189
|
+
* 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.
|
|
190
|
+
* @default false
|
|
191
|
+
*/
|
|
192
|
+
disableClickUpload?: boolean;
|
|
111
193
|
}
|
|
112
|
-
export type FileUploaderProps = FileUploaderProperties &
|
|
194
|
+
export type FileUploaderProps = FileUploaderProperties & {
|
|
195
|
+
dragOverlay?: ReactElement<FileUploaderOverlayProps>;
|
|
196
|
+
} & InputHTMLAttributes<HTMLInputElement>;
|
|
113
197
|
export declare const FileUploader: React.FC<FileUploaderProps> & FileUploaderComponents;
|
|
114
198
|
|
|
115
199
|
export {};
|