@aurora-ds/components 1.7.20 → 1.7.21
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/cjs/index.js +14 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +14 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2956,6 +2956,14 @@ type MenuItemProps = HTMLAttributes<HTMLLIElement> & {
|
|
|
2956
2956
|
* @a11y Recommended — exposes `aria-haspopup="menu"` and `aria-expanded`.
|
|
2957
2957
|
*/
|
|
2958
2958
|
submenu?: ReactNode;
|
|
2959
|
+
/**
|
|
2960
|
+
* What triggers the submenu to open/close.
|
|
2961
|
+
* - `'hover'` — opens on mouse enter (with a short delay), closes on mouse leave (default).
|
|
2962
|
+
* - `'click'` — opens/closes on click only; the submenu stays open until the user
|
|
2963
|
+
* clicks the trigger again, selects an item, or presses Escape.
|
|
2964
|
+
* @default 'click'
|
|
2965
|
+
*/
|
|
2966
|
+
submenuTrigger?: 'hover' | 'click';
|
|
2959
2967
|
/**
|
|
2960
2968
|
* Direction in which the submenu opens relative to the item.
|
|
2961
2969
|
* - `'right'` — opens to the right, flips left when no room (default).
|