@nimbus-ds/components 5.5.1 โ 5.5.2-rc.13
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 +11 -0
- package/dist/index.d.ts +46 -3
- package/dist/index.js +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
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
|
+
## 2024-03-18 `5.5.2`
|
|
6
|
+
|
|
7
|
+
### ๐ Bug fixes
|
|
8
|
+
|
|
9
|
+
- Added `RemoveScroll` component from `react-remove-scroll` library to prevent scroll resetting on the body of the `Sidebar` component. ([#233](https://github.com/TiendaNube/nimbus-design-system/pull/233) by [@juanchigallego](https://github.com/juanchigallego))
|
|
10
|
+
- Fixed type bug on expected icon and text color values on `Toast` component. ([#233](https://github.com/TiendaNube/nimbus-design-system/pull/233) by [@juanchigallego](https://github.com/juanchigallego))
|
|
11
|
+
|
|
12
|
+
### ๐ 3rd party library updates
|
|
13
|
+
|
|
14
|
+
- Added `react-remove-scroll@2.5.7` to `Sidebar` component. ([#233](https://github.com/TiendaNube/nimbus-design-system/pull/233) by [@juanchigallego](https://github.com/juanchigallego))
|
|
15
|
+
|
|
5
16
|
## 2024-03-01 `5.4.2`
|
|
6
17
|
|
|
7
18
|
### ๐ New features
|
package/dist/index.d.ts
CHANGED
|
@@ -2177,7 +2177,7 @@ export interface ButtonProperties {
|
|
|
2177
2177
|
disabled?: boolean;
|
|
2178
2178
|
}
|
|
2179
2179
|
export type ButtonBaseProps = ButtonProperties & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
2180
|
-
export declare const Button: PolymorphicForwardRefComponent<"
|
|
2180
|
+
export declare const Button: PolymorphicForwardRefComponent<"button" | "a", ButtonBaseProps> & ButtonComponents;
|
|
2181
2181
|
export type ButtonProps = ComponentPropsWithRef<typeof Button>;
|
|
2182
2182
|
export type CheckboxSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
|
|
2183
2183
|
export type CheckboxSkeletonProps = CheckboxSkeletonProperties;
|
|
@@ -2241,7 +2241,7 @@ export interface ChipProperties {
|
|
|
2241
2241
|
*/
|
|
2242
2242
|
removable?: boolean;
|
|
2243
2243
|
}
|
|
2244
|
-
export type ChipProps = ChipProperties & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
2244
|
+
export type ChipProps = ChipProperties & ButtonHTMLAttributes<HTMLButtonElement | HTMLDivElement>;
|
|
2245
2245
|
export declare const Chip: React.FC<ChipProps> & ChipComponents;
|
|
2246
2246
|
export type FileUploaderSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & Partial<Pick<FileUploaderProps, "aspectRatio">> & {
|
|
2247
2247
|
/**
|
|
@@ -2445,7 +2445,7 @@ export interface LinkProperties {
|
|
|
2445
2445
|
lineHeight?: keyof typeof link.properties.lineHeight;
|
|
2446
2446
|
}
|
|
2447
2447
|
export type LinkBaseProps = LinkProperties & HTMLAttributes<HTMLElement>;
|
|
2448
|
-
export declare const Link: PolymorphicForwardRefComponent<"
|
|
2448
|
+
export declare const Link: PolymorphicForwardRefComponent<"button" | "a", LinkBaseProps> & LinkComponents;
|
|
2449
2449
|
export type LinkProps = ComponentPropsWithRef<typeof Link>;
|
|
2450
2450
|
export type ListSkeletonItemProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
|
|
2451
2451
|
/**
|
|
@@ -3129,6 +3129,44 @@ export interface CardProperties {
|
|
|
3129
3129
|
}
|
|
3130
3130
|
export type CardProps = CardProperties & HTMLAttributes<HTMLElement>;
|
|
3131
3131
|
export declare const Card: React.FC<CardProps> & CardComponents;
|
|
3132
|
+
export interface CollapsibleBodyProperties {
|
|
3133
|
+
/**
|
|
3134
|
+
* The content of the collapsible body.
|
|
3135
|
+
* @TJS-type React.ReactNode
|
|
3136
|
+
*/
|
|
3137
|
+
children: ReactNode;
|
|
3138
|
+
/**
|
|
3139
|
+
* Show Collapsible.Body when state is open or closed.
|
|
3140
|
+
* @default open
|
|
3141
|
+
*/
|
|
3142
|
+
visibleWhen?: "open" | "closed";
|
|
3143
|
+
/**
|
|
3144
|
+
* Set the direction that Collapsible.Body going to open
|
|
3145
|
+
* @default none
|
|
3146
|
+
*/
|
|
3147
|
+
direction?: "top" | "bottom" | "none";
|
|
3148
|
+
}
|
|
3149
|
+
export type CollapsibleBodyProps = CollapsibleBodyProperties & HTMLAttributes<HTMLElement>;
|
|
3150
|
+
declare const CollapsibleBody: React.FC<CollapsibleBodyProps>;
|
|
3151
|
+
export interface CollapsibleItemProperties {
|
|
3152
|
+
/**
|
|
3153
|
+
* The content of the collapsible body.
|
|
3154
|
+
* @TJS-type React.ReactNode
|
|
3155
|
+
*/
|
|
3156
|
+
children: ReactNode;
|
|
3157
|
+
}
|
|
3158
|
+
export type CollapsibleItemProps = CollapsibleItemProperties;
|
|
3159
|
+
declare const CollapsibleItem: React.FC<CollapsibleItemProps>;
|
|
3160
|
+
export interface CollapsibleComponents {
|
|
3161
|
+
Body: typeof CollapsibleBody;
|
|
3162
|
+
Item: typeof CollapsibleItem;
|
|
3163
|
+
}
|
|
3164
|
+
export interface CollapsibleProperties {
|
|
3165
|
+
children?: ReactNode;
|
|
3166
|
+
open?: boolean;
|
|
3167
|
+
}
|
|
3168
|
+
export type CollapsibleBaseProps = CollapsibleProperties & Omit<HTMLAttributes<HTMLElement>, "onChange">;
|
|
3169
|
+
export declare const Collapsible: React.FC<CollapsibleProperties> & CollapsibleComponents;
|
|
3132
3170
|
export interface ModalBodyProperties {
|
|
3133
3171
|
/**
|
|
3134
3172
|
* The content of the modal body.
|
|
@@ -3306,6 +3344,11 @@ export interface SidebarProperties extends SidebarSprinkle {
|
|
|
3306
3344
|
* @default true
|
|
3307
3345
|
*/
|
|
3308
3346
|
open?: boolean;
|
|
3347
|
+
/**
|
|
3348
|
+
* Determines if RemoveScroll wraps sidebar's children component.
|
|
3349
|
+
* @default true
|
|
3350
|
+
*/
|
|
3351
|
+
needRemoveScroll?: boolean;
|
|
3309
3352
|
}
|
|
3310
3353
|
export type SidebarProps = SidebarProperties & HTMLAttributes<HTMLDivElement>;
|
|
3311
3354
|
export declare const Sidebar: React.FC<SidebarProps> & SidebarComponents;
|