@aurora-ds/components 1.7.16 → 1.7.18

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
@@ -2891,6 +2891,8 @@ type MenuGroupProps = {
2891
2891
 
2892
2892
  /** ARIA role of a menu item. */
2893
2893
  type MenuItemRole = 'menuitem' | 'menuitemcheckbox' | 'menuitemradio' | 'option';
2894
+ /** Height variant of a menu item. */
2895
+ type MenuItemSize = 'default' | 'compact';
2894
2896
  type MenuItemProps = HTMLAttributes<HTMLLIElement> & {
2895
2897
  ref?: Ref<HTMLLIElement>;
2896
2898
  /**
@@ -2927,6 +2929,13 @@ type MenuItemProps = HTMLAttributes<HTMLLIElement> & {
2927
2929
  focused?: boolean;
2928
2930
  /** Whether the item is non-interactive. */
2929
2931
  disabled?: boolean;
2932
+ /**
2933
+ * Height variant of the item.
2934
+ * - `'default'` — fixed height of 40 px, matching `DrawerItem` (default).
2935
+ * - `'compact'` — height driven by padding only; used inside `Select`.
2936
+ * @default 'default'
2937
+ */
2938
+ size?: MenuItemSize;
2930
2939
  /**
2931
2940
  * Whether clicking the item closes the whole menu (in addition to running
2932
2941
  * `onClick`).
@@ -2972,13 +2981,19 @@ declare const Menu: MenuComponent;
2972
2981
  declare const Tooltip: FC<TooltipProps>;
2973
2982
 
2974
2983
  /**
2975
- * Locks scrolling on `document.body` while `active` is true.
2984
+ * Locks **all** currently scrollable elements while `active` is true.
2985
+ *
2986
+ * Instead of assuming the scroll lives on `document.body`, this hook discovers
2987
+ * every element with real overflow and freezes it with `overflow: hidden`.
2988
+ * Elements marked `data-scroll-lock-ignore` — and their entire subtrees — are
2989
+ * skipped so overlays (menus, dialogs, drawers…) remain scrollable internally.
2990
+ *
2991
+ * For `<html>`, `paddingRight` is compensated when a native scrollbar is present
2992
+ * to prevent horizontal layout shift.
2976
2993
  *
2977
- * Preserves the current scroll position and keeps the scrollbar gutter
2978
- * (`overflow-y: scroll`) to avoid horizontal layout shift when the scrollbar
2979
- * disappears. The original styles and scroll position are restored on cleanup.
2994
+ * All original styles are restored on cleanup.
2980
2995
  *
2981
- * @example useBodyScrollLock(isDialogOpen)
2996
+ * @example useBodyScrollLock(isMenuOpen)
2982
2997
  */
2983
2998
  declare const useBodyScrollLock: (active: boolean) => void;
2984
2999
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurora-ds/components",
3
- "version": "1.7.16",
3
+ "version": "1.7.18",
4
4
  "type": "module",
5
5
  "description": "Aurora DS - React Components Library",
6
6
  "main": "dist/cjs/index.js",