@nimbus-ds/components 5.2.1-rc.1 β†’ 5.3.0-rc.1

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,9 +2,27 @@
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
- ## 2023-10-02 `5.3.0`
5
+ ## 2023-10-30 `5.3.0`
6
6
 
7
- - Update `Checkbox`, `Chip`, `IconButton`, `Radio`, `Toggle` and `Alert` packages with new color tokens from `@nimbus-ds/tokens` package.
7
+ #### πŸŽ‰ New features
8
+
9
+ ## 2023-10-13 `5.2.1`
10
+
11
+ #### πŸŽ‰ New features
12
+
13
+ - Added `arrow` property to the Component `Tooltip` API. ([#196](https://github.com/TiendaNube/nimbus-design-system/pull/196) by [@juniorconquista](https://github.com/juniorconquista))
14
+ - Added `maxWidth` and `matchReferenceWidth` properties to the Component `Popover` API. ([#196](https://github.com/TiendaNube/nimbus-design-system/pull/196) by [@juniorconquista](https://github.com/juniorconquista))
15
+
16
+ #### πŸ› Bug fixes
17
+
18
+ - Fixed bug where the maximum width of the popover exceeded the maximum size of a screen to the Component `Popover`. ([#196](https://github.com/TiendaNube/nimbus-design-system/pull/196) by [@juniorconquista](https://github.com/juniorconquista))
19
+ - Removed fixed minimum width so that the minimum width respects the content of the popover to the Component `Popover`. ([#196](https://github.com/TiendaNube/nimbus-design-system/pull/196) by [@juniorconquista](https://github.com/juniorconquista))
20
+ - Fixed arrow positioning to the Component `Popover`. ([#196](https://github.com/TiendaNube/nimbus-design-system/pull/196) by [@juniorconquista](https://github.com/juniorconquista))
21
+ - Fixed the positioning of the popover so that if it does not fit in the chosen position, it automatically moves to a position that has positioning space to the Component `Popover`. ([#196](https://github.com/TiendaNube/nimbus-design-system/pull/196) by [@juniorconquista](https://github.com/juniorconquista))
22
+
23
+ #### πŸ“š 3rd party library updates
24
+
25
+ - Updated `@floating-ui/react@0.26.0`. ([#195](https://github.com/TiendaNube/nimbus-design-system/pull/195) by [@juanchigallego](https://github.com/juanchigallego))
8
26
 
9
27
  ## 2023-08-04 `5.2.0`
10
28
 
package/dist/index.d.ts CHANGED
@@ -1452,6 +1452,7 @@ declare const propertiesPopover: {
1452
1452
  "800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1453
1453
  "900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
1454
1454
  };
1455
+ overflow: Overflow[];
1455
1456
  };
1456
1457
  export type PopoverColorProperties = keyof typeof propertiesPopover.color;
1457
1458
  export type PopoverBackgroundColorProperties = keyof typeof propertiesPopover.backgroundColor;
@@ -1460,9 +1461,13 @@ export type PopoverZIndexProperties = keyof typeof propertiesPopover.zIndex;
1460
1461
  export interface PopoverSprinkle {
1461
1462
  /**
1462
1463
  * The width property specifies the width of a popover's content area.
1463
- * @default 17.5rem
1464
+ * @default fit-content
1464
1465
  */
1465
1466
  width?: string | Conditions<string>;
1467
+ /**
1468
+ * The maxWidth property specifies the maximum width of a popover's content area.
1469
+ */
1470
+ maxWidth?: string | Conditions<string>;
1466
1471
  /**
1467
1472
  * The height property specifies the height of a popover's content area.
1468
1473
  */
@@ -1487,6 +1492,10 @@ export interface PopoverSprinkle {
1487
1492
  * @default base
1488
1493
  */
1489
1494
  padding?: PopoverPaddingProperties | Conditions<PopoverPaddingProperties>;
1495
+ /**
1496
+ * The overflow shorthand property sets the desired behavior for an popover's content overflow.
1497
+ */
1498
+ overflow?: Overflow | Conditions<Overflow>;
1490
1499
  }
1491
1500
  declare const spinner: {
1492
1501
  sprinkle: ((props: {
@@ -2480,6 +2489,11 @@ export interface PopoverProperties extends PopoverSprinkle {
2480
2489
  * @default true
2481
2490
  */
2482
2491
  arrow?: boolean;
2492
+ /**
2493
+ * A common feature of select dropdowns is that the dropdown matches the width of the reference regardless of its contents.
2494
+ * @default false
2495
+ */
2496
+ matchReferenceWidth?: boolean;
2483
2497
  /**
2484
2498
  * Position of the popover.
2485
2499
  * @default bottom
@@ -2814,6 +2828,11 @@ export interface TooltipProperties {
2814
2828
  * The text that should appear in the tooltip message.
2815
2829
  */
2816
2830
  content: string;
2831
+ /**
2832
+ * Conditional for displaying the popover arrow.
2833
+ * @default false
2834
+ */
2835
+ arrow?: boolean;
2817
2836
  /**
2818
2837
  * Position of the popover.
2819
2838
  * @default bottom