@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
211 lines (206 loc) • 4.69 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"kind": "class",
"description": "",
"name": "Note",
"cssProperties": [
{
"name": "--vvd-note-success-intermediate",
"default": "var(--vvd-color-success-500)"
},
{
"name": "--vvd-note-success-faint",
"default": "var(--vvd-color-success-50)"
},
{
"name": "--vvd-note-success-fierce",
"default": "var(--vvd-color-success-700)"
},
{
"name": "--vvd-note-information-intermediate",
"default": "var(--vvd-color-information-500)"
},
{
"name": "--vvd-note-information-faint",
"default": "var(--vvd-color-information-50)"
},
{
"name": "--vvd-note-information-fierce",
"default": "var(--vvd-color-information-700)"
},
{
"name": "--vvd-note-alert-intermediate",
"default": "var(--vvd-color-alert-500)"
},
{
"name": "--vvd-note-alert-faint",
"default": "var(--vvd-color-alert-50)"
},
{
"name": "--vvd-note-alert-fierce",
"default": "var(--vvd-color-alert-700)"
},
{
"name": "--vvd-note-warning-intermediate",
"default": "var(--vvd-color-warning-300)"
},
{
"name": "--vvd-note-warning-faint",
"default": "var(--vvd-color-warning-50)"
},
{
"name": "--vvd-note-warning-fierce",
"default": "var(--vvd-color-warning-700)"
},
{
"name": "--vvd-note-announcement-intermediate",
"default": "var(--vvd-color-announcement-500)"
},
{
"name": "--vvd-note-announcement-faint",
"default": "var(--vvd-color-announcement-50)"
},
{
"name": "--vvd-note-announcement-fierce",
"default": "var(--vvd-color-announcement-700)"
},
{
"name": "--vvd-note-accent-intermediate",
"default": "var(--vvd-color-neutral-500)"
},
{
"name": "--vvd-note-accent-faint",
"default": "var(--vvd-color-neutral-50)"
},
{
"name": "--vvd-note-accent-fierce",
"default": "var(--vvd-color-neutral-700)"
}
],
"slots": [
{
"description": "Any slotted content will appear below the headline.",
"name": ""
},
{
"description": "The preferred way to add an icon to the component.",
"name": "icon"
}
],
"members": [
{
"kind": "field",
"name": "headline",
"type": {
"text": "string | undefined"
},
"description": "Indicates the note's headline text",
"privacy": "public"
},
{
"kind": "field",
"name": "connotation",
"type": {
"text": "NoteConnotation | undefined"
}
},
{
"kind": "field",
"name": "icon",
"type": {
"text": "string | undefined"
},
"description": "A decorative icon the custom element should have.",
"privacy": "public",
"inheritedFrom": {
"name": "AffixIcon",
"module": "src/shared/patterns/affix.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": "headline",
"type": {
"text": "string | undefined"
},
"description": "Indicates the note's headline text",
"fieldName": "headline"
},
{
"name": "connotation",
"type": {
"text": "NoteConnotation | undefined"
},
"fieldName": "connotation"
},
{
"name": "icon",
"type": {
"text": "string | undefined"
},
"description": "A decorative icon the custom element should have.",
"fieldName": "icon",
"inheritedFrom": {
"name": "AffixIcon",
"module": "src/shared/patterns/affix.ts"
}
}
],
"mixins": [
{
"name": "AffixIcon",
"module": "/src/shared/patterns"
}
],
"superclass": {
"name": "VividElement",
"module": "/src/shared/foundation/vivid-element/vivid-element"
},
"vividComponent": {
"public": true,
"name": "note"
}
}
*/
import wrapper from '@vonage/vivid-react-wrapper'
import { registerNote } from '@vonage/vivid'
registerNote('vvd3')
const VwcNote = wrapper(`vvd3-note`, {
events: [],
attributes: [],
properties: ['headline', 'connotation', 'icon', 'VIVID_VERSION', 'componentName']
})
VwcNote.displayName = 'VwcNote'
export default VwcNote