woocommerce/plugins/woocommerce-admin/client/components/date-picker
Kelly Dwan b0bcce86d8 Add CSS naming conventions following Gutenberg’s standards (https://github.com/woocommerce/woocommerce-admin/pull/99)
* Add CSS naming conventions following Gutenberg’s standards

* Update `woo-dashboard` to `woocommerce-layout`

* Update admin notice container to new classname standard
2018-06-01 10:35:18 -04:00
..
README.md Merge pull request woocommerce/woocommerce-admin#63 from woocommerce/add/segmented-selection 2018-05-24 11:19:21 +12:00
index.js Add CSS naming conventions following Gutenberg’s standards (https://github.com/woocommerce/woocommerce-admin/pull/99) 2018-06-01 10:35:18 -04:00
preset-periods.js Merge pull request woocommerce/woocommerce-admin#63 from woocommerce/add/segmented-selection 2018-05-24 11:19:21 +12:00
style.scss Add CSS naming conventions following Gutenberg’s standards (https://github.com/woocommerce/woocommerce-admin/pull/99) 2018-06-01 10:35:18 -04:00

README.md

Date Picker (Work in Progress)

Select a range of dates or single dates

Usage

<DatePicker period="last_week" compare="previous_year" />

Props

Required props are marked with *.

Name Type Default Description
period* string none Selected period. today, yesterday, week, last_week, month, last_month, quarter, last_quarter, year, last_year, custom
compare* string none Selected period to compare. previous_period, previous_year
start string none If a custom period is selected, this is the start date
end string none If a custom period is selected, this is the end date