@nimbus-ds/components 5.40.0 → 5.40.1
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 +7 -0
- package/dist/CHANGELOG.md +7 -0
- package/dist/FileUploader/index.d.ts +30 -20
- 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 +31 -21
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
Nimbus is an open-source Design System created by Tiendanube / Nuvemshop's team to empower and enhance more stories
|
|
4
4
|
every day, with simplicity, accessibility, consistency and performance.
|
|
5
5
|
|
|
6
|
+
## 2025-12-11 `5.40.1`
|
|
7
|
+
|
|
8
|
+
#### 🐛 Bug fixes
|
|
9
|
+
|
|
10
|
+
- Fixes `FileUploader` to use `asOverlay` property to render a custom overlay when dragging files over the uploader. Better API usage. ([#388](https://github.com/TiendaNube/nimbus-design-system/pull/388) by [@joacotornello](https://github.com/joacotornello))
|
|
11
|
+
- Fixes `FileUploaderOverlay` component to use the correct background color and border color. ([#388](https://github.com/TiendaNube/nimbus-design-system/pull/388) by [@joacotornello](https://github.com/joacotornello))
|
|
12
|
+
|
|
6
13
|
## 2025-12-09 `5.40.0`
|
|
7
14
|
|
|
8
15
|
#### 🎉 New features
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
Nimbus is an open-source Design System created by Tiendanube / Nuvemshop's team to empower and enhance more stories
|
|
4
4
|
every day, with simplicity, accessibility, consistency and performance.
|
|
5
5
|
|
|
6
|
+
## 2025-12-11 `5.40.1`
|
|
7
|
+
|
|
8
|
+
#### 🐛 Bug fixes
|
|
9
|
+
|
|
10
|
+
- Fixes `FileUploader` to use `asOverlay` property to render a custom overlay when dragging files over the uploader. Better API usage. ([#388](https://github.com/TiendaNube/nimbus-design-system/pull/388) by [@joacotornello](https://github.com/joacotornello))
|
|
11
|
+
- Fixes `FileUploaderOverlay` component to use the correct background color and border color. ([#388](https://github.com/TiendaNube/nimbus-design-system/pull/388) by [@joacotornello](https://github.com/joacotornello))
|
|
12
|
+
|
|
6
13
|
## 2025-12-09 `5.40.0`
|
|
7
14
|
|
|
8
15
|
#### 🎉 New features
|
|
@@ -11,7 +11,7 @@ declare const fileUploader: {
|
|
|
11
11
|
flexDirection?: "row" | "column" | undefined;
|
|
12
12
|
cursor?: Cursor | undefined;
|
|
13
13
|
backgroundColor?: "transparent" | "primary-surface" | "neutral-background" | undefined;
|
|
14
|
-
borderColor?: "transparent" | "primary-interactive" | "ai-
|
|
14
|
+
borderColor?: "transparent" | "primary-interactive" | "ai-generativeInteractiveHover" | undefined;
|
|
15
15
|
}) => string) & {
|
|
16
16
|
properties: Set<"aspectRatio" | "backgroundColor" | "cursor" | "flexDirection" | "borderColor">;
|
|
17
17
|
};
|
|
@@ -32,9 +32,21 @@ declare const fileUploader: {
|
|
|
32
32
|
};
|
|
33
33
|
borderColor: {
|
|
34
34
|
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
35
|
-
"ai-
|
|
35
|
+
"ai-generativeInteractiveHover": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
36
36
|
transparent: string;
|
|
37
37
|
};
|
|
38
|
+
borderRadius: {
|
|
39
|
+
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
40
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
41
|
+
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
42
|
+
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
43
|
+
"4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
44
|
+
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
45
|
+
"6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
46
|
+
full: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
47
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
48
|
+
half: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
49
|
+
};
|
|
38
50
|
};
|
|
39
51
|
classnames: {
|
|
40
52
|
container: string;
|
|
@@ -42,7 +54,10 @@ declare const fileUploader: {
|
|
|
42
54
|
disabled: string;
|
|
43
55
|
dragging: string;
|
|
44
56
|
skeleton: string;
|
|
57
|
+
asOverlay: string;
|
|
45
58
|
overlay: string;
|
|
59
|
+
overlay__content: string;
|
|
60
|
+
overlay__content__text: string;
|
|
46
61
|
overlay__image: string;
|
|
47
62
|
};
|
|
48
63
|
};
|
|
@@ -100,6 +115,11 @@ export interface FileUploaderOverlayProperties {
|
|
|
100
115
|
* @default primary-surface
|
|
101
116
|
*/
|
|
102
117
|
backgroundColor?: keyof typeof fileUploader.properties.backgroundColor;
|
|
118
|
+
/**
|
|
119
|
+
* Border radius of the overlay
|
|
120
|
+
* @default 2
|
|
121
|
+
*/
|
|
122
|
+
borderRadius?: keyof typeof fileUploader.properties.borderRadius;
|
|
103
123
|
/**
|
|
104
124
|
* Content to render inside the overlay
|
|
105
125
|
*/
|
|
@@ -148,15 +168,15 @@ export interface FileUploaderProperties {
|
|
|
148
168
|
/**
|
|
149
169
|
* Callback fired when files are dropped (before validation)
|
|
150
170
|
*/
|
|
151
|
-
onDrop?: (event: DragEvent<HTMLLabelElement>) => void;
|
|
171
|
+
onDrop?: (event: DragEvent<HTMLLabelElement | HTMLDivElement>) => void;
|
|
152
172
|
/**
|
|
153
173
|
* Callback fired when all dropped files are rejected due to file type validation
|
|
154
174
|
*/
|
|
155
|
-
onDropReject?: (event: DragEvent<HTMLLabelElement>) => void;
|
|
175
|
+
onDropReject?: (event: DragEvent<HTMLLabelElement | HTMLDivElement>) => void;
|
|
156
176
|
/**
|
|
157
177
|
* Callback fired when files are successfully accepted and processed
|
|
158
178
|
*/
|
|
159
|
-
onDropSuccess?: (event: DragEvent<HTMLLabelElement>) => void;
|
|
179
|
+
onDropSuccess?: (event: DragEvent<HTMLLabelElement | HTMLDivElement>) => void;
|
|
160
180
|
/**
|
|
161
181
|
* Callback fired when an error occurs during file drop processing
|
|
162
182
|
*/
|
|
@@ -165,21 +185,6 @@ export interface FileUploaderProperties {
|
|
|
165
185
|
* Content to render inside the file uploader container
|
|
166
186
|
*/
|
|
167
187
|
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
188
|
/**
|
|
184
189
|
* Custom overlay element to render when dragging files over the uploader.
|
|
185
190
|
* When defined, this overlay will be displayed instead of children during drag operations.
|
|
@@ -190,6 +195,11 @@ export interface FileUploaderProperties {
|
|
|
190
195
|
* @default false
|
|
191
196
|
*/
|
|
192
197
|
disableClickUpload?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* When true, the file uploader will be rendered as an overlay. Useful for invisible upload areas used along FileUploader.Overlay.
|
|
200
|
+
* @default false
|
|
201
|
+
*/
|
|
202
|
+
asOverlay?: boolean;
|
|
193
203
|
}
|
|
194
204
|
export type FileUploaderProps = FileUploaderProperties & {
|
|
195
205
|
dragOverlay?: ReactElement<FileUploaderOverlayProps>;
|