@nimbus-ds/components 5.5.0 β†’ 5.5.2-rc.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,22 @@
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.
10
+
11
+ ### πŸ“š 3rd party library updates
12
+
13
+ - Added `react-remove-scroll@2.5.7` to `Sidebar` component.
14
+
15
+ ## 2024-03-01 `5.4.2`
16
+
17
+ ### πŸŽ‰ New features
18
+
19
+ - Add `neutral-background` option to `color` properties on `Title` component. ([#224](https://github.com/TiendaNube/nimbus-design-system/pull/224) by [@juanchigallego](https://github.com/juanchigallego))
20
+
5
21
  ## 2024-02-07 `5.4.1`
6
22
 
7
23
  ### πŸ› Bug fixes
package/dist/index.d.ts CHANGED
@@ -1323,6 +1323,7 @@ declare const propertiesTitle: {
1323
1323
  "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1324
1324
  "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1325
1325
  "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1326
+ "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1326
1327
  };
1327
1328
  textAlign: TextAlign[];
1328
1329
  fontSize: {
@@ -2176,7 +2177,7 @@ export interface ButtonProperties {
2176
2177
  disabled?: boolean;
2177
2178
  }
2178
2179
  export type ButtonBaseProps = ButtonProperties & ButtonHTMLAttributes<HTMLButtonElement>;
2179
- export declare const Button: PolymorphicForwardRefComponent<"a" | "button", ButtonBaseProps> & ButtonComponents;
2180
+ export declare const Button: PolymorphicForwardRefComponent<"button" | "a", ButtonBaseProps> & ButtonComponents;
2180
2181
  export type ButtonProps = ComponentPropsWithRef<typeof Button>;
2181
2182
  export type CheckboxSkeletonProperties = Partial<Pick<SkeletonProps, "width" | "data-testid">>;
2182
2183
  export type CheckboxSkeletonProps = CheckboxSkeletonProperties;
@@ -2444,7 +2445,7 @@ export interface LinkProperties {
2444
2445
  lineHeight?: keyof typeof link.properties.lineHeight;
2445
2446
  }
2446
2447
  export type LinkBaseProps = LinkProperties & HTMLAttributes<HTMLElement>;
2447
- export declare const Link: PolymorphicForwardRefComponent<"a" | "button", LinkBaseProps> & LinkComponents;
2448
+ export declare const Link: PolymorphicForwardRefComponent<"button" | "a", LinkBaseProps> & LinkComponents;
2448
2449
  export type LinkProps = ComponentPropsWithRef<typeof Link>;
2449
2450
  export type ListSkeletonItemProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
2450
2451
  /**
@@ -3128,6 +3129,44 @@ export interface CardProperties {
3128
3129
  }
3129
3130
  export type CardProps = CardProperties & HTMLAttributes<HTMLElement>;
3130
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;
3131
3170
  export interface ModalBodyProperties {
3132
3171
  /**
3133
3172
  * The content of the modal body.