diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 6100ec0def..40dca5e05e 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -4679,10 +4679,12 @@ None. ### Events -| Event name | Type | Detail | -| :--------- | :-------- | :----- | -| click | forwarded | -- | -| mousedown | forwarded | -- | +| Event name | Type | Detail | +| :--------- | :--------- | :--------------- | +| open | dispatched | any | +| close | dispatched | any | +| click | forwarded | -- | +| mousedown | forwarded | -- | ## `TooltipDefinition` diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index 96a991c2b2..8983f06362 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -13090,6 +13090,8 @@ } ], "events": [ + { "type": "dispatched", "name": "open", "detail": "any" }, + { "type": "dispatched", "name": "close", "detail": "any" }, { "type": "forwarded", "name": "click", "element": "div" }, { "type": "forwarded", "name": "mousedown", "element": "div" } ], diff --git a/src/Tooltip/Tooltip.svelte b/src/Tooltip/Tooltip.svelte index b6191b6fad..2f270bd094 100644 --- a/src/Tooltip/Tooltip.svelte +++ b/src/Tooltip/Tooltip.svelte @@ -1,4 +1,9 @@ - +

Resources are provisioned based on your account's organization.

diff --git a/types/Tooltip/Tooltip.svelte.d.ts b/types/Tooltip/Tooltip.svelte.d.ts index 347c4e9624..0e1fe782e0 100644 --- a/types/Tooltip/Tooltip.svelte.d.ts +++ b/types/Tooltip/Tooltip.svelte.d.ts @@ -91,6 +91,11 @@ export interface TooltipProps export default class Tooltip extends SvelteComponentTyped< TooltipProps, - { click: WindowEventMap["click"]; mousedown: WindowEventMap["mousedown"] }, + { + open: CustomEvent; + close: CustomEvent; + click: WindowEventMap["click"]; + mousedown: WindowEventMap["mousedown"]; + }, { default: {}; icon: {}; triggerText: {} } > {}