@lumx/react 3.1.3 → 3.1.4-alpha-popover.0

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/index.d.ts CHANGED
@@ -720,12 +720,16 @@ interface Offset {
720
720
  * Popover elevation index.
721
721
  */
722
722
  declare type Elevation = 1 | 2 | 3 | 4 | 5;
723
- declare const AnchorWidthOptions: {
723
+ /**
724
+ * Popover fit anchor width options.
725
+ */
726
+ declare const FitAnchorWidth: {
724
727
  readonly MAX_WIDTH: "maxWidth";
725
728
  readonly MIN_WIDTH: "minWidth";
726
729
  readonly WIDTH: "width";
727
730
  };
728
- declare type AnchorWidthOption = ValueOf<typeof AnchorWidthOptions>;
731
+ declare type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
732
+
729
733
  /**
730
734
  * Defines the props of the component.
731
735
  */
@@ -748,7 +752,7 @@ interface PopoverProps extends GenericProps {
748
752
  * - `minWidth` or `true`: popover not smaller than anchor
749
753
  * - `width`: popover equal to the anchor.
750
754
  */
751
- fitToAnchorWidth?: AnchorWidthOption | boolean;
755
+ fitToAnchorWidth?: FitAnchorWidth | boolean;
752
756
  /** Shrink popover if even after flipping there is not enough space. */
753
757
  fitWithinViewportHeight?: boolean;
754
758
  /** Element to focus when opening the popover. */