From 653a46a2325c55eddc766510b7b6de913bebed26 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Tue, 1 Feb 2022 07:10:58 -0800 Subject: [PATCH] Run "yarn build:docs" --- COMPONENT_INDEX.md | 17 ++++++++++------- docs/src/COMPONENT_API.json | 13 +++++++++++++ src/TooltipDefinition/TooltipDefinition.svelte | 5 +++++ .../TooltipDefinition.svelte.d.ts | 8 ++++++++ 4 files changed, 36 insertions(+), 7 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 6100ec0d..69715621 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -4691,6 +4691,7 @@ None. | Prop name | Kind | Reactive | Type | Default value | Description | | :---------- | :--------------- | :------- | :------------------------------------------------ | ------------------------------------------------ | ----------------------------------------------------- | | ref | let | Yes | null | HTMLButtonElement | null | Obtain a reference to the button HTML element | +| open | let | Yes | boolean | false | Set to `true` to open the tooltip | | tooltipText | let | No | string | "" | Specify the tooltip text | | align | let | No | "start" | "center" | "end" | "center" | Set the alignment of the tooltip relative to the icon | | direction | let | No | "top" | "bottom" | "bottom" | Set the direction of the tooltip relative to the icon | @@ -4705,13 +4706,15 @@ None. ### Events -| Event name | Type | Detail | -| :--------- | :-------- | :----- | -| click | forwarded | -- | -| mouseover | forwarded | -- | -| mouseenter | forwarded | -- | -| mouseleave | forwarded | -- | -| focus | forwarded | -- | +| Event name | Type | Detail | +| :--------- | :--------- | :--------------- | +| open | dispatched | any | +| close | dispatched | any | +| click | forwarded | -- | +| mouseover | forwarded | -- | +| mouseenter | forwarded | -- | +| mouseleave | forwarded | -- | +| focus | forwarded | -- | ## `TooltipFooter` diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 96a991c2..5cd491a6 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -13111,6 +13111,17 @@ "constant": false, "reactive": false }, + { + "name": "open", + "kind": "let", + "description": "Set to `true` to open the tooltip", + "type": "boolean", + "value": "false", + "isFunction": false, + "isFunctionDeclaration": false, + "constant": false, + "reactive": true + }, { "name": "align", "kind": "let", @@ -13166,6 +13177,8 @@ } ], "events": [ + { "type": "dispatched", "name": "open", "detail": "any" }, + { "type": "dispatched", "name": "close", "detail": "any" }, { "type": "forwarded", "name": "click", "element": "button" }, { "type": "forwarded", "name": "mouseover", "element": "button" }, { "type": "forwarded", "name": "mouseenter", "element": "button" }, diff --git a/src/TooltipDefinition/TooltipDefinition.svelte b/src/TooltipDefinition/TooltipDefinition.svelte index b08fdbaf..0cea292e 100644 --- a/src/TooltipDefinition/TooltipDefinition.svelte +++ b/src/TooltipDefinition/TooltipDefinition.svelte @@ -1,4 +1,9 @@