@vonage/vivid-react
Version:
Vivid wrapped for easy React usage & IDE autocomplete support & typescript typings
289 lines (284 loc) • 6.36 kB
JavaScript
/*
* DO NOT EDIT THIS FILE. IT IS GENERATED
*/
/*
Code in this file were generated using following JSON:
{
"kind": "class",
"description": "",
"name": "Progress",
"cssProperties": [
{
"name": "--vvd-progress-cta-primary",
"default": "var(--vvd-color-cta-500)"
},
{
"name": "--vvd-progress-cta-soft",
"default": "var(--vvd-color-cta-100)"
},
{
"name": "--vvd-progress-alert-primary",
"default": "var(--vvd-color-alert-500)"
},
{
"name": "--vvd-progress-alert-soft",
"default": "var(--vvd-color-alert-100)"
},
{
"name": "--vvd-progress-success-primary",
"default": "var(--vvd-color-success-500)"
},
{
"name": "--vvd-progress-success-soft",
"default": "var(--vvd-color-success-100)"
},
{
"name": "--vvd-progress-accent-primary",
"default": "var(--vvd-color-canvas-text)"
},
{
"name": "--vvd-progress-accent-soft",
"default": "var(--vvd-color-neutral-100)"
}
],
"members": [
{
"kind": "field",
"name": "shape",
"type": {
"text": "ProgressShape | undefined"
},
"description": "Indicates the progress' shape.",
"privacy": "public"
},
{
"kind": "field",
"name": "connotation",
"type": {
"text": "ProgressConnotation | undefined"
},
"description": "Indicates the progress' connotation.",
"privacy": "public"
},
{
"kind": "field",
"name": "reverse",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates the progress' reverse status.",
"privacy": "public"
},
{
"kind": "field",
"name": "_vividAriaBehaviour",
"default": "'delegate'",
"type": {
"text": "'delegate'"
},
"inheritedFrom": {
"name": "DelegatesAria",
"module": "src/shared/aria/delegates-aria.ts"
}
},
{
"kind": "field",
"name": "value",
"type": {
"text": "number | null"
},
"description": "The value of the progress",
"privacy": "public",
"inheritedFrom": {
"name": "BaseProgress",
"module": "src/shared/foundation/progress/base-progress.ts"
}
},
{
"kind": "field",
"name": "min",
"type": {
"text": "number"
},
"description": "The minimum value",
"privacy": "public",
"inheritedFrom": {
"name": "BaseProgress",
"module": "src/shared/foundation/progress/base-progress.ts"
}
},
{
"kind": "field",
"name": "max",
"type": {
"text": "number"
},
"description": "The maximum value",
"privacy": "public",
"inheritedFrom": {
"name": "BaseProgress",
"module": "src/shared/foundation/progress/base-progress.ts"
}
},
{
"kind": "method",
"name": "maxChanged",
"privacy": "private",
"description": "",
"inheritedFrom": {
"name": "BaseProgress",
"module": "src/shared/foundation/progress/base-progress.ts"
}
},
{
"kind": "field",
"name": "paused",
"type": {
"text": "boolean"
},
"description": "Indicates the progress is paused",
"privacy": "public",
"inheritedFrom": {
"name": "BaseProgress",
"module": "src/shared/foundation/progress/base-progress.ts"
}
},
{
"kind": "method",
"name": "updatePercentComplete",
"privacy": "private",
"inheritedFrom": {
"name": "BaseProgress",
"module": "src/shared/foundation/progress/base-progress.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": "shape",
"type": {
"text": "ProgressShape | undefined"
},
"description": "Indicates the progress' shape.",
"fieldName": "shape"
},
{
"name": "connotation",
"type": {
"text": "ProgressConnotation | undefined"
},
"description": "Indicates the progress' connotation.",
"fieldName": "connotation"
},
{
"name": "reverse",
"type": {
"text": "boolean"
},
"default": "false",
"description": "Indicates the progress' reverse status.",
"fieldName": "reverse"
},
{
"name": "value",
"type": {
"text": "number | null"
},
"description": "The value of the progress",
"fieldName": "value",
"inheritedFrom": {
"name": "BaseProgress",
"module": "src/shared/foundation/progress/base-progress.ts"
}
},
{
"name": "min",
"type": {
"text": "number"
},
"description": "The minimum value",
"fieldName": "min",
"inheritedFrom": {
"name": "BaseProgress",
"module": "src/shared/foundation/progress/base-progress.ts"
}
},
{
"name": "max",
"type": {
"text": "number"
},
"description": "The maximum value",
"fieldName": "max",
"inheritedFrom": {
"name": "BaseProgress",
"module": "src/shared/foundation/progress/base-progress.ts"
}
},
{
"name": "paused",
"type": {
"text": "boolean"
},
"description": "Indicates the progress is paused",
"fieldName": "paused",
"inheritedFrom": {
"name": "BaseProgress",
"module": "src/shared/foundation/progress/base-progress.ts"
}
}
],
"mixins": [
{
"name": "DelegatesAria",
"module": "/src/shared/aria/delegates-aria"
}
],
"superclass": {
"name": "BaseProgress",
"module": "/src/shared/foundation/progress/base-progress"
},
"vividComponent": {
"public": true,
"name": "progress"
}
}
*/
import wrapper from '@vonage/vivid-react-wrapper'
import { registerProgress } from '@vonage/vivid'
registerProgress('vvd3')
const VwcProgress = wrapper(`vvd3-progress`, {
events: [],
attributes: [],
properties: ['shape', 'connotation', 'reverse', '_vividAriaBehaviour', 'value', 'min', 'max', 'paused', 'VIVID_VERSION', 'componentName']
})
VwcProgress.displayName = 'VwcProgress'
export default VwcProgress