diff --git a/packages/dataviews/src/view-grid.tsx b/packages/dataviews/src/layouts/grid/index.tsx similarity index 94% rename from packages/dataviews/src/view-grid.tsx rename to packages/dataviews/src/layouts/grid/index.tsx index 8876d7a4e504db..899f9c09093f50 100644 --- a/packages/dataviews/src/view-grid.tsx +++ b/packages/dataviews/src/layouts/grid/index.tsx @@ -19,11 +19,11 @@ import { __ } from '@wordpress/i18n'; /** * Internal dependencies */ -import ItemActions from './item-actions'; -import SingleSelectionCheckbox from './single-selection-checkbox'; -import { useHasAPossibleBulkAction } from './bulk-actions'; -import type { Action, NormalizedField, ViewGridProps } from './types'; -import type { SetSelection } from './private-types'; +import ItemActions from '../../item-actions'; +import SingleSelectionCheckbox from '../../single-selection-checkbox'; +import { useHasAPossibleBulkAction } from '../../bulk-actions'; +import type { Action, NormalizedField, ViewGridProps } from '../../types'; +import type { SetSelection } from '../../private-types'; interface GridItemProps< Item > { selection: string[]; diff --git a/packages/dataviews/src/layouts.ts b/packages/dataviews/src/layouts/index.ts similarity index 84% rename from packages/dataviews/src/layouts.ts rename to packages/dataviews/src/layouts/index.ts index f8339c0a6b83f7..9c96475777c007 100644 --- a/packages/dataviews/src/layouts.ts +++ b/packages/dataviews/src/layouts/index.ts @@ -12,11 +12,11 @@ import { /** * Internal dependencies */ -import ViewTable from './view-table'; -import ViewGrid from './view-grid'; -import ViewList from './view-list'; -import { LAYOUT_GRID, LAYOUT_LIST, LAYOUT_TABLE } from './constants'; -import type { View } from './types'; +import ViewTable from './table'; +import ViewGrid from './grid'; +import ViewList from './list'; +import { LAYOUT_GRID, LAYOUT_LIST, LAYOUT_TABLE } from '../constants'; +import type { View } from '../types'; export const VIEW_LAYOUTS = [ { diff --git a/packages/dataviews/src/view-list.tsx b/packages/dataviews/src/layouts/list/index.tsx similarity index 98% rename from packages/dataviews/src/view-list.tsx rename to packages/dataviews/src/layouts/list/index.tsx index b094e9a74c0834..bb38f20c02b617 100644 --- a/packages/dataviews/src/view-list.tsx +++ b/packages/dataviews/src/layouts/list/index.tsx @@ -32,10 +32,9 @@ import { useRegistry } from '@wordpress/data'; /** * Internal dependencies */ -import { unlock } from './lock-unlock'; -import type { Action, NormalizedField, ViewListProps } from './types'; - -import { ActionsDropdownMenuGroup, ActionModal } from './item-actions'; +import { unlock } from '../../lock-unlock'; +import { ActionsDropdownMenuGroup, ActionModal } from '../../item-actions'; +import type { Action, NormalizedField, ViewListProps } from '../../types'; interface ListViewItemProps< Item > { actions: Action< Item >[]; diff --git a/packages/dataviews/src/view-table.tsx b/packages/dataviews/src/layouts/table/index.tsx similarity index 97% rename from packages/dataviews/src/view-table.tsx rename to packages/dataviews/src/layouts/table/index.tsx index f560c56fea183f..a842140e642851 100644 --- a/packages/dataviews/src/view-table.tsx +++ b/packages/dataviews/src/layouts/table/index.tsx @@ -32,20 +32,20 @@ import { /** * Internal dependencies */ -import SingleSelectionCheckbox from './single-selection-checkbox'; -import { unlock } from './lock-unlock'; -import ItemActions from './item-actions'; -import { sanitizeOperators } from './utils'; +import SingleSelectionCheckbox from '../../single-selection-checkbox'; +import { unlock } from '../../lock-unlock'; +import ItemActions from '../../item-actions'; +import { sanitizeOperators } from '../../utils'; import { SORTING_DIRECTIONS, sortArrows, sortLabels, sortValues, -} from './constants'; +} from '../../constants'; import { useSomeItemHasAPossibleBulkAction, useHasAPossibleBulkAction, -} from './bulk-actions'; +} from '../../bulk-actions'; import type { Action, NormalizedField, @@ -53,8 +53,8 @@ import type { ViewTable as ViewTableType, ViewTableProps, CombinedField, -} from './types'; -import type { SetSelection } from './private-types'; +} from '../../types'; +import type { SetSelection } from '../../private-types'; const { DropdownMenuV2: DropdownMenu,