Move `SortSelect` to components package (https://github.com/woocommerce/woocommerce-blocks/pull/11411)
This commit is contained in:
parent
a1a6b2130f
commit
dbcb867141
|
@ -10,7 +10,6 @@ export * from './filter-reset-button';
|
|||
export * from './filter-submit-button';
|
||||
export * from './form';
|
||||
export * from './form-token-field';
|
||||
export * from './label';
|
||||
export * from './load-more-button';
|
||||
export * from './loading-mask';
|
||||
export * from './noninteractive';
|
||||
|
@ -26,7 +25,6 @@ export * from './read-more';
|
|||
export * from './reviews';
|
||||
export * from './sidebar-layout';
|
||||
export * from './snackbar-list';
|
||||
export * from './sort-select';
|
||||
export * from './state-input';
|
||||
export * from './summary';
|
||||
export * from './tabs';
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
* External dependencies
|
||||
*/
|
||||
import { __ } from '@wordpress/i18n';
|
||||
import SortSelect from '@woocommerce/base-components/sort-select';
|
||||
import { SortSelect } from '@woocommerce/blocks-components';
|
||||
|
||||
/**
|
||||
* Internal dependencies
|
||||
*/
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
* External dependencies
|
||||
*/
|
||||
import { __ } from '@wordpress/i18n';
|
||||
import SortSelect from '@woocommerce/base-components/sort-select';
|
||||
import { SortSelect } from '@woocommerce/blocks-components';
|
||||
import type { ChangeEventHandler } from 'react';
|
||||
|
||||
/**
|
||||
|
|
|
@ -7,7 +7,9 @@ jest.mock( '../utils', () => ( {
|
|||
|
||||
jest.mock( '@woocommerce/settings', () => ( {
|
||||
...jest.requireActual( '@woocommerce/settings' ),
|
||||
getSetting: jest.fn().mockReturnValue( true ),
|
||||
getSetting: jest
|
||||
.fn()
|
||||
.mockImplementation( ( setting, defaultValue ) => defaultValue ),
|
||||
} ) );
|
||||
|
||||
/**
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
export { default as CheckboxList } from './checkbox-list';
|
||||
export { default as FormStep } from './form-step';
|
||||
export { Chip, RemovableChip } from './chip';
|
||||
export { default as Label } from './label';
|
||||
export { default as FormStep } from './form-step';
|
||||
export { default as FormattedMonetaryAmount } from './formatted-monetary-amount';
|
||||
export { default as Label } from './label';
|
||||
export {
|
||||
default as RadioControl,
|
||||
RadioControlOption,
|
||||
|
@ -10,5 +10,6 @@ export {
|
|||
} from './radio-control';
|
||||
export type { RadioControlOption as RadioControlOptionType } from './radio-control/types';
|
||||
export { default as RadioControlAccordion } from './radio-control-accordion';
|
||||
export { default as SortSelect } from './sort-select';
|
||||
export { default as Spinner } from './spinner';
|
||||
export { default as Textarea } from './textarea';
|
||||
|
|
|
@ -9,7 +9,7 @@ import type { ChangeEventHandler } from 'react';
|
|||
* Internal dependencies
|
||||
*/
|
||||
import './style.scss';
|
||||
import Label from '../../../../../packages/components/label'; // Imported like this because importing from the components package loads the data stores unnecessarily - not a problem in the front end but would require a lot of unit test rewrites to prevent breaking tests due to incorrect mocks.
|
||||
import Label from '../label'; // Imported like this because importing from the components package loads the data stores unnecessarily - not a problem in the front end but would require a lot of unit test rewrites to prevent breaking tests due to incorrect mocks.
|
||||
|
||||
interface SortSelectProps {
|
||||
/**
|
Loading…
Reference in New Issue