Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
import { DetailedListDataType } from 'molecules/DetailedList/typings'
import { ItemDetailType } from 'presets/Order/ProductItem/typings'
import { ProductItemListDataType } from 'presets/Order/ProductItemList/typings'

// OrderStatus
const orderStatusData: DetailedListDataType = [
  {
    label: 'order #',
    value: '12345678',
    isColon: true,
  },
  {
    label: 'order Placed',
    value: 'dec 20, 2017',
    isColon: true,
  },
  {
    label: 'status',
    value: 'shipped',
    isColon: true,
    className: 'status-value',
  },
]

// PaymentSummary
const shippingAddressInfo = {
  label: 'Shipping Address',
  firstName: 'Peter',
  lastName: 'England',
  addressLine1: '3415 Green Ave',
  addressLine2: '',
  country: 'USA',
  city: 'San Francsico',
  state: 'TO',
  zipCode: '52355',
}

const shippingMethodInfo = {
  label: 'Shipping Method',
  value: `Standard - FREE + $100 for Oversized Items`,
}

const paymentMethodInfo = {
  label: 'Payment Method',
  value: `Visa **** 1234`,
}

const orderSummaryInfo = {
  title: 'Order Summary',
  list: [
    {
      label: 'Subtotal (4 Items)',
      value: '$1623.80',
    },
    {
      label: 'Standard Shipping',
      value: 'FREE',
    },
    {
      label: 'Estimated Sales Tax',
      value: '$57.24',
    },
    {
      label: 'Total',
      value: '$1679.80',
      className: 'enable-bold total-count',
    },
    {
      label: 'Loyalty points earned',
      value: '224',
      className: 'enable-semi',
    },
  ],
}

// productDetails
const productDetails: ItemDetailType = {
  image: 'https://raderain.sirv.com/Images/produts/Cat_294x200_Workwear.png',
  title: 'Specialized',
  description: '',
  ratings: '',
  itemid: '123456',
  facets: [
    {
      label: 'size',
      value: '48',
      isColon: true,
    },
    {
      label: 'color',
      value: 'Cali Fade/Tarmac Black',
      isColon: true,
    },
  ],
  quantity: '2',
  price: '$692.00',
}

// ProductItem
const productItemData: ProductItemListDataType = [
  {
    image: 'https://raderain.sirv.com/Images/produts/Cat_294x200_Workwear.png',
    title: 'Specialized',
    itemid: '123456',
    facets: [
      {
        label: 'color',
        value: 'Cali Fade/Tarmac Black',
        isColon: true,
      },
      {
        label: 'size',
        value: '48',
        isColon: true,
      },
    ],
    quantity: '2',
    price: '$692.00',
  },
]

const subscriptionItemList: ProductItemListDataType = [
  {
    image: 'https://raderain.sirv.com/Images/produts/Cat_294x200_Workwear.png',
    title: 'Specialized',
    description: 'This is where the short description lives',
    skuId: '1234556',
    itemid: '123456',
    facets: [
      {
        label: 'color',
        value: 'Cali Fade/Tarmac Black',
        isColon: true,
      },
      {
        label: 'size',
        value: '120 oz',
        isColon: true,
      },
      {
        label: 'fit',
        value: '',
        isColon: true,
      }
    ],
    quantity: '1',
    salePrice: '$26.99',
    regularPrice: '$26.99',
    frequencyContent: 'This item is on a monthly subscription',
  },
]

// productItemList
// Reference-store data :
// {
//   color: "Grey",
//   hasSingleProduct: false,
//   identifier: "210030",
//   image: "https://raderain.sirv.com/T-Giant/097F_210030110_main.png",
//   itemid: "210030",
//   price: "$12.99",
//   quantity: "1",
//   size: "Extra Small",
//   skuid: "210030150",
//   title: "Men's Crew-Neck T-Shirt",
//   viewType: "grid",
//   __typename: undefined,
// }
const productItemList: ProductItemListDataType = [
  {
    image: 'https://raderain.sirv.com/Images/produts/Cat_294x200_Workwear.png',
    title: 'Specialized',
    // itemid: '123456',
    facets: [
      {
        label: 'size',
        value: '48',
        isColon: true,
      },
      {
        label: 'color',
        value: 'Cali Fade/Tarmac Black',
        isColon: true,
      },
    ],
    quantity: '2',
    price: '$692.00',
  },
  {
    image: 'https://raderain.sirv.com/Images/produts/Cat_294x200_Workwear.png',
    title: 'Specialized 2',
    itemid: '123456',
    facets: [
      {
        label: 'size',
        value: '58',
        isColon: true,
      },
      {
        label: 'color',
        value: 'Tarmac Black',
        isColon: true,
      },
    ],
    quantity: '5',
    price: '$100.00',
  },
  {
    image: 'https://raderain.sirv.com/Images/produts/Cat_294x200_Workwear.png',
    title: 'Specialized 2',
    itemid: '123456',
    facets: [
      {
        label: 'size',
        value: '68',
        isColon: true,
      },
      {
        label: 'color',
        value: 'Black',
        isColon: true,
      },
    ],
    quantity: '7',
    price: '$200.00',
  },
]

export {
  //
  orderStatusData,
  //
  shippingAddressInfo,
  shippingMethodInfo,
  paymentMethodInfo,
  orderSummaryInfo,
  subscriptionItemList,
  //
  productDetails,
  //
  productItemData,
  //
  productItemList,
}