Repository URL to install this package:
|
Version:
0.14.1 ▾
|
import { ListOfToggleProps as ShippingAddressOptionListToggleProps } from 'presets/Checkout/ShippingAddressOption'
import { fromAddressToString } from 'presets/deps'
import { ListOfToggleProps } from 'presets/Checkout/ShippingMethodOption'
import { ItemProps } from 'presets/ProductPieces/ProductItem'
const shippingMethodOptionList: ListOfToggleProps = [
{
isSelected: true,
label: {
shippingType: 'In-store Pick up - FREE',
expectedDelivery: 'Choose a store for pick up date',
},
value: 'In-store Pick up - FREE',
},
{
isSelected: false,
label: {
shippingType: 'Standard - FREE + $100 for Oversized Items',
expectedDelivery: 'Estimated Arrival: Thursday, Nov 16',
},
value: 'Standard - FREE + $100 for Oversized Items',
},
{
isSelected: false,
label: {
shippingType: 'Standard - FREE + $100 for Oversized Items',
expectedDelivery: 'Estimated Arrival: Thursday, Nov 16',
},
value: 'Standard - FREE + $100 for Oversized Items',
},
{
isSelected: false,
label: {
shippingType: 'Standard - FREE + $100 for Oversized Items',
expectedDelivery: 'Estimated Arrival: Thursday, Nov 16',
},
value: 'Standard - FREE + $100 for Oversized Items',
},
]
const shippingAddressOptionList: ShippingAddressOptionListToggleProps = [
{
isSelected: true,
value: '',
label: {
firstName: 'John',
lastName: 'Pancake',
addressLine1: '3415 Breakfast Ave',
addressLine2: '',
country: 'USA',
city: 'San Francisco',
state: 'CA',
zipCode: 55555,
},
},
{
isSelected: false,
label: {
firstName: 'John',
lastName: 'Pancake',
addressLine1: '3415 Breakfast Ave',
addressLine2: '',
country: 'USA',
city: 'San Francisco',
state: 'CA',
zipCode: 55555,
},
value: '',
},
{
isSelected: false,
label: {
firstName: 'John',
lastName: 'Pancake',
addressLine1: '3415 Breakfast Ave',
addressLine2: '',
country: 'USA',
city: 'San Francisco',
state: 'CA',
zipCode: 55555,
},
value: '',
},
{
isSelected: false,
label: {
firstName: 'John',
lastName: 'Pancake',
addressLine1: '3415 Breakfast Ave',
addressLine2: '',
country: 'USA',
city: 'San Francisco',
state: 'CA',
zipCode: 55555,
},
value: '',
},
]
shippingAddressOptionList.map((item, index) => (
item.value = fromAddressToString(item.label)
))
const productTableHeaderList = [
{
label: 'product',
width: '40',
align: 'left',
},
{
label: 'quality',
width: '10',
align: 'center',
},
{
label: 'item price',
width: '25',
align: 'right',
},
{
label: 'total',
width: '25',
align: 'right',
},
]
const deliveryInstructionConfig = {
submitButtonLabel: 'add',
cancelButtonLabel: 'remove',
submitButtonDataQa: 'qa-add',
cancelButtonDataQa: 'qa-remove',
placeHolder: 'Type your message here...',
textAreaDataQa: 'qa-instructions-box',
}
const productItem: ItemProps = {
name: 'Short Sleeve T-Shirts For Women',
identifier: '1124578',
brandName: 'Brand Name',
image: {
value: 'https://raderain.sirv.com/T-Giant/516B_420010110_alt1.png',
},
hasQuantity: true,
quantity: 2,
salePrice: '$15.00',
regPrice: '$20.00',
totalPrice: '$35.00',
savePrice: '$5.00',
facets: [
{
label: 'size',
value: 'Extra Large',
isColon: true,
},
{
label: 'color',
value: 'Pink',
isColon: true,
},
],
navigationUrl: 'https://schema.org/Product',
}
const singleAddress = {
firstName: 'John',
lastName: 'Pancake',
addressLine1: '3415 Breakfast Ave',
addressLine2: '',
country: 'USA',
city: 'San Francsico',
state: 'CA',
zipCode: 55555,
}
const multipleAddress = {
// To include the data for guest + registered multiple address
}
export {
shippingMethodOptionList,
shippingAddressOptionList,
productTableHeaderList,
deliveryInstructionConfig,
productItem,
singleAddress,
multipleAddress,
}