6a82db326e
* Move isMobileViewport to a helper function in lib * Switch SummaryList to use navigable menu to support up/down (or left/right) arrow key navigation * Switch to a dropdown menu/button combo when on a smaller screen * Ensure aria role & href are only added if the item is a link * Wrap the entire SummaryNumber in a link to match non-mobile use * Update card content to be single line on mobile * Add label to the popover title * Make SummaryNumbers edge-to-edge on smaller screens * Switch to the collapsed/dropdown view on screens <1100px * Adjust offset of arrow icon |
||
---|---|---|
.. | ||
README.md | ||
index.js | ||
input.js | ||
phrases.js | ||
style.scss |
README.md
Calendar
This is wrapper for a react-dates powered calendar.
How to use:
import { DateRange } from 'components/calendar';
render: function() {
return (
<DateRangePicker
start={ moment( 2018-01-01 ) }
end={ moment( 2020-01-01 ) }
onSelect={ this.onSelect }
inValidDays="past"
/>
);
}
Props
start
: A moment date object representing the selected start.null
for no selectionend
: A moment date object representing the selected end.null
for no selectiononSelect
: A function called upon selection of a dateinValidDays
: Optionally invalidate certain days.past
,future
,none
, or function are accepted. A function will be passed to react-dates'isOutsideRange
prop