@nimbus-ds/components 5.5.0 β 5.5.2-rc.11
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 +17 -0
- package/dist/index.d.ts +46 -2
- package/dist/index.js +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
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
|
+
|
|
16
|
+
## 2024-03-01 `5.4.2`
|
|
17
|
+
|
|
18
|
+
### π New features
|
|
19
|
+
|
|
20
|
+
- 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))
|
|
21
|
+
|
|
5
22
|
## 2024-02-07 `5.4.1`
|
|
6
23
|
|
|
7
24
|
### π 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<"
|
|
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<"
|
|
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.
|
|
@@ -3305,6 +3344,11 @@ export interface SidebarProperties extends SidebarSprinkle {
|
|
|
3305
3344
|
* @default true
|
|
3306
3345
|
*/
|
|
3307
3346
|
open?: boolean;
|
|
3347
|
+
/**
|
|
3348
|
+
* Determines if RemoveScroll wraps sidebar's children component.
|
|
3349
|
+
* @default true
|
|
3350
|
+
*/
|
|
3351
|
+
needRemoveScroll?: boolean;
|
|
3308
3352
|
}
|
|
3309
3353
|
export type SidebarProps = SidebarProperties & HTMLAttributes<HTMLDivElement>;
|
|
3310
3354
|
export declare const Sidebar: React.FC<SidebarProps> & SidebarComponents;
|