@versini/ui-menu 7.0.9 → 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 +8 -4
- package/dist/index.js +1 -1
- package/package.json +2 -2
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?:
|
|
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:
|
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@versini/ui-menu",
|
|
3
|
-
"version": "7.0
|
|
3
|
+
"version": "7.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Arno Versini",
|
|
6
6
|
"publishConfig": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"sideEffects": [
|
|
50
50
|
"**/*.css"
|
|
51
51
|
],
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "79557bb87f35d3aa4f9608244ccdd1539eb61d16"
|
|
53
53
|
}
|