@versini/ui-menu 7.0.8 → 7.1.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/index.d.ts CHANGED
@@ -36,9 +36,11 @@ export declare const MenuItem: {
36
36
 
37
37
  declare type MenuItemProps = {
38
38
  /**
39
- * The label to use for the menu item.
39
+ * The label to use for the menu item. Accepts any React node so you can
40
+ * compose richer labels (e.g. text plus a `<Badge>`, an icon, or styled
41
+ * inline elements). For a plain text label, pass a string.
40
42
  */
41
- label?: string;
43
+ label?: React.ReactNode;
42
44
  /**
43
45
  * Whether or not the menu item is disabled.
44
46
  * @default false
@@ -150,9 +152,11 @@ export declare const MenuSub: {
150
152
 
151
153
  declare type MenuSubProps = {
152
154
  /**
153
- * The label for the sub-menu trigger.
155
+ * The label for the sub-menu trigger. Accepts any React node so you can
156
+ * compose richer labels (e.g. text plus a `<Badge>`). For a plain text
157
+ * label, pass a string.
154
158
  */
155
- label: string;
159
+ label: React.ReactNode;
156
160
  /**
157
161
  * A React component of type Icon to be placed on the left of the label.
158
162
  */
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- @versini/ui-menu v7.0.8
2
+ @versini/ui-menu v7.1.0
3
3
  © 2026 gizmette.com
4
4
  */
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/ui-menu",
3
- "version": "7.0.8",
3
+ "version": "7.1.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -42,12 +42,12 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@versini/ui-hooks": "6.1.1",
45
- "@versini/ui-icons": "4.27.0",
45
+ "@versini/ui-icons": "4.28.0",
46
46
  "clsx": "2.1.1",
47
47
  "tailwindcss": "4.3.0"
48
48
  },
49
49
  "sideEffects": [
50
50
  "**/*.css"
51
51
  ],
52
- "gitHead": "a4c236d5680901b7581b91eaea816f55fd5b2691"
52
+ "gitHead": "79557bb87f35d3aa4f9608244ccdd1539eb61d16"
53
53
  }