UNPKG

@vonage/vivid-react

Version:

Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings

263 lines (258 loc) 4.9 kB
/* * DO NOT EDIT THIS FILE. IT IS GENERATED */ /* Code in this file were generated using following JSON: { "kind": "class", "description": "", "name": "Tooltip", "slots": [ { "description": "Used to set the anchor element for the tooltip.", "name": "anchor" } ], "members": [ { "kind": "field", "name": "text", "type": { "text": "string | undefined" }, "description": "the text of the tooltip\naccepts string", "privacy": "public" }, { "kind": "field", "name": "placement", "type": { "text": "Placement | undefined" } }, { "kind": "field", "name": "open", "type": { "text": "boolean" }, "default": "false" }, { "kind": "method", "name": "#setupAnchor", "parameters": [ { "name": "a", "type": { "text": "HTMLElement" } } ] }, { "kind": "method", "name": "#cleanupAnchor", "parameters": [ { "name": "a", "type": { "text": "HTMLElement" } } ] }, { "kind": "field", "name": "#show", "privacy": "private" }, { "kind": "field", "name": "#hide", "privacy": "private" }, { "kind": "method", "name": "#updateAnchorExpanded" }, { "kind": "method", "name": "#updateListeners" }, { "kind": "field", "name": "#closeOnEscape", "privacy": "private" }, { "kind": "field", "name": "anchor", "type": { "text": "AnchorType | undefined" }, "description": "ID or direct reference to the component's anchor element.", "privacy": "public", "inheritedFrom": { "name": "Anchored", "module": "src/shared/patterns/anchored.ts" } }, { "kind": "field", "name": "#updateAnchorEl", "privacy": "private", "inheritedFrom": { "name": "Anchored", "module": "src/shared/patterns/anchored.ts" } }, { "kind": "field", "name": "#observer", "privacy": "private", "type": { "text": "MutationObserver | undefined" }, "inheritedFrom": { "name": "Anchored", "module": "src/shared/patterns/anchored.ts" } }, { "kind": "field", "name": "#observeMissingAnchor", "privacy": "private", "inheritedFrom": { "name": "Anchored", "module": "src/shared/patterns/anchored.ts" } }, { "kind": "field", "name": "#cleanupObserverIfNeeded", "privacy": "private", "inheritedFrom": { "name": "Anchored", "module": "src/shared/patterns/anchored.ts" } }, { "kind": "field", "name": "VIVID_VERSION", "static": true, "default": "__PACKAGE_VERSION__", "description": "The current version of the Vivid library, which is useful for debugging.\nIt can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.", "type": { "text": "string" }, "inheritedFrom": { "name": "VividElement", "module": "src/shared/foundation/vivid-element/vivid-element.ts" } }, { "kind": "field", "name": "componentName", "type": { "text": "string" }, "static": true, "description": "Core component name, without prefix", "inheritedFrom": { "name": "VividElement", "module": "src/shared/foundation/vivid-element/vivid-element.ts" } } ], "attributes": [ { "name": "text", "type": { "text": "string | undefined" }, "description": "the text of the tooltip\naccepts string", "fieldName": "text" }, { "name": "placement", "type": { "text": "Placement | undefined" }, "fieldName": "placement" }, { "name": "open", "type": { "text": "boolean" }, "default": "false", "fieldName": "open" }, { "name": "anchor", "type": { "text": "AnchorType | undefined" }, "description": "ID or direct reference to the component's anchor element.", "fieldName": "anchor", "inheritedFrom": { "name": "Anchored", "module": "src/shared/patterns/anchored.ts" } } ], "mixins": [ { "name": "Anchored", "module": "/src/shared/patterns/anchored" } ], "superclass": { "name": "VividElement", "module": "/src/shared/foundation/vivid-element/vivid-element" }, "vividComponent": { "public": true, "name": "tooltip" }, "vividTesting": { "selectors": [ { "name": "byText", "args": [ "byText" ] } ], "actions": [], "queries": [ { "name": "open", "args": [ "open", "true" ] }, { "name": "closed", "args": [ "open", "false" ] } ], "refs": [] } } */ import wrapper from '@vonage/vivid-react-wrapper' import { registerTooltip } from '@vonage/vivid' registerTooltip('vvd3') const VwcTooltip = wrapper(`vvd3-tooltip`, { events: [], attributes: [], properties: ['anchor', 'text', 'placement', 'open', 'anchor', 'VIVID_VERSION', 'componentName'] }) VwcTooltip.displayName = 'VwcTooltip' export default VwcTooltip