@nimbus-ds/components 5.40.0 → 5.40.2-rc.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 CHANGED
@@ -3,6 +3,19 @@
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-12 `5.40.2`
7
+
8
+ #### 🐛 Bug fixes
9
+
10
+ - Fixes `FileUploaderOverlay` component to use the correct text alignment. ([#392](https://github.com/TiendaNube/nimbus-design-system/pull/392) by [@joacotornello](https://github.com/joacotornello))
11
+
12
+ ## 2025-12-11 `5.40.1`
13
+
14
+ #### 🐛 Bug fixes
15
+
16
+ - 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))
17
+ - 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))
18
+
6
19
  ## 2025-12-09 `5.40.0`
7
20
 
8
21
  #### 🎉 New features
package/dist/CHANGELOG.md CHANGED
@@ -3,6 +3,19 @@
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-12 `5.40.2`
7
+
8
+ #### 🐛 Bug fixes
9
+
10
+ - Fixes `FileUploaderOverlay` component to use the correct text alignment. ([#392](https://github.com/TiendaNube/nimbus-design-system/pull/392) by [@joacotornello](https://github.com/joacotornello))
11
+
12
+ ## 2025-12-11 `5.40.1`
13
+
14
+ #### 🐛 Bug fixes
15
+
16
+ - 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))
17
+ - 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))
18
+
6
19
  ## 2025-12-09 `5.40.0`
7
20
 
8
21
  #### 🎉 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-gradientPurpleHigh" | undefined;
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-gradientPurpleHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
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>;