diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md
index e565a00a3b..49b4e96840 100644
--- a/COMPONENT_INDEX.md
+++ b/COMPONENT_INDEX.md
@@ -1,6 +1,6 @@
# Component Index
-> 167 components exported from carbon-components-svelte@0.33.0.
+> 168 components exported from carbon-components-svelte@0.33.0.
## Components
@@ -27,6 +27,7 @@
- [`ContextMenu`](#contextmenu)
- [`ContextMenuDivider`](#contextmenudivider)
- [`ContextMenuGroup`](#contextmenugroup)
+- [`ContextMenuInner`](#contextmenuinner)
- [`ContextMenuOption`](#contextmenuoption)
- [`ContextMenuRadioGroup`](#contextmenuradiogroup)
- [`Copy`](#copy)
@@ -737,7 +738,7 @@ None.
| Prop name | Kind | Reactive | Type | Default value | Description |
| :-------- | :--------------- | :------- | :---------------------------------------- | ------------------ | -------------------------------------------------------------------------------- |
-| ref | let | Yes | null | HTMLUListElement | null | Obtain a reference to the unordered list HTML element |
+| ref | let | Yes | HTMLUListElement | null | null | Obtain a reference to the unordered list HTML element |
| y | let | Yes | number | 0 | Specify the vertical offset of the menu position |
| x | let | Yes | number | 0 | Specify the horizontal offset of the menu position |
| open | let | Yes | boolean | false | Set to `true` to open the menu
Either `x` and `y` must be greater than zero |
@@ -750,12 +751,7 @@ None.
### Events
-| Event name | Type | Detail |
-| :--------- | :--------- | :----- |
-| click | forwarded | -- |
-| keydown | forwarded | -- |
-| open | dispatched | -- |
-| close | dispatched | -- |
+None.
## `ContextMenuDivider`
@@ -790,6 +786,32 @@ None.
None.
+## `ContextMenuInner`
+
+### Props
+
+| Prop name | Kind | Reactive | Type | Default value | Description |
+| :-------- | :--------------- | :------- | :---------------------------------------- | ------------------ | -------------------------------------------------------------------------------- |
+| ref | let | Yes | null | HTMLUListElement | null | Obtain a reference to the unordered list HTML element |
+| y | let | Yes | number | 0 | Specify the vertical offset of the menu position |
+| x | let | Yes | number | 0 | Specify the horizontal offset of the menu position |
+| open | let | Yes | boolean | false | Set to `true` to open the menu
Either `x` and `y` must be greater than zero |
+
+### Slots
+
+| Slot name | Default | Props | Fallback |
+| :-------- | :------ | :---- | :------- |
+| -- | Yes | -- | -- |
+
+### Events
+
+| Event name | Type | Detail |
+| :--------- | :--------- | :----- |
+| click | forwarded | -- |
+| keydown | forwarded | -- |
+| open | dispatched | -- |
+| close | dispatched | -- |
+
## `ContextMenuOption`
### Props
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index bccb25f41d..247553689e 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -1,5 +1,5 @@
{
- "total": 167,
+ "total": 168,
"components": [
{
"moduleName": "Accordion",
@@ -1609,7 +1609,7 @@
"name": "ref",
"kind": "let",
"description": "Obtain a reference to the unordered list HTML element",
- "type": "null | HTMLUListElement",
+ "type": "HTMLUListElement | null",
"value": "null",
"isFunction": false,
"constant": false,
@@ -1617,14 +1617,8 @@
}
],
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
- "events": [
- { "type": "forwarded", "name": "click", "element": "ul" },
- { "type": "forwarded", "name": "keydown", "element": "ul" },
- { "type": "dispatched", "name": "open" },
- { "type": "dispatched", "name": "close" }
- ],
- "typedefs": [],
- "rest_props": { "type": "Element", "name": "ul" }
+ "events": [],
+ "typedefs": []
},
{
"moduleName": "ContextMenuDivider",
@@ -1662,6 +1656,61 @@
"events": [],
"typedefs": []
},
+ {
+ "moduleName": "ContextMenuInner",
+ "filePath": "src/ContextMenu/ContextMenuInner.svelte",
+ "props": [
+ {
+ "name": "open",
+ "kind": "let",
+ "description": "Set to `true` to open the menu\nEither `x` and `y` must be greater than zero",
+ "type": "boolean",
+ "value": "false",
+ "isFunction": false,
+ "constant": false,
+ "reactive": true
+ },
+ {
+ "name": "x",
+ "kind": "let",
+ "description": "Specify the horizontal offset of the menu position",
+ "type": "number",
+ "value": "0",
+ "isFunction": false,
+ "constant": false,
+ "reactive": true
+ },
+ {
+ "name": "y",
+ "kind": "let",
+ "description": "Specify the vertical offset of the menu position",
+ "type": "number",
+ "value": "0",
+ "isFunction": false,
+ "constant": false,
+ "reactive": true
+ },
+ {
+ "name": "ref",
+ "kind": "let",
+ "description": "Obtain a reference to the unordered list HTML element",
+ "type": "null | HTMLUListElement",
+ "value": "null",
+ "isFunction": false,
+ "constant": false,
+ "reactive": true
+ }
+ ],
+ "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
+ "events": [
+ { "type": "forwarded", "name": "click", "element": "ul" },
+ { "type": "forwarded", "name": "keydown", "element": "ul" },
+ { "type": "dispatched", "name": "open" },
+ { "type": "dispatched", "name": "close" }
+ ],
+ "typedefs": [],
+ "rest_props": { "type": "Element", "name": "ul" }
+ },
{
"moduleName": "ContextMenuOption",
"filePath": "src/ContextMenu/ContextMenuOption.svelte",
diff --git a/docs/src/pages/components/ContextMenu.svx b/docs/src/pages/components/ContextMenu.svx
index d195fd63c5..d3316073dc 100644
--- a/docs/src/pages/components/ContextMenu.svx
+++ b/docs/src/pages/components/ContextMenu.svx
@@ -1,5 +1,5 @@
---
-components: ["ContextMenu", "ContextMenuGroup", "ContextMenuRadioGroup", "ContextMenuOption", "ContextMenuDivider"]
+components: ["ContextMenu", "ContextMenuInner", "ContextMenuGroup", "ContextMenuRadioGroup", "ContextMenuOption", "ContextMenuDivider"]
---
+
+