-
Notifications
You must be signed in to change notification settings - Fork 151
/
defs.ts
148 lines (125 loc) · 1.82 KB
/
defs.ts
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/**
* @license
*
* Copyright IBM Corp. 2020, 2022, 2023
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* Button kind.
*/
export enum BUTTON_KIND {
/**
* Primary button.
*/
PRIMARY = 'primary',
/**
* Secondary button.
*/
SECONDARY = 'secondary',
/**
* Tertiary button.
*/
TERTIARY = 'tertiary',
/**
* Ghost button.
*/
GHOST = 'ghost',
/**
* Danger button.
*/
DANGER = 'danger',
/**
* Danger primary button.
*/
DANGER_PRIMARY = 'danger-primary',
/**
* Danger tertiary button.
*/
DANGER_TERTIARY = 'danger-tertiary',
/**
* Danger ghost button,
*/
DANGER_GHOST = 'danger-ghost',
}
/**
* Button type.
*/
export enum BUTTON_TYPE {
/**
* Default button type.
*/
BUTTON = 'button',
/**
* Reset button type.
*/
RESET = 'reset',
/**
* Submit button type.
*/
SUBMIT = 'submit',
}
/**
* Button size.
*/
export enum BUTTON_SIZE {
/**
* Small size.
*/
SMALL = 'sm',
/**
* Medium size.
*/
MEDIUM = 'md',
/**
* Large size.
*/
LARGE = 'lg',
/**
* X-Large size.
*/
EXTRA_LARGE = 'xl',
/**
* 2X-Large size.
*/
EXTRA_EXTRA_LARGE = '2xl',
}
/**
* Button tooltip alignment.
*/
export enum BUTTON_TOOLTIP_ALIGNMENT {
/**
* Aligned to the start.
*/
START = 'left',
/**
* Aligned to the center.
*/
CENTER = '',
/**
* Aligned to the end.
*/
END = 'right',
}
/**
* Button tooltip position.
*/
export enum BUTTON_TOOLTIP_POSITION {
/**
* Positioned on the top.
*/
TOP = 'top',
/**
* Positioned on the right.
*/
RIGHT = 'right',
/**
* Positioned on the bottom.
*/
BOTTOM = 'bottom',
/**
* Positined on the left.
*/
LEFT = 'left',
}