File size: 1,861 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import PlanPrice from './';

export const Default = () => {
	return (
		<div>
			<h3>Plan with standard price</h3>
			<PlanPrice rawPrice={ 99.8 } />
			<br />
			<h3>Plan with a price range</h3>
			<PlanPrice rawPrice={ [ 99.99, 139.99 ] } />
			<br />
			<h3>Plan with a price of '0'</h3>
			<PlanPrice rawPrice={ 0 } />
			<br />
			<h3>Plan with discounted price</h3>
			<div style={ { display: 'flex' } }>
				<PlanPrice rawPrice={ 8.25 } original />
				<PlanPrice rawPrice={ 2 } discounted />
			</div>
			<br />
			<h3>Plan with discounted price range</h3>
			<div style={ { display: 'flex' } }>
				<PlanPrice rawPrice={ [ 8.25, 20.23 ] } original />
				<PlanPrice rawPrice={ [ 2.25, 3 ] } discounted />
			</div>
			<br />
			<h3>Plan with discounted price and tax</h3>
			<div style={ { display: 'flex' } }>
				<PlanPrice rawPrice={ 8.25 } original taxText="10%" />
				<PlanPrice rawPrice={ 2 } discounted taxText="10%" />
			</div>
			<br />
			<h3>Plan with discounted price range and tax</h3>
			<div style={ { display: 'flex' } }>
				<PlanPrice rawPrice={ [ 8.25, 20.23 ] } original taxText="10%" />
				<PlanPrice rawPrice={ [ 2.25, 3 ] } discounted taxText="10%" />
			</div>
			<br />
			<h3>Simple View (isInSignup) - Plan with discounted price and tax </h3>
			<div style={ { display: 'flex' } }>
				<PlanPrice rawPrice={ 8.25 } original taxText="10%" isInSignup />
				<PlanPrice rawPrice={ 2 } discounted taxText="10%" isInSignup />
			</div>
			<br />
			<h3>Simple View (isInSignup) - Plan with discounted price range and tax </h3>
			<div style={ { display: 'flex' } }>
				<PlanPrice rawPrice={ [ 8.25, 20.23 ] } original taxText="10%" isInSignup />
				<PlanPrice rawPrice={ [ 2.25, 3 ] } discounted taxText="10%" isInSignup />
			</div>
		</div>
	);
};

export default {
	title: 'Unaudited/PlanPrice',
	component: PlanPrice,
};