@featherk/composables 0.10.2 → 0.10.3

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.
@@ -126,8 +126,13 @@ const onSelect = (event: Parameters<typeof menu.handleMenuSelect>[0]) => {
126
126
  #### Types
127
127
 
128
128
  ```ts
129
- export type PopupMenuCloseReason = "keyboard" | "mouse" | null;
130
- export type PopupMenuCloseTrigger = "keyboard" | "mouse";
129
+ export type PopupMenuCloseReason =
130
+ | "keyboard"
131
+ | "mouse-selection"
132
+ | "outside-click"
133
+ | "trigger-click"
134
+ | null;
135
+ export type PopupMenuCloseTrigger = Exclude<PopupMenuCloseReason, null>;
131
136
  export type KendoMenuSelectEvent = {
132
137
  item?: { text?: string };
133
138
  event?: { type?: string } | null;
@@ -140,7 +145,9 @@ export type KendoMenuSelectEvent = {
140
145
  - `aria-expanded` is written to the trigger whenever it is a `<button>`, has `role="button"`, or declares `aria-haspopup`.
141
146
  - Opening focuses the first enabled Kendo Menu item after Vue renders it.
142
147
  - Outside clicks close the menu, while the trigger is ignored to prevent a close/reopen race.
143
- - Selection and Escape preserve keyboard versus mouse modality.
144
- - Mouse-driven closes restore focus to the trigger.
148
+ - Menu selection records keyboard or mouse modality from the selection event type.
149
+ - `Escape` on the trigger or inside the menu uses the keyboard close path.
145
150
  - Keyboard-driven closes focus `resolveFocusTarget()` or `focusTargetRef`, then fall back to the trigger.
151
+ - Mouse selection closes restore focus to the trigger.
152
+ - Outside-click and trigger-click closes do not force focus restoration.
146
153
  - Business-specific actions are never implemented by the composable.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@featherk/composables",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "main": "dist/featherk-composables.umd.js",
5
5
  "module": "dist/featherk-composables.es.js",
6
6
  "types": "dist/index.d.ts",