Move AdvancedFilters, CompareFilter, DateRangeFilterPicker, and FilterPicker into top-level component directories.

This commit is contained in:
Jeff Stieler 2019-08-23 13:22:21 -07:00
parent 7a28fbc0ff
commit 4dbd7ee176
24 changed files with 27 additions and 27 deletions

View File

@ -17,7 +17,7 @@ import { isoDateFormat, toMoment } from '@woocommerce/date';
/** /**
* Internal dependencies * Internal dependencies
*/ */
import DatePicker from '../../calendar/date-picker'; import DatePicker from '../calendar/date-picker';
import { textContent } from './utils'; import { textContent } from './utils';
import moment from 'moment'; import moment from 'moment';

View File

@ -25,8 +25,8 @@ import {
/** /**
* Internal dependencies * Internal dependencies
*/ */
import Card from '../../card'; import Card from '../card';
import Link from '../../link'; import Link from '../link';
import SelectFilter from './select-filter'; import SelectFilter from './select-filter';
import SearchFilter from './search-filter'; import SearchFilter from './search-filter';
import NumberFilter from './number-filter'; import NumberFilter from './number-filter';

View File

@ -12,7 +12,7 @@ import { sprintf, __, _x } from '@wordpress/i18n';
/** /**
* Internal dependencies * Internal dependencies
*/ */
import TextControlWithAffixes from '../../text-control-with-affixes'; import TextControlWithAffixes from '../text-control-with-affixes';
import { textContent } from './utils'; import { textContent } from './utils';
/** /**

View File

@ -13,7 +13,7 @@ import classnames from 'classnames';
/** /**
* Internal dependencies * Internal dependencies
*/ */
import Search from '../../search'; import Search from '../search';
import { textContent } from './utils'; import { textContent } from './utils';
class SearchFilter extends Component { class SearchFilter extends Component {

View File

@ -16,9 +16,9 @@ import { getIdsFromQuery, updateQueryString } from '@woocommerce/navigation';
/** /**
* Internal dependencies * Internal dependencies
*/ */
import Card from '../../card'; import Card from '../card';
import CompareButton from './button'; 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. * Displays a card + search used to filter results as a comparison between objects.

View File

@ -14,7 +14,7 @@ import { periods } from '@woocommerce/date';
/** /**
* Internal dependencies * Internal dependencies
*/ */
import SegmentedSelection from '../../segmented-selection'; import SegmentedSelection from '../segmented-selection';
class ComparePeriods extends Component { class ComparePeriods extends Component {
render() { render() {

View File

@ -13,8 +13,8 @@ import moment from 'moment';
* Internal dependencies * Internal dependencies
*/ */
import ComparePeriods from './compare-periods'; import ComparePeriods from './compare-periods';
import DateRange from '../../calendar/date-range'; import DateRange from '../calendar/date-range';
import { H, Section } from '../../section'; import { H, Section } from '../section';
import PresetPeriods from './preset-periods'; import PresetPeriods from './preset-periods';
class DatePickerContent extends Component { class DatePickerContent extends Component {

View File

@ -16,7 +16,7 @@ import { getCurrentDates, getDateParamsFromQuery, isoDateFormat } from '@woocomm
* Internal dependencies * Internal dependencies
*/ */
import DatePickerContent from './content'; import DatePickerContent from './content';
import DropdownButton from '../../dropdown-button'; import DropdownButton from '../dropdown-button';
const shortDateFormat = __( 'MM/DD/YYYY', 'woocommerce-admin' ); const shortDateFormat = __( 'MM/DD/YYYY', 'woocommerce-admin' );

View File

@ -15,7 +15,7 @@ import { presetValues } from '@woocommerce/date';
/** /**
* Internal dependencies * Internal dependencies
*/ */
import SegmentedSelection from '../../segmented-selection'; import SegmentedSelection from '../segmented-selection';
class PresetPeriods extends Component { class PresetPeriods extends Component {
render() { render() {

View File

@ -18,9 +18,9 @@ import { flattenFilters, getPersistedQuery, updateQueryString } from '@woocommer
/** /**
* Internal dependencies * Internal dependencies
*/ */
import AnimationSlider from '../../animation-slider'; import AnimationSlider from '../animation-slider';
import DropdownButton from '../../dropdown-button'; import DropdownButton from '../dropdown-button';
import Search from '../../search'; import Search from '../search';
export const DEFAULT_FILTER = 'all'; export const DEFAULT_FILTER = 'all';

View File

@ -15,10 +15,10 @@ import { updateQueryString } from '@woocommerce/navigation';
/** /**
* Internal dependencies * Internal dependencies
*/ */
import AdvancedFilters from './advanced'; import AdvancedFilters from '../advanced-filters';
import CompareFilter from './compare'; import CompareFilter from '../compare-filter';
import DateRangeFilterPicker from './date'; import DateRangeFilterPicker from '../date-range-filter-picker';
import FilterPicker from './filter'; import FilterPicker from '../filter-picker';
import { H, Section } from '../section'; import { H, Section } from '../section';
/** /**

View File

@ -5,16 +5,16 @@
// Turn on react-dates classes/styles, see https://github.com/airbnb/react-dates#initialize // Turn on react-dates classes/styles, see https://github.com/airbnb/react-dates#initialize
import '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 AnimationSlider } from './animation-slider';
export { default as Autocomplete } from './autocomplete'; export { default as Autocomplete } from './autocomplete';
export { default as Chart } from './chart'; export { default as Chart } from './chart';
export { default as ChartPlaceholder } from './chart/placeholder'; export { default as ChartPlaceholder } from './chart/placeholder';
export { default as Card } from './card'; export { default as Card } from './card';
export { default as Count } from './count'; 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 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 DateRange } from './calendar/date-range';
export { default as DatePicker } from './calendar/date-picker'; export { default as DatePicker } from './calendar/date-picker';
export { default as DropdownButton } from './dropdown-button'; 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 EmptyContent } from './empty-content';
export { default as Flag } from './flag'; export { default as Flag } from './flag';
export { default as Form } from './form'; 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 { default as Gravatar } from './gravatar';
export { H, Section } from './section'; export { H, Section } from './section';
export { default as ImageAsset } from './image-asset'; export { default as ImageAsset } from './image-asset';

View File

@ -12,9 +12,9 @@
@import 'dropdown-button/style.scss'; @import 'dropdown-button/style.scss';
@import 'ellipsis-menu/style.scss'; @import 'ellipsis-menu/style.scss';
@import 'empty-content/style.scss'; @import 'empty-content/style.scss';
@import 'filters/advanced/style.scss'; @import 'advanced-filters/style.scss';
@import 'filters/date/style.scss'; @import 'date-range-filter-picker/style.scss';
@import 'filters/filter/style.scss'; @import 'filter-picker/style.scss';
@import 'filters/style.scss'; @import 'filters/style.scss';
@import 'flag/style.scss'; @import 'flag/style.scss';
@import 'gravatar/style.scss'; @import 'gravatar/style.scss';

View File

@ -23,7 +23,7 @@ import { getIdsFromQuery, getSearchWords, updateQueryString } from '@woocommerce
* Internal dependencies * Internal dependencies
*/ */
import Card from '../card'; import Card from '../card';
import CompareButton from '../filters/compare/button'; import CompareButton from '../compare-filter/button';
import DownloadIcon from './download-icon'; import DownloadIcon from './download-icon';
import EllipsisMenu from '../ellipsis-menu'; import EllipsisMenu from '../ellipsis-menu';
import MenuItem from '../ellipsis-menu/menu-item'; import MenuItem from '../ellipsis-menu/menu-item';