-
Notifications
You must be signed in to change notification settings - Fork 576
/
Copy pathbutton.js
102 lines (88 loc) · 2.66 KB
/
button.js
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/* @flow */
export const BUTTON_LABEL = {
PAYPAL: ("paypal": "paypal"),
CHECKOUT: ("checkout": "checkout"),
BUYNOW: ("buynow": "buynow"),
PAY: ("pay": "pay"),
INSTALLMENT: ("installment": "installment"),
SUBSCRIBE: ("subscribe": "subscribe"),
DONATE: ("donate": "donate"),
};
export const BUTTON_COLOR = {
DEFAULT: ("default": "default"),
DEFAULT_BLUE_LIGHT_BLUE: ("defaultBlue_lightBlue": "defaultBlue_lightBlue"),
DEFAULT_BLUE_DARK_BLUE: ("defaultBlue_darkBlue": "defaultBlue_darkBlue"),
GOLD: ("gold": "gold"),
BLUE: ("blue": "blue"),
SILVER: ("silver": "silver"),
DARKBLUE: ("darkblue": "darkblue"),
BLACK: ("black": "black"),
WHITE: ("white": "white"),
TRANSPARENT: ("transparent": "transparent"),
};
export const TEXT_COLOR = {
BLACK: ("black": "black"),
WHITE: ("white": "white"),
DEFAULT: ("default": "default"),
};
export const BUTTON_SIZE = {
TINY: ("tiny": "tiny"),
SMALL: ("small": "small"),
MEDIUM: ("medium": "medium"),
LARGE: ("large": "large"),
HUGE: ("huge": "huge"),
RESPONSIVE: ("responsive": "responsive"),
};
export const BUTTON_DISABLE_HEIGHT_SIZE = {
TINY: ("tiny": "tiny"),
SMALL: ("small": "small"),
MEDIUM_SMALL: ("mediumSmall": "mediumSmall"),
MEDIUM_BIG: ("mediumBig": "mediumBig"),
LARGE_SMALL: ("largeSmall": "largeSmall"),
LARGE_BIG: ("largeBig": "largeBig"),
XL: ("xl": "xl"),
XXL: ("xxl": "xxl"),
XXXL: ("xxxl": "xxxl"),
};
export const BUTTON_SHAPE = {
PILL: ("pill": "pill"),
RECT: ("rect": "rect"),
SHARP: ("sharp": "sharp"),
};
export const BUTTON_LAYOUT = {
HORIZONTAL: ("horizontal": "horizontal"),
VERTICAL: ("vertical": "vertical"),
};
export const BUTTON_NUMBER = {
SINGLE: ("single": "single"),
MULTIPLE: ("multiple": "multiple"),
};
export const BUTTON_FLOW = {
PURCHASE: ("purchase": "purchase"),
BILLING_SETUP: ("billing_setup": "billing_setup"),
SUBSCRIPTION_SETUP: ("subscription_setup": "subscription_setup"),
FULL_STACK_SUBSCRIPTION_SETUP:
("full_stack_subscription_setup": "full_stack_subscription_setup"),
VAULT_WITHOUT_PURCHASE: ("vault_without_purchase": "vault_without_purchase"),
};
export const MENU_PLACEMENT = {
ABOVE: ("above": "above"),
BELOW: ("below": "below"),
};
export const MESSAGE_OFFER = {
PAY_LATER_LONG_TERM: ("pay_later_long_term": "pay_later_long_term"),
PAY_LATER_SHORT_TERM: ("pay_later_short_term": "pay_later_short_term"),
};
export const MESSAGE_COLOR = {
BLACK: ("black": "black"),
WHITE: ("white": "white"),
};
export const MESSAGE_POSITION = {
TOP: ("top": "top"),
BOTTOM: ("bottom": "bottom"),
};
export const MESSAGE_ALIGN = {
CENTER: ("center": "center"),
LEFT: ("left": "left"),
RIGHT: ("right": "right"),
};