@opencxh/ui-kit 3.124.10 → 3.125.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.
@@ -46,7 +46,7 @@ export { SettingsRow, SettingsSection, type SettingsRowProps, type SettingsSecti
46
46
  export { SourceChip, type SourceChipProps } from './content/SourceChip';
47
47
  export { Table, type TableAction, type TableColumn, type TableFilter, type TableProps } from './content/Table';
48
48
  export { View, type ViewGroup, type ViewProps } from './content/View';
49
- export { SidebarMenu, type MenuItem } from './navigation/Sidebar';
49
+ export { SidebarMenu, type MenuItem, type MenuItemAction } from './navigation/Sidebar';
50
50
  export { TabBar, Tabs, type TabItem, type TabsProps } from './navigation/Tabs';
51
51
  export { Heading, type HeadingProps } from './typography/Heading';
52
52
  export { Text, type TextProps } from './typography/Text';
@@ -1,8 +1,22 @@
1
1
  import { default as React } from 'react';
2
+ export interface MenuItemAction {
3
+ /** Icoon aan de rechterkant van de rij. */
4
+ icon: React.ReactNode;
5
+ /** Verplicht: aria-label + tooltip, het is een icon-only knop. */
6
+ label: string;
7
+ onClick: () => void;
8
+ /** "hover" (default) = alleen zichtbaar bij hover/focus, "always" = altijd. */
9
+ visibility?: "hover" | "always";
10
+ }
2
11
  export interface MenuItem {
3
12
  icon?: React.ReactNode;
4
13
  label: string;
5
14
  count?: number;
15
+ /**
16
+ * Optionele actie rechts op de rij — verwijderen, pinnen, dempen. Navigeert
17
+ * niet: de knop stopt propagatie en roept alleen zijn eigen onClick aan.
18
+ */
19
+ action?: MenuItemAction;
6
20
  children?: MenuItem[];
7
21
  path?: string;
8
22
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencxh/ui-kit",
3
- "version": "3.124.10",
3
+ "version": "3.125.0",
4
4
  "description": "Theme-aware UI component library for OpenCXH platform",
5
5
  "type": "module",
6
6
  "exports": {