@aurora-ds/components 1.7.20 → 1.8.0
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 +100 -80
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +100 -80
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +13 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2933,7 +2933,11 @@ type MenuItemProps = HTMLAttributes<HTMLLIElement> & {
|
|
|
2933
2933
|
* For checkbox/radio items prefer `checked`.
|
|
2934
2934
|
*/
|
|
2935
2935
|
selected?: boolean;
|
|
2936
|
-
/**
|
|
2936
|
+
/**
|
|
2937
|
+
* Manually highlight this item as keyboard-focused. Usually unnecessary: the
|
|
2938
|
+
* owning menu drives the roving focus automatically via arrow keys. Use this
|
|
2939
|
+
* only to force the highlight (e.g. an externally-controlled active item).
|
|
2940
|
+
*/
|
|
2937
2941
|
focused?: boolean;
|
|
2938
2942
|
/** Whether the item is non-interactive. */
|
|
2939
2943
|
disabled?: boolean;
|
|
@@ -2956,6 +2960,14 @@ type MenuItemProps = HTMLAttributes<HTMLLIElement> & {
|
|
|
2956
2960
|
* @a11y Recommended — exposes `aria-haspopup="menu"` and `aria-expanded`.
|
|
2957
2961
|
*/
|
|
2958
2962
|
submenu?: ReactNode;
|
|
2963
|
+
/**
|
|
2964
|
+
* What triggers the submenu to open/close.
|
|
2965
|
+
* - `'hover'` — opens on mouse enter (with a short delay), closes on mouse leave (default).
|
|
2966
|
+
* - `'click'` — opens/closes on click only; the submenu stays open until the user
|
|
2967
|
+
* clicks the trigger again, selects an item, or presses Escape.
|
|
2968
|
+
* @default 'click'
|
|
2969
|
+
*/
|
|
2970
|
+
submenuTrigger?: 'hover' | 'click';
|
|
2959
2971
|
/**
|
|
2960
2972
|
* Direction in which the submenu opens relative to the item.
|
|
2961
2973
|
* - `'right'` — opens to the right, flips left when no room (default).
|