@nimbus-ds/components 5.5.2 โ†’ 5.5.3

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
@@ -2,6 +2,18 @@
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.3`
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
+ - Added `needRemoveScroll` optional prop to `Sidebar` component. ([#233](https://github.com/TiendaNube/nimbus-design-system/pull/233) by [@juanchigallego](https://github.com/juanchigallego))
11
+ - 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))
12
+
13
+ ### ๐Ÿ“š 3rd party library updates
14
+
15
+ - 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))
16
+
5
17
  ## 2024-03-01 `5.4.2`
6
18
 
7
19
  ### ๐ŸŽ‰ 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<"a" | "button", ButtonBaseProps> & ButtonComponents;
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;
@@ -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<"a" | "button", LinkBaseProps> & LinkComponents;
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
  /**
@@ -3344,6 +3344,11 @@ export interface SidebarProperties extends SidebarSprinkle {
3344
3344
  * @default true
3345
3345
  */
3346
3346
  open?: boolean;
3347
+ /**
3348
+ * Determines if RemoveScroll wraps sidebar's children component.
3349
+ * @default true
3350
+ */
3351
+ needRemoveScroll?: boolean;
3347
3352
  }
3348
3353
  export type SidebarProps = SidebarProperties & HTMLAttributes<HTMLDivElement>;
3349
3354
  export declare const Sidebar: React.FC<SidebarProps> & SidebarComponents;