elliptical-datetime
Version:
Elliptical phrases to handle natural language dates and times
26 lines (21 loc) • 833 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Weekday = undefined;
var _elliptical = require('elliptical');
var Weekday = exports.Weekday = {
defaultProps: {
label: 'day of the week'
},
describe: function describe(_ref) {
var props = _ref.props;
return (0, _elliptical.createElement)(
'placeholder',
{
label: props.label,
arguments: props.phraseArguments || (props.phraseArguments ? [props.phraseArgument] : [props.label]) },
(0, _elliptical.createElement)('list', { items: [{ text: 'Sunday', value: 0 }, { text: 'Monday', value: 1 }, { text: 'Tuesday', value: 2 }, { text: 'Wednesday', value: 3 }, { text: 'Thursday', value: 4 }, { text: 'Friday', value: 5 }, { text: 'Saturday', value: 6 }] })
);
}
}; /** @jsx createElement */