@nimbus-ds/components 5.6.0-rc.1 → 5.6.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 +9 -1
- package/dist/index.d.ts +7 -9
- package/dist/index.js +1 -1
- package/package.json +2 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Nimbus is an open-source Design System created by Tiendanube / Nuvesmhop’s team to empower and enhance more stories every day, with simplicity, accessibility, consistency and performance.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 2025-02-27 `5.5.6`
|
|
6
|
+
|
|
7
|
+
#### 🐛 Bug fixes
|
|
8
|
+
|
|
9
|
+
- Fixed `Tooltip` overflow when screen size is small enough. ([#268](https://github.com/TiendaNube/nimbus-design-system/pull/268) by [@joacotornello](https://github.com/joacotornello))
|
|
10
|
+
|
|
11
|
+
#### 🐛 New features
|
|
12
|
+
|
|
13
|
+
- `Tooltip`: Adds support for maxWidth prop. ([#268](https://github.com/TiendaNube/nimbus-design-system/pull/268) by [@joacotornello](https://github.com/joacotornello))
|
|
6
14
|
|
|
7
15
|
## 2024-12-18 `5.5.5`
|
|
8
16
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1587,6 +1587,12 @@ declare const link: {
|
|
|
1587
1587
|
appearance: Record<"primary" | "danger" | "neutral" | "neutral-background", string>;
|
|
1588
1588
|
};
|
|
1589
1589
|
};
|
|
1590
|
+
export interface TooltipSprinkle {
|
|
1591
|
+
/**
|
|
1592
|
+
* The maxWidth property specifies the maximum width of a popover's content area.
|
|
1593
|
+
*/
|
|
1594
|
+
maxWidth?: string | Conditions<string>;
|
|
1595
|
+
}
|
|
1590
1596
|
declare const thumbnail: {
|
|
1591
1597
|
sprinkle: ((props: {
|
|
1592
1598
|
aspectRatio?: AspectRatio | undefined;
|
|
@@ -2904,7 +2910,7 @@ export interface ToggleProperties {
|
|
|
2904
2910
|
}
|
|
2905
2911
|
export type ToggleProps = ToggleProperties & InputHTMLAttributes<HTMLInputElement>;
|
|
2906
2912
|
export declare const Toggle: React.FC<ToggleProps> & ToggleComponents;
|
|
2907
|
-
export interface TooltipProperties {
|
|
2913
|
+
export interface TooltipProperties extends TooltipSprinkle {
|
|
2908
2914
|
/**
|
|
2909
2915
|
* An HTML element, or a function that returns one. It's used to set the position of the tooltip.
|
|
2910
2916
|
* @TJS-type React.ReactNode
|
|
@@ -3245,10 +3251,6 @@ export interface ModalProperties extends ModalSprinkle {
|
|
|
3245
3251
|
}
|
|
3246
3252
|
export type ModalProps = ModalProperties & HTMLAttributes<HTMLDivElement>;
|
|
3247
3253
|
export declare const Modal: React.FC<ModalProps> & ModalComponents;
|
|
3248
|
-
export interface PaginationItemData {
|
|
3249
|
-
pageNumber: number | string;
|
|
3250
|
-
isCurrent: boolean;
|
|
3251
|
-
}
|
|
3252
3254
|
export interface PaginationProperties {
|
|
3253
3255
|
/**
|
|
3254
3256
|
* The currently selected page.
|
|
@@ -3268,10 +3270,6 @@ export interface PaginationProperties {
|
|
|
3268
3270
|
* @default true
|
|
3269
3271
|
*/
|
|
3270
3272
|
showNumbers?: boolean;
|
|
3271
|
-
/**
|
|
3272
|
-
* Custom render function for pagination items.
|
|
3273
|
-
*/
|
|
3274
|
-
renderItem?: (item: PaginationItemData) => React.ReactNode;
|
|
3275
3273
|
}
|
|
3276
3274
|
export type PaginationProps = PaginationProperties & HTMLAttributes<HTMLElement>;
|
|
3277
3275
|
export declare const Pagination: React.FC<PaginationProps>;
|