2018-06-14 20:15:11 +00:00
|
|
|
/** @format */
|
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
import { Component, Fragment } from '@wordpress/element';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
2018-08-20 21:18:13 +00:00
|
|
|
import { SummaryList, SummaryNumber } from '@woocommerce/components';
|
2018-06-14 20:15:11 +00:00
|
|
|
|
|
|
|
export default class extends Component {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Fragment>
|
2018-07-30 15:14:09 +00:00
|
|
|
<h2>One Data Point</h2>
|
2018-06-14 20:15:11 +00:00
|
|
|
<SummaryList>
|
|
|
|
<SummaryNumber
|
2018-07-30 15:14:09 +00:00
|
|
|
label={ __( 'Gross Revenue', 'wc-admin' ) }
|
|
|
|
value={ '$829.40' }
|
|
|
|
prevValue={ '$785.90' }
|
|
|
|
delta={ 5.5 }
|
|
|
|
selected
|
|
|
|
/>
|
|
|
|
</SummaryList>
|
|
|
|
|
|
|
|
<h2>Two Data Points</h2>
|
|
|
|
<SummaryList>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Gross Revenue', 'wc-admin' ) }
|
|
|
|
value={ '$829.40' }
|
|
|
|
prevValue={ '$785.90' }
|
|
|
|
delta={ 5.5 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Refunds', 'wc-admin' ) }
|
|
|
|
value={ '$24.00' }
|
|
|
|
prevValue={ '$26.40' }
|
|
|
|
delta={ -10 }
|
|
|
|
reverseTrend
|
|
|
|
selected
|
|
|
|
/>
|
|
|
|
</SummaryList>
|
|
|
|
|
|
|
|
<h2>Three Data Points</h2>
|
|
|
|
<SummaryList>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Gross Revenue', 'wc-admin' ) }
|
|
|
|
value={ '$829.40' }
|
|
|
|
prevValue={ '$785.90' }
|
|
|
|
delta={ 5.5 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Refunds', 'wc-admin' ) }
|
|
|
|
value={ '$24.00' }
|
|
|
|
prevValue={ '$26.40' }
|
|
|
|
delta={ -10 }
|
|
|
|
reverseTrend
|
|
|
|
selected
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Coupons', 'wc-admin' ) }
|
|
|
|
value={ '$40.00' }
|
|
|
|
prevValue={ '$40.00' }
|
|
|
|
delta={ 0 }
|
|
|
|
/>
|
|
|
|
</SummaryList>
|
|
|
|
|
|
|
|
<h2>Four Data Points</h2>
|
|
|
|
<SummaryList>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Gross Revenue', 'wc-admin' ) }
|
|
|
|
value={ '$829.40' }
|
|
|
|
prevValue={ '$785.90' }
|
|
|
|
delta={ 5.5 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Refunds', 'wc-admin' ) }
|
|
|
|
value={ '$24.00' }
|
|
|
|
prevValue={ '$26.40' }
|
|
|
|
delta={ -10 }
|
|
|
|
reverseTrend
|
|
|
|
selected
|
|
|
|
/>
|
|
|
|
<SummaryNumber label={ __( 'Coupons', 'wc-admin' ) } value={ '$45.00' } />
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Taxes', 'wc-admin' ) }
|
|
|
|
value={ '$84.73' }
|
|
|
|
prevValue={ '$92.30' }
|
|
|
|
delta={ -8.9 }
|
|
|
|
/>
|
|
|
|
</SummaryList>
|
|
|
|
|
|
|
|
<h2>Five Data Points</h2>
|
|
|
|
<SummaryList>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Gross Revenue', 'wc-admin' ) }
|
|
|
|
value={ '$829.40' }
|
|
|
|
prevValue={ '$785.90' }
|
|
|
|
delta={ 5.5 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Refunds', 'wc-admin' ) }
|
|
|
|
value={ '$24.00' }
|
|
|
|
prevValue={ '$26.40' }
|
|
|
|
delta={ -10 }
|
|
|
|
reverseTrend
|
|
|
|
selected
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Coupons', 'wc-admin' ) }
|
|
|
|
value={ '$40.00' }
|
|
|
|
prevValue={ '$40.00' }
|
|
|
|
delta={ 0 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Taxes', 'wc-admin' ) }
|
|
|
|
value={ '$84.73' }
|
|
|
|
prevValue={ '$92.30' }
|
|
|
|
delta={ -8.9 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Average Order Value', 'wc-admin' ) }
|
|
|
|
value={ '$25.00' }
|
|
|
|
prevValue={ '$30.00' }
|
|
|
|
delta={ -20 }
|
|
|
|
/>
|
|
|
|
</SummaryList>
|
|
|
|
|
|
|
|
<h2>Six Data Points</h2>
|
|
|
|
<SummaryList>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Gross Revenue', 'wc-admin' ) }
|
|
|
|
value={ '$829.40' }
|
|
|
|
prevValue={ '$785.90' }
|
|
|
|
delta={ 5.5 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Refunds', 'wc-admin' ) }
|
|
|
|
value={ '$24.00' }
|
|
|
|
prevValue={ '$26.40' }
|
|
|
|
delta={ -10 }
|
|
|
|
reverseTrend
|
|
|
|
selected
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Coupons', 'wc-admin' ) }
|
|
|
|
value={ '$40.00' }
|
|
|
|
prevValue={ '$40.00' }
|
|
|
|
delta={ 0 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Taxes', 'wc-admin' ) }
|
|
|
|
value={ '$84.73' }
|
|
|
|
prevValue={ '$92.30' }
|
|
|
|
delta={ -8.9 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Average Order Value', 'wc-admin' ) }
|
|
|
|
value={ '$25.00' }
|
|
|
|
prevValue={ '$30.00' }
|
|
|
|
delta={ -20 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Shipping', 'wc-admin' ) }
|
|
|
|
value={ '$75.00' }
|
|
|
|
prevValue={ '$60.00' }
|
|
|
|
delta={ 25 }
|
|
|
|
/>
|
|
|
|
</SummaryList>
|
|
|
|
|
|
|
|
<h2>Seven Data Points</h2>
|
|
|
|
<SummaryList>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Gross Revenue', 'wc-admin' ) }
|
|
|
|
value={ '$829.40' }
|
|
|
|
prevValue={ '$785.90' }
|
|
|
|
delta={ 5.5 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Refunds', 'wc-admin' ) }
|
|
|
|
value={ '$24.00' }
|
|
|
|
prevValue={ '$26.40' }
|
|
|
|
delta={ -10 }
|
|
|
|
reverseTrend
|
|
|
|
selected
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Coupons', 'wc-admin' ) }
|
|
|
|
value={ '$40.00' }
|
|
|
|
prevValue={ '$40.00' }
|
|
|
|
delta={ 0 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Taxes', 'wc-admin' ) }
|
|
|
|
value={ '$84.73' }
|
|
|
|
prevValue={ '$92.30' }
|
|
|
|
delta={ -8.9 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Average Order Value', 'wc-admin' ) }
|
|
|
|
value={ '$25.00' }
|
|
|
|
prevValue={ '$30.00' }
|
|
|
|
delta={ -20 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Shipping', 'wc-admin' ) }
|
|
|
|
value={ '$75.00' }
|
|
|
|
prevValue={ '$60.00' }
|
|
|
|
delta={ 25 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Coupons', 'wc-admin' ) }
|
|
|
|
value={ '$40.00' }
|
|
|
|
prevValue={ '$40.00' }
|
|
|
|
delta={ 0 }
|
|
|
|
/>
|
|
|
|
</SummaryList>
|
|
|
|
|
|
|
|
<h2>Eight Data Points</h2>
|
|
|
|
<SummaryList>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Gross Revenue', 'wc-admin' ) }
|
2018-06-14 20:15:11 +00:00
|
|
|
value={ '$829.40' }
|
2018-07-30 15:14:09 +00:00
|
|
|
prevValue={ '$785.90' }
|
|
|
|
delta={ 5.5 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Refunds', 'wc-admin' ) }
|
|
|
|
value={ '$24.00' }
|
|
|
|
prevValue={ '$26.40' }
|
|
|
|
delta={ -10 }
|
|
|
|
reverseTrend
|
|
|
|
selected
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Coupons', 'wc-admin' ) }
|
|
|
|
value={ '$40.00' }
|
|
|
|
prevValue={ '$40.00' }
|
|
|
|
delta={ 0 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Taxes', 'wc-admin' ) }
|
|
|
|
value={ '$84.73' }
|
|
|
|
prevValue={ '$92.30' }
|
|
|
|
delta={ -8.9 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Average Order Value', 'wc-admin' ) }
|
|
|
|
value={ '$25.00' }
|
|
|
|
prevValue={ '$30.00' }
|
|
|
|
delta={ -20 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Shipping', 'wc-admin' ) }
|
|
|
|
value={ '$75.00' }
|
|
|
|
prevValue={ '$60.00' }
|
|
|
|
delta={ 25 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Coupons', 'wc-admin' ) }
|
|
|
|
value={ '$40.00' }
|
|
|
|
prevValue={ '$40.00' }
|
|
|
|
delta={ 0 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Taxes', 'wc-admin' ) }
|
|
|
|
value={ '$84.73' }
|
|
|
|
prevValue={ '$92.30' }
|
|
|
|
delta={ -8.9 }
|
|
|
|
/>
|
|
|
|
</SummaryList>
|
|
|
|
|
|
|
|
<h2>Nine Data Points</h2>
|
|
|
|
<SummaryList>
|
|
|
|
<SummaryNumber
|
2018-07-10 12:48:06 +00:00
|
|
|
label={ __( 'Gross Revenue', 'wc-admin' ) }
|
2018-07-30 15:14:09 +00:00
|
|
|
value={ '$829.40' }
|
|
|
|
prevValue={ '$785.90' }
|
|
|
|
delta={ 5.5 }
|
2018-06-14 20:15:11 +00:00
|
|
|
/>
|
|
|
|
<SummaryNumber
|
2018-07-30 15:14:09 +00:00
|
|
|
label={ __( 'Refunds', 'wc-admin' ) }
|
2018-06-14 20:15:11 +00:00
|
|
|
value={ '$24.00' }
|
2018-07-30 15:14:09 +00:00
|
|
|
prevValue={ '$26.40' }
|
|
|
|
delta={ -10 }
|
|
|
|
reverseTrend
|
|
|
|
selected
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Coupons', 'wc-admin' ) }
|
|
|
|
value={ '$40.00' }
|
|
|
|
prevValue={ '$40.00' }
|
|
|
|
delta={ 0 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Taxes', 'wc-admin' ) }
|
|
|
|
value={ '$84.73' }
|
|
|
|
prevValue={ '$92.30' }
|
|
|
|
delta={ -8.9 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Average Order Value', 'wc-admin' ) }
|
|
|
|
value={ '$25.00' }
|
|
|
|
prevValue={ '$30.00' }
|
|
|
|
delta={ -20 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Shipping', 'wc-admin' ) }
|
|
|
|
value={ '$75.00' }
|
|
|
|
prevValue={ '$60.00' }
|
|
|
|
delta={ 25 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Coupons', 'wc-admin' ) }
|
|
|
|
value={ '$40.00' }
|
|
|
|
prevValue={ '$40.00' }
|
|
|
|
delta={ 0 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Taxes', 'wc-admin' ) }
|
|
|
|
value={ '$84.73' }
|
|
|
|
prevValue={ '$92.30' }
|
|
|
|
delta={ -8.9 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Gross Revenue', 'wc-admin' ) }
|
|
|
|
value={ '$829.40' }
|
|
|
|
prevValue={ '$785.90' }
|
|
|
|
delta={ 5.5 }
|
|
|
|
/>
|
|
|
|
</SummaryList>
|
|
|
|
|
|
|
|
<h2>Ten or More Data Points</h2>
|
|
|
|
<SummaryList>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Gross Revenue', 'wc-admin' ) }
|
|
|
|
value={ '$829.40' }
|
|
|
|
prevValue={ '$785.90' }
|
|
|
|
delta={ 5.5 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
2018-07-10 12:48:06 +00:00
|
|
|
label={ __( 'Refunds', 'wc-admin' ) }
|
2018-07-30 15:14:09 +00:00
|
|
|
value={ '$24.00' }
|
|
|
|
prevValue={ '$26.40' }
|
2018-06-14 20:15:11 +00:00
|
|
|
delta={ -10 }
|
2018-07-30 15:14:09 +00:00
|
|
|
reverseTrend
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Coupons', 'wc-admin' ) }
|
|
|
|
value={ '$40.00' }
|
|
|
|
prevValue={ '$40.00' }
|
|
|
|
delta={ 0 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Taxes', 'wc-admin' ) }
|
|
|
|
value={ '$84.73' }
|
|
|
|
prevValue={ '$92.30' }
|
|
|
|
delta={ -8.9 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Average Order Value', 'wc-admin' ) }
|
|
|
|
value={ '$25.00' }
|
|
|
|
prevValue={ '$30.00' }
|
|
|
|
delta={ -20 }
|
2018-06-14 20:15:11 +00:00
|
|
|
selected
|
|
|
|
/>
|
2018-07-30 15:14:09 +00:00
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Shipping', 'wc-admin' ) }
|
|
|
|
value={ '$75.00' }
|
|
|
|
prevValue={ '$60.00' }
|
|
|
|
delta={ 25 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Coupons', 'wc-admin' ) }
|
|
|
|
value={ '$40.00' }
|
|
|
|
prevValue={ '$40.00' }
|
|
|
|
delta={ 0 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Taxes', 'wc-admin' ) }
|
|
|
|
value={ '$84.73' }
|
|
|
|
prevValue={ '$304,803,048.30' }
|
|
|
|
delta={ -8.9 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Average Order Value', 'wc-admin' ) }
|
|
|
|
value={ '$25.00' }
|
|
|
|
prevValue={ '$30.00' }
|
|
|
|
delta={ -20 }
|
|
|
|
/>
|
|
|
|
<SummaryNumber
|
|
|
|
label={ __( 'Gross Revenue', 'wc-admin' ) }
|
|
|
|
value={ '$829.40' }
|
|
|
|
prevValue={ '$785.90' }
|
|
|
|
delta={ 5.5 }
|
|
|
|
/>
|
2018-06-14 20:15:11 +00:00
|
|
|
</SummaryList>
|
|
|
|
</Fragment>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|