@frontify/fondue 12.0.9 → 12.0.10

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
@@ -219,6 +219,24 @@ export declare type ActionMenuProps = {
219
219
  focus?: FocusStrategy;
220
220
  border?: boolean;
221
221
  scrollable?: boolean;
222
+ /**
223
+ * @deprecated Use the onClick method available on each `menuItem` in the `menuBlocks` instead.
224
+ * @example
225
+ * <ActionMenu
226
+ menuBlocks={[
227
+ {
228
+ id: 'menu-block-1',
229
+ menuItems: [
230
+ {
231
+ id: 'menu-item-1',
232
+ label: 'Item 1',
233
+ onClick: () => console.log('Item 1 clicked');
234
+ },
235
+ ],
236
+ },
237
+ ]}
238
+ />
239
+ * */
222
240
  onClick?: () => void;
223
241
  };
224
242
 
@@ -334,6 +352,9 @@ export declare type AriaOptionProps = {
334
352
  node: Node_2<object>;
335
353
  isSelected?: boolean;
336
354
  state: TreeState_2<object>;
355
+ /**
356
+ * @deprecated Use `menuItem.onClick` instead
357
+ * */
337
358
  onClick?: () => void;
338
359
  };
339
360