UNPKG

elliptical-datetime

Version:

Elliptical phrases to handle natural language dates and times

24 lines (20 loc) 792 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.Weekday = undefined; var _elliptical = require('elliptical'); const Weekday = exports.Weekday = { defaultProps: { label: 'day of the week' }, describe({ 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 */