woocommerce/plugins/woocommerce-blocks/assets/js/blocks/checkout/inner-blocks/checkout-shipping-method-block/attributes.tsx

48 lines
834 B
TypeScript
Raw Normal View History

2022-10-04 12:02:28 +00:00
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
/**
* Internal dependencies
*/
import formStepAttributes from '../../form-step/attributes';
import { defaultShippingText, defaultLocalPickupText } from './constants';
2022-10-04 12:02:28 +00:00
export default {
...formStepAttributes( {
defaultTitle: __( 'Delivery', 'woocommerce' ),
2022-10-04 12:02:28 +00:00
defaultDescription: __(
'Select how you would like to receive your order.',
'woocommerce'
2022-10-04 12:02:28 +00:00
),
} ),
className: {
type: 'string',
default: '',
},
showIcon: {
type: 'boolean',
default: true,
},
showPrice: {
type: 'boolean',
default: false,
2022-10-04 12:02:28 +00:00
},
localPickupText: {
type: 'string',
default: defaultLocalPickupText,
},
shippingText: {
type: 'string',
default: defaultShippingText,
},
2022-10-04 12:02:28 +00:00
lock: {
type: 'object',
default: {
move: true,
remove: true,
},
},
};