UNPKG

carbon-react

Version:

A library of reusable React components and an interface for easily building user interfaces based on Flux.

36 lines (27 loc) 1.04 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _ = require('./'); var _2 = _interopRequireDefault(_); var _definition = require('./../../../demo/utils/definition'); var _definition2 = _interopRequireDefault(_definition); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var definition = new _definition2.default('grouped-character', _2.default, { hiddenProps: ["groups"], propTypes: { groups: "Array", separator: "String", inputWidth: "String" }, propDescriptions: { groups: "Determine groups of characters e.g. [1, 2, 3] would create the following text in the input 'A-BC-DEF'", separator: "Separator to split the character groups. Defaulted to a dash '-'. Must be a non alpha-numeric character", inputWidth: "Inline style to set the width of the component. Used if you want the with to match the character length" }, propValues: { groups: '[2,4,4]' } }); definition.isAnInput(); exports.default = definition;