@dinofront/design_system 1.20.9 → 1.20.10

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.
@@ -15,6 +15,8 @@ export interface UseFloatingPositionOptions {
15
15
  shift?: boolean;
16
16
  /** Sets the panel's `min-width` to the anchor's width (e.g. a select-style menu). */
17
17
  matchAnchorWidth?: boolean;
18
+ /** Applies `maxWidth` (or `maxHeight` for horizontal sides) to keep the panel within the viewport. Re-positions after the panel resizes due to text wrapping. */
19
+ constrainToViewport?: boolean;
18
20
  /** Changing this re-measures the panel — for content whose size changes while open. */
19
21
  recomputeKey?: unknown;
20
22
  zIndex?: number;
@@ -32,4 +34,4 @@ export interface FloatingPosition {
32
34
  * dialog) without being clipped by an
33
35
  * `overflow: hidden` ancestor. Recomputes on open, resize, and any
34
36
  * ancestor scroll. */
35
- export declare function useFloatingPosition({ anchor, panel, open, side, align, offset, flip, shift, matchAnchorWidth, recomputeKey, zIndex, }: UseFloatingPositionOptions): FloatingPosition;
37
+ export declare function useFloatingPosition({ anchor, panel, open, side, align, offset, flip, shift, matchAnchorWidth, constrainToViewport, recomputeKey, zIndex, }: UseFloatingPositionOptions): FloatingPosition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dinofront/design_system",
3
- "version": "1.20.9",
3
+ "version": "1.20.10",
4
4
  "description": "Enterprise React component library and design system built on Tailwind CSS.",
5
5
  "type": "module",
6
6
  "license": "MIT",