@lumx/react 3.0.6-alpha.1 → 3.0.6-alpha.2

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
@@ -63,7 +63,10 @@ interface AutocompleteProps extends GenericProps, HasTheme {
63
63
  */
64
64
  placement?: Placement;
65
65
  /**
66
- * Whether the dropdown should fit to the anchor width or not.
66
+ * Manage dropdown width:
67
+ * - `maxWidth`: dropdown not bigger than anchor
68
+ * - `minWidth` or `true`: dropdown not smaller than anchor
69
+ * - `width`: dropdown equal to the anchor.
67
70
  * @see {@link DropdownProps#fitToAnchorWidth}
68
71
  */
69
72
  fitToAnchorWidth?: DropdownProps['fitToAnchorWidth'];
@@ -739,7 +742,12 @@ interface PopoverProps extends GenericProps {
739
742
  closeOnEscape?: boolean;
740
743
  /** Shadow elevation. */
741
744
  elevation?: Elevation;
742
- /** manage popover size to not be bigger (`width` & `maxWidth`) or smaller (`width`, `minWidth`, `true`) than the anchor. */
745
+ /**
746
+ * Manage popover width:
747
+ * - `maxWidth`: popover not bigger than anchor
748
+ * - `minWidth` or `true`: popover not smaller than anchor
749
+ * - `width`: popover equal to the anchor.
750
+ */
743
751
  fitToAnchorWidth?: AnchorWidthOption | boolean;
744
752
  /** Shrink popover if even after flipping there is not enough space. */
745
753
  fitWithinViewportHeight?: boolean;
@@ -799,7 +807,10 @@ interface DropdownProps extends GenericProps {
799
807
  */
800
808
  closeOnEscape?: boolean;
801
809
  /**
802
- * Whether the dropdown should fit to the anchor width (if dropdown is smaller) or not.
810
+ * Manage dropdown width:
811
+ * - `maxWidth`: dropdown not bigger than anchor
812
+ * - `minWidth` or `true`: dropdown not smaller than anchor
813
+ * - `width`: dropdown equal to the anchor.
803
814
  * @see {@link PopoverProps#fitToAnchorWidth}
804
815
  */
805
816
  fitToAnchorWidth?: PopoverProps['fitToAnchorWidth'];