@opencxh/ui-kit 3.124.11 → 3.128.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.
@@ -44,6 +44,12 @@ export interface FormGroupItem<T = any> {
44
44
  allowEmpty?: boolean;
45
45
  /** Remove field from form data when empty */
46
46
  removeIfEmpty?: boolean;
47
+ /**
48
+ * Uitleg onder het veld: waarom bestaat dit veld, of wat is de consequentie van de
49
+ * keuze. Voor velden waar het label de vraag niet volledig kan stellen — een
50
+ * groep-`description` is te grof zodra een groep meerdere velden heeft.
51
+ */
52
+ help?: string;
47
53
  /** Whether field is hidden */
48
54
  hidden?: boolean;
49
55
  /** Whether field is required */
@@ -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.11",
3
+ "version": "3.128.0",
4
4
  "description": "Theme-aware UI component library for OpenCXH platform",
5
5
  "type": "module",
6
6
  "exports": {