grafana/ui: Add DatePicker (#35742)

* Move DatePicker to grafana/ui

* Export the pickers

* Reuse TimePicker styles

* Fix date formatting

* Remove mockdate

* Add release tags

* Switch to input type='text'

* Move DatePicker to pickers

* Add mdx files

* Update types

* Update tests
This commit is contained in:
Alex Khomenko
2021-06-16 15:57:12 +03:00
committed by GitHub
parent 477d4197fb
commit 11335d6f6a
43 changed files with 375 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
import { LocalStorageValueProvider } from '../LocalStorageValueProvider';
import { TimeRange, isDateTime, toUtc } from '@grafana/data';
import { TimeRangePickerProps, TimeRangePicker } from '@grafana/ui/src/components/TimePicker/TimeRangePicker';
import { TimeRangePickerProps, TimeRangePicker } from '@grafana/ui';
const LOCAL_STORAGE_KEY = 'grafana.dashboard.timepicker.history';