2022-10-04 12:02:28 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import formStepAttributes from '../../form-step/attributes';
|
2022-12-22 13:36:25 +00:00
|
|
|
import { defaultShippingText, defaultLocalPickupText } from './constants';
|
2022-10-04 12:02:28 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
...formStepAttributes( {
|
2022-10-05 11:22:42 +00:00
|
|
|
defaultTitle: __( 'Shipping method', 'woo-gutenberg-products-block' ),
|
2022-10-04 12:02:28 +00:00
|
|
|
defaultDescription: __(
|
|
|
|
'Select how you would like to receive your order.',
|
|
|
|
'woo-gutenberg-products-block'
|
|
|
|
),
|
|
|
|
} ),
|
|
|
|
className: {
|
|
|
|
type: 'string',
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
showIcon: {
|
|
|
|
type: 'boolean',
|
|
|
|
default: true,
|
|
|
|
},
|
|
|
|
showPrice: {
|
|
|
|
type: 'boolean',
|
|
|
|
default: true,
|
|
|
|
},
|
2022-10-05 10:54:48 +00:00
|
|
|
localPickupText: {
|
|
|
|
type: 'string',
|
2022-12-22 13:36:25 +00:00
|
|
|
default: defaultLocalPickupText,
|
2022-10-05 10:54:48 +00:00
|
|
|
},
|
|
|
|
shippingText: {
|
|
|
|
type: 'string',
|
2022-12-22 13:36:25 +00:00
|
|
|
default: defaultShippingText,
|
2022-10-05 10:54:48 +00:00
|
|
|
},
|
2022-10-04 12:02:28 +00:00
|
|
|
lock: {
|
|
|
|
type: 'object',
|
|
|
|
default: {
|
|
|
|
move: true,
|
|
|
|
remove: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|