UNPKG

@vonage/vivid-react

Version:

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

177 lines (168 loc) 3.95 kB
/* * DO NOT EDIT THIS FILE. IT IS GENERATED */ /* Code in this file were generated using following JSON: { "name": "vwc-keypad", "path": "./../node_modules/@vonage/vwc-keypad/src/vwc-keypad.ts", "attributes": [ { "name": "no-asterisk", "type": "boolean", "default": "false" }, { "name": "no-hash", "type": "boolean", "default": "false" }, { "name": "no-display", "type": "boolean", "default": "false" }, { "name": "actionText", "type": "string", "default": "\"Enter\"" }, { "name": "cancelText", "type": "string", "default": "\"Cancel\"" }, { "name": "digits", "type": "string", "default": "\"\"" }, { "name": "currentPosition", "type": "number", "default": "0" }, { "name": "actionStarted", "type": "boolean", "default": "false" } ], "properties": [ { "name": "noAsterisk", "attribute": "no-asterisk", "type": "boolean", "default": "false", "bindable": false }, { "name": "noHash", "attribute": "no-hash", "type": "boolean", "default": "false", "bindable": false }, { "name": "noDisplay", "attribute": "no-display", "type": "boolean", "default": "false", "bindable": false }, { "name": "actionText", "attribute": "actionText", "type": "string", "default": "\"Enter\"", "bindable": false }, { "name": "cancelText", "attribute": "cancelText", "type": "string", "default": "\"Cancel\"", "bindable": false }, { "name": "digits", "attribute": "digits", "type": "string", "default": "\"\"", "bindable": false }, { "name": "currentPosition", "attribute": "currentPosition", "type": "number", "default": "0", "bindable": false }, { "name": "digitsDisplay", "type": "HTMLTextAreaElement" }, { "name": "actionStarted", "attribute": "actionStarted", "type": "boolean", "default": "false", "bindable": false } ], "events": [ { "name": "digit-added" }, { "name": "digits-sent" }, { "name": "action-ended" } ] } */ import PropTypes from 'prop-types' import wrapper from '@vonage/vivid-react-wrapper' import '@vonage/vwc-keypad' /** * @param {boolean} noAsterisk attribute: <VwcKeypad no-asterisk /> * @param {boolean} noHash attribute: <VwcKeypad no-hash /> * @param {boolean} noDisplay attribute: <VwcKeypad no-display /> * @param {string} actionText attribute: <VwcKeypad actionText /> * @param {string} cancelText attribute: <VwcKeypad cancelText /> * @param {string} digits attribute: <VwcKeypad digits /> * @param {number} currentPosition attribute: <VwcKeypad currentPosition /> * @param {boolean} actionStarted attribute: <VwcKeypad actionStarted /> */ const VwcKeypad = wrapper('vwc-keypad', { events: [{"name":"action-ended"},{"name":"digits-sent"},{"name":"digit-added"}], attributes: [], properties: [] }); VwcKeypad.propTypes = { onDigitAdded: PropTypes.func, onDigitsSent: PropTypes.func, onActionEnded: PropTypes.func, noAsterisk: PropTypes.bool/* default: false *//* attribute: no-asterisk */, noHash: PropTypes.bool/* default: false *//* attribute: no-hash */, noDisplay: PropTypes.bool/* default: false *//* attribute: no-display */, actionText: PropTypes.string/* default: "Enter" *//* attribute: actionText */, cancelText: PropTypes.string/* default: "Cancel" *//* attribute: cancelText */, digits: PropTypes.string/* default: "" *//* attribute: digits */, currentPosition: PropTypes.number/* default: 0 *//* attribute: currentPosition */, actionStarted: PropTypes.bool/* default: false *//* attribute: actionStarted */ } VwcKeypad.defaultProps = { noAsterisk: false, noHash: false, noDisplay: false, actionText: "Enter", cancelText: "Cancel", digits: "", currentPosition: 0, actionStarted: false } VwcKeypad.displayName = 'VwcKeypad' export default VwcKeypad