@umbraco-ui/uui-menu-item 1.9.0 → 1.10.0-rc.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.
@@ -10,12 +10,14 @@ declare const UUIMenuItemElement_base: (new (...args: any[]) => import("@umbraco
10
10
  * @cssprop --uui-menu-item-color-active - text color when active
11
11
  * @cssprop --uui-menu-item-background-color-disabled - background color when disabled
12
12
  * @cssprop --uui-menu-item-color-disabled - text color when disabled
13
- * @cssprop --uui-menu-item-background-color-selected - background color when selected
13
+ * @cssprop --uui-menu-item-background-color-selected - background color when selected
14
14
  * @cssprop --uui-menu-item-color-selected - text color when selected
15
15
  * @cssprop --uui-menu-item-color-background-selected-hover - text color when selected
16
16
  * @fires {UUIMenuItemEvent} show-children - fires when the expand icon is clicked to show nested menu items
17
17
  * @fires {UUIMenuItemEvent} hide-children - fires when the expend icon is clicked to hide nested menu items
18
18
  * @fires {UUIMenuItemEvent} click-label - fires when the label is clicked
19
+ * @fires {UUISelectableEvent} selected - fires when the media card is selected
20
+ * @fires {UUISelectableEvent} deselected - fires when the media card is deselected
19
21
  * @slot - nested menu items go here
20
22
  * @slot icon - icon area
21
23
  * @slot actions - actions area
@@ -32,14 +34,14 @@ export declare class UUIMenuItemElement extends UUIMenuItemElement_base {
32
34
  /**
33
35
  * Controls if nested items should be shown.
34
36
  * @type {boolean}
35
- * @attr
37
+ * @attr show-children
36
38
  * @default false
37
39
  */
38
40
  showChildren: boolean;
39
41
  /**
40
42
  * Shows/hides the caret.
41
43
  * @type {boolean}
42
- * @attr
44
+ * @attr has-children
43
45
  * @default false
44
46
  */
45
47
  hasChildren: boolean;
@@ -74,14 +76,14 @@ export declare class UUIMenuItemElement extends UUIMenuItemElement_base {
74
76
  /**
75
77
  * Sets the selection mode.
76
78
  * @type {string}
77
- * @attr
79
+ * @attr select-mode
78
80
  * @default undefined
79
81
  */
80
82
  selectMode?: 'highlight' | 'persisting';
81
83
  /**
82
84
  * Sets the aria-label for the caret button.
83
85
  * @remark Only used when the menu item has children.
84
- * @attr
86
+ * @attr caret-label
85
87
  * @default 'Reveal the underlying items'
86
88
  */
87
89
  caretLabel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umbraco-ui/uui-menu-item",
3
- "version": "1.9.0",
3
+ "version": "1.10.0-rc.0",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Umbraco",
@@ -30,9 +30,9 @@
30
30
  "custom-elements.json"
31
31
  ],
32
32
  "dependencies": {
33
- "@umbraco-ui/uui-base": "1.9.0",
34
- "@umbraco-ui/uui-loader-bar": "1.9.0",
35
- "@umbraco-ui/uui-symbol-expand": "1.9.0"
33
+ "@umbraco-ui/uui-base": "1.10.0-rc.0",
34
+ "@umbraco-ui/uui-loader-bar": "1.10.0-rc.0",
35
+ "@umbraco-ui/uui-symbol-expand": "1.10.0-rc.0"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "npm run analyze && tsc --build && rollup -c rollup.config.js",
@@ -43,5 +43,5 @@
43
43
  "access": "public"
44
44
  },
45
45
  "homepage": "https://uui.umbraco.com/?path=/story/uui-menu-item",
46
- "gitHead": "37111ea2cebb5883dcef0e682916f1e101013123"
46
+ "gitHead": "f7982264bca0f2db4109c638e458f10719b1c22f"
47
47
  }