Move AdvancedFilters, CompareFilter, DateRangeFilterPicker, and FilterPicker into top-level component directories.
This commit is contained in:
parent
7a28fbc0ff
commit
4dbd7ee176
|
@ -17,7 +17,7 @@ import { isoDateFormat, toMoment } from '@woocommerce/date';
|
|||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import DatePicker from '../../calendar/date-picker';
|
||||
import DatePicker from '../calendar/date-picker';
|
||||
import { textContent } from './utils';
|
||||
import moment from 'moment';
|
||||
|
|
@ -25,8 +25,8 @@ import {
|
|||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import Card from '../../card';
|
||||
import Link from '../../link';
|
||||
import Card from '../card';
|
||||
import Link from '../link';
|
||||
import SelectFilter from './select-filter';
|
||||
import SearchFilter from './search-filter';
|
||||
import NumberFilter from './number-filter';
|
|
@ -12,7 +12,7 @@ import { sprintf, __, _x } from '@wordpress/i18n';
|
|||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import TextControlWithAffixes from '../../text-control-with-affixes';
|
||||
import TextControlWithAffixes from '../text-control-with-affixes';
|
||||
import { textContent } from './utils';
|
||||
|
||||
/**
|
|
@ -13,7 +13,7 @@ import classnames from 'classnames';
|
|||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import Search from '../../search';
|
||||
import Search from '../search';
|
||||
import { textContent } from './utils';
|
||||
|
||||
class SearchFilter extends Component {
|
|
@ -16,9 +16,9 @@ import { getIdsFromQuery, updateQueryString } from '@woocommerce/navigation';
|
|||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import Card from '../../card';
|
||||
import Card from '../card';
|
||||
import CompareButton from './button';
|
||||
import Search from '../../search';
|
||||
import Search from '../search';
|
||||
|
||||
/**
|
||||
* Displays a card + search used to filter results as a comparison between objects.
|
|
@ -14,7 +14,7 @@ import { periods } from '@woocommerce/date';
|
|||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import SegmentedSelection from '../../segmented-selection';
|
||||
import SegmentedSelection from '../segmented-selection';
|
||||
|
||||
class ComparePeriods extends Component {
|
||||
render() {
|
|
@ -13,8 +13,8 @@ import moment from 'moment';
|
|||
* Internal dependencies
|
||||
*/
|
||||
import ComparePeriods from './compare-periods';
|
||||
import DateRange from '../../calendar/date-range';
|
||||
import { H, Section } from '../../section';
|
||||
import DateRange from '../calendar/date-range';
|
||||
import { H, Section } from '../section';
|
||||
import PresetPeriods from './preset-periods';
|
||||
|
||||
class DatePickerContent extends Component {
|
|
@ -16,7 +16,7 @@ import { getCurrentDates, getDateParamsFromQuery, isoDateFormat } from '@woocomm
|
|||
* Internal dependencies
|
||||
*/
|
||||
import DatePickerContent from './content';
|
||||
import DropdownButton from '../../dropdown-button';
|
||||
import DropdownButton from '../dropdown-button';
|
||||
|
||||
const shortDateFormat = __( 'MM/DD/YYYY', 'woocommerce-admin' );
|
||||
|
|
@ -15,7 +15,7 @@ import { presetValues } from '@woocommerce/date';
|
|||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import SegmentedSelection from '../../segmented-selection';
|
||||
import SegmentedSelection from '../segmented-selection';
|
||||
|
||||
class PresetPeriods extends Component {
|
||||
render() {
|
|
@ -18,9 +18,9 @@ import { flattenFilters, getPersistedQuery, updateQueryString } from '@woocommer
|
|||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import AnimationSlider from '../../animation-slider';
|
||||
import DropdownButton from '../../dropdown-button';
|
||||
import Search from '../../search';
|
||||
import AnimationSlider from '../animation-slider';
|
||||
import DropdownButton from '../dropdown-button';
|
||||
import Search from '../search';
|
||||
|
||||
export const DEFAULT_FILTER = 'all';
|
||||
|
|
@ -15,10 +15,10 @@ import { updateQueryString } from '@woocommerce/navigation';
|
|||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
import AdvancedFilters from './advanced';
|
||||
import CompareFilter from './compare';
|
||||
import DateRangeFilterPicker from './date';
|
||||
import FilterPicker from './filter';
|
||||
import AdvancedFilters from '../advanced-filters';
|
||||
import CompareFilter from '../compare-filter';
|
||||
import DateRangeFilterPicker from '../date-range-filter-picker';
|
||||
import FilterPicker from '../filter-picker';
|
||||
import { H, Section } from '../section';
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
// Turn on react-dates classes/styles, see https://github.com/airbnb/react-dates#initialize
|
||||
import 'react-dates/initialize';
|
||||
|
||||
export { default as AdvancedFilters } from './filters/advanced';
|
||||
export { default as AdvancedFilters } from './advanced-filters';
|
||||
export { default as AnimationSlider } from './animation-slider';
|
||||
export { default as Autocomplete } from './autocomplete';
|
||||
export { default as Chart } from './chart';
|
||||
export { default as ChartPlaceholder } from './chart/placeholder';
|
||||
export { default as Card } from './card';
|
||||
export { default as Count } from './count';
|
||||
export { default as CompareFilter } from './filters/compare';
|
||||
export { default as CompareFilter } from './compare-filter';
|
||||
export { default as Date } from './date';
|
||||
export { default as DateRangeFilterPicker } from './filters/date';
|
||||
export { default as DateRangeFilterPicker } from './date-range-filter-picker';
|
||||
export { default as DateRange } from './calendar/date-range';
|
||||
export { default as DatePicker } from './calendar/date-picker';
|
||||
export { default as DropdownButton } from './dropdown-button';
|
||||
|
@ -22,7 +22,7 @@ export { default as EllipsisMenu } from './ellipsis-menu';
|
|||
export { default as EmptyContent } from './empty-content';
|
||||
export { default as Flag } from './flag';
|
||||
export { default as Form } from './form';
|
||||
export { default as FilterPicker } from './filters/filter';
|
||||
export { default as FilterPicker } from './filter-picker';
|
||||
export { default as Gravatar } from './gravatar';
|
||||
export { H, Section } from './section';
|
||||
export { default as ImageAsset } from './image-asset';
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
@import 'dropdown-button/style.scss';
|
||||
@import 'ellipsis-menu/style.scss';
|
||||
@import 'empty-content/style.scss';
|
||||
@import 'filters/advanced/style.scss';
|
||||
@import 'filters/date/style.scss';
|
||||
@import 'filters/filter/style.scss';
|
||||
@import 'advanced-filters/style.scss';
|
||||
@import 'date-range-filter-picker/style.scss';
|
||||
@import 'filter-picker/style.scss';
|
||||
@import 'filters/style.scss';
|
||||
@import 'flag/style.scss';
|
||||
@import 'gravatar/style.scss';
|
||||
|
|
|
@ -23,7 +23,7 @@ import { getIdsFromQuery, getSearchWords, updateQueryString } from '@woocommerce
|
|||
* Internal dependencies
|
||||
*/
|
||||
import Card from '../card';
|
||||
import CompareButton from '../filters/compare/button';
|
||||
import CompareButton from '../compare-filter/button';
|
||||
import DownloadIcon from './download-icon';
|
||||
import EllipsisMenu from '../ellipsis-menu';
|
||||
import MenuItem from '../ellipsis-menu/menu-item';
|
||||
|
|
Loading…
Reference in New Issue