@aurora-ds/components 1.8.0 → 1.8.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/dist/index.d.ts CHANGED
@@ -2837,6 +2837,13 @@ type UseMenuPositionOptions = {
2837
2837
  minWidth?: number | string;
2838
2838
  /** Gap in px between anchor and menu. @default 4 */
2839
2839
  gap?: number;
2840
+ /**
2841
+ * Vertical offset in px applied when `placement` is `'right'` or `'left'`.
2842
+ * A positive value shifts the panel **upward** — use it to align the panel's
2843
+ * first item with the trigger item by compensating for the panel's paddingTop.
2844
+ * @default 0
2845
+ */
2846
+ verticalOffset?: number;
2840
2847
  /**
2841
2848
  * Where the menu opens relative to the anchor.
2842
2849
  * - `'bottom'` — opens below the anchor (default dropdown).
@@ -3217,7 +3224,7 @@ declare const useListKeyNav: ({ itemCount, enabled, onSelect, isDisabled, loop,
3217
3224
  * Uses a two-pass strategy: first render with `menuHeight = 0`, then a rAF
3218
3225
  * recompute with the actual rendered size to apply any overflow offset.
3219
3226
  */
3220
- declare const useMenuPosition: ({ anchorEl, open, menuRef, minWidth, gap, placement, }: UseMenuPositionOptions) => UseMenuPositionResult;
3227
+ declare const useMenuPosition: ({ anchorEl, open, menuRef, minWidth, gap, verticalOffset, placement, }: UseMenuPositionOptions) => UseMenuPositionResult;
3221
3228
 
3222
3229
  type UseTooltipPositionOptions = {
3223
3230
  /** Preferred placement of the tooltip relative to its trigger. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurora-ds/components",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "type": "module",
5
5
  "description": "Aurora DS - React Components Library",
6
6
  "main": "dist/cjs/index.js",