@xaypay/tui 0.0.122 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +21 -75
- package/dist/index.es.js +804 -548
- package/dist/index.js +804 -548
- package/package.json +1 -1
- package/tui.config.js +772 -452
package/tui.config.js
CHANGED
|
@@ -1,500 +1,820 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
const boxSizing = 'border-box';
|
|
4
|
+
const fontStyle = 'normal';
|
|
5
|
+
const fontFamily = 'Arial';
|
|
6
|
+
const fontWeight = 500;
|
|
7
|
+
|
|
8
|
+
const transparent = 'transparent';
|
|
9
|
+
|
|
10
|
+
const presetColors = {
|
|
11
|
+
info: '#F24C4C',
|
|
12
|
+
dark: '#3C393E',
|
|
13
|
+
light: '#EEEEEE',
|
|
14
|
+
extraLight: '#FBFBFB',
|
|
15
|
+
danger: '#EE0000',
|
|
16
|
+
success: '#0DA574',
|
|
17
|
+
warning: '#FECD29',
|
|
18
|
+
secondary: '#D1D1D1',
|
|
19
|
+
primary: '#051942',
|
|
20
|
+
primarySecond: '#00236A'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const fontObject = {
|
|
24
|
+
size: '16px',
|
|
25
|
+
style: fontStyle,
|
|
26
|
+
weight: fontWeight,
|
|
27
|
+
family: fontFamily,
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export default {
|
|
2
31
|
// default properties for <Button /> component
|
|
3
32
|
BUTTON: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
className: '',
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
33
|
+
type: 'button',
|
|
34
|
+
width: '100%',
|
|
35
|
+
height: '46px',
|
|
36
|
+
color: 'white',
|
|
37
|
+
contentWidth: false,
|
|
38
|
+
border: 'none',
|
|
39
|
+
radius: '6px',
|
|
40
|
+
cursor: 'pointer',
|
|
41
|
+
padding: '12px 20px',
|
|
42
|
+
disabled: false,
|
|
43
|
+
className: '',
|
|
44
|
+
transition: 'background-color 240ms, color 240ms',
|
|
45
|
+
|
|
46
|
+
box: {
|
|
47
|
+
sizing: boxSizing,
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
colors: {
|
|
51
|
+
background: 'rgba(0, 35, 106, 1)',
|
|
52
|
+
backgroundHover: '#CB3A3A',
|
|
53
|
+
disabled: 'rgba(60, 57, 62, 1)',
|
|
54
|
+
disabledLine: 'rgba(60, 57, 62, 1)',
|
|
55
|
+
disabledBackground: 'rgba(238, 238, 238, 1)',
|
|
56
|
+
},
|
|
57
|
+
|
|
58
|
+
font: {...fontObject},
|
|
59
|
+
|
|
60
|
+
text: {
|
|
61
|
+
transform: 'none',
|
|
62
|
+
colors: {
|
|
63
|
+
hover: '#001745',
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
icon: {
|
|
68
|
+
marginRight: '10px'
|
|
69
|
+
}
|
|
28
70
|
},
|
|
29
71
|
// default properties for <Input /> component
|
|
30
72
|
INPUT: {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
required: false,
|
|
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
|
+
type: 'text',
|
|
74
|
+
width: '100%',
|
|
75
|
+
color: 'rgb(60, 57, 62)',
|
|
76
|
+
height: '46px',
|
|
77
|
+
radius: '0px',
|
|
78
|
+
padding: '12px 15px',
|
|
79
|
+
disabled: false,
|
|
80
|
+
required: false,
|
|
81
|
+
className: '',
|
|
82
|
+
maxLength: 255,
|
|
83
|
+
iconWidth: '64px',
|
|
84
|
+
autoComplete: 'off',
|
|
85
|
+
|
|
86
|
+
box: {
|
|
87
|
+
sizing: boxSizing,
|
|
88
|
+
shadow: `0 0 0 2px ${presetColors.secondary}`, // like border
|
|
89
|
+
shadowHover: `0 0 0 2px ${presetColors.dark}`, // like border
|
|
90
|
+
},
|
|
91
|
+
|
|
92
|
+
colors: {
|
|
93
|
+
background: 'white',
|
|
94
|
+
backgroundDisable: presetColors.extraLight,
|
|
95
|
+
},
|
|
96
|
+
|
|
97
|
+
font: {...fontObject},
|
|
98
|
+
|
|
99
|
+
label: {
|
|
100
|
+
color: presetColors.dark,
|
|
101
|
+
display: 'block',
|
|
102
|
+
lineHeight: '22px',
|
|
103
|
+
marginBottom: '6px',
|
|
104
|
+
|
|
105
|
+
font: {...fontObject}
|
|
106
|
+
},
|
|
107
|
+
|
|
108
|
+
error: {
|
|
109
|
+
left: '0px',
|
|
110
|
+
color: presetColors.danger,
|
|
111
|
+
zIndex: '1',
|
|
112
|
+
className: '',
|
|
113
|
+
marginTop: '10px',
|
|
114
|
+
animation: false,
|
|
115
|
+
transform: 'scale3d(0,0,0)',
|
|
116
|
+
telMessage: '',
|
|
117
|
+
lineHeight: '19px',
|
|
118
|
+
animationDuration: '240ms',
|
|
119
|
+
|
|
120
|
+
font: {...fontObject}
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
tel: {
|
|
124
|
+
display: 'flex',
|
|
125
|
+
alignItems: 'center',
|
|
126
|
+
justifyContent: 'center',
|
|
127
|
+
borderRight: {
|
|
128
|
+
width: '1px',
|
|
129
|
+
style: 'solid',
|
|
130
|
+
color: presetColors.secondary,
|
|
131
|
+
|
|
132
|
+
colors: {
|
|
133
|
+
hover: presetColors.dark
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
73
137
|
},
|
|
74
138
|
// default properties for <Tooltip /> component
|
|
75
139
|
TOOLTIP: {
|
|
76
|
-
type: 'top',
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
140
|
+
type: 'top',
|
|
141
|
+
color: 'white',
|
|
142
|
+
width: '100px',
|
|
143
|
+
radius: '3px',
|
|
144
|
+
className: '',
|
|
145
|
+
// icon: React.createElement(SvgChecked, { fill: 'red' }),
|
|
146
|
+
|
|
147
|
+
parent: {
|
|
148
|
+
width: '46px',
|
|
149
|
+
height: '46px',
|
|
150
|
+
radius: '0px',
|
|
151
|
+
|
|
152
|
+
colors: {
|
|
153
|
+
background: transparent,
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
},
|
|
157
|
+
|
|
158
|
+
colors: {
|
|
159
|
+
background: '#03a9f4',
|
|
160
|
+
},
|
|
161
|
+
|
|
162
|
+
font: {...fontObject}
|
|
88
163
|
},
|
|
89
164
|
// default properties for <Typography /> component
|
|
90
165
|
TYPOGRAPHY: {
|
|
91
|
-
radius: '0px',
|
|
92
|
-
border: 'none',
|
|
93
|
-
cursor: 'default',
|
|
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
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
166
|
+
radius: '0px',
|
|
167
|
+
border: 'none',
|
|
168
|
+
cursor: 'default',
|
|
169
|
+
className: '',
|
|
170
|
+
|
|
171
|
+
colors: {
|
|
172
|
+
p: presetColors.dark,
|
|
173
|
+
h1: presetColors.dark,
|
|
174
|
+
h2: presetColors.dark,
|
|
175
|
+
h3: presetColors.dark,
|
|
176
|
+
h4: presetColors.dark,
|
|
177
|
+
h5: presetColors.dark,
|
|
178
|
+
h6: presetColors.dark,
|
|
179
|
+
span: presetColors.dark,
|
|
180
|
+
|
|
181
|
+
backgroundp: transparent,
|
|
182
|
+
backgroundh1: transparent,
|
|
183
|
+
backgroundh2: transparent,
|
|
184
|
+
backgroundh3: transparent,
|
|
185
|
+
backgroundh4: transparent,
|
|
186
|
+
backgroundh5: transparent,
|
|
187
|
+
backgroundh6: transparent,
|
|
188
|
+
backgroundspan: transparent,
|
|
189
|
+
},
|
|
190
|
+
|
|
191
|
+
font: {
|
|
192
|
+
sizep: '13px',
|
|
193
|
+
sizeh1: '70px',
|
|
194
|
+
sizeh2: '50px',
|
|
195
|
+
sizeh3: '38px',
|
|
196
|
+
sizeh4: '24px',
|
|
197
|
+
sizeh5: '20px',
|
|
198
|
+
sizeh6: '14px',
|
|
199
|
+
sizespan: '12px',
|
|
200
|
+
|
|
201
|
+
stylep: fontStyle,
|
|
202
|
+
styleh1: fontStyle,
|
|
203
|
+
styleh2: fontStyle,
|
|
204
|
+
styleh3: fontStyle,
|
|
205
|
+
styleh4: fontStyle,
|
|
206
|
+
styleh5: fontStyle,
|
|
207
|
+
styleh6: fontStyle,
|
|
208
|
+
stylespan: fontStyle,
|
|
209
|
+
|
|
210
|
+
weightp: fontWeight,
|
|
211
|
+
weighth1: fontWeight,
|
|
212
|
+
weighth2: fontWeight,
|
|
213
|
+
weighth3: fontWeight,
|
|
214
|
+
weighth4: fontWeight,
|
|
215
|
+
weighth5: fontWeight,
|
|
216
|
+
weighth6: fontWeight,
|
|
217
|
+
weightspan: fontWeight,
|
|
218
|
+
|
|
219
|
+
familyp: fontFamily,
|
|
220
|
+
familyh1: fontFamily,
|
|
221
|
+
familyh2: fontFamily,
|
|
222
|
+
familyh3: fontFamily,
|
|
223
|
+
familyh4: fontFamily,
|
|
224
|
+
familyh5: fontFamily,
|
|
225
|
+
familyh6: fontFamily,
|
|
226
|
+
familyspan: fontFamily,
|
|
227
|
+
},
|
|
228
|
+
|
|
229
|
+
text: {
|
|
230
|
+
alignp: 'left',
|
|
231
|
+
alignh1: 'left',
|
|
232
|
+
alignh2: 'left',
|
|
233
|
+
alignh3: 'left',
|
|
234
|
+
alignh4: 'left',
|
|
235
|
+
alignh5: 'left',
|
|
236
|
+
alignh6: 'left',
|
|
237
|
+
alignspan: 'left',
|
|
238
|
+
|
|
239
|
+
shadowp: 'none',
|
|
240
|
+
shadowh1: 'none',
|
|
241
|
+
shadowh2: 'none',
|
|
242
|
+
shadowh3: 'none',
|
|
243
|
+
shadowh4: 'none',
|
|
244
|
+
shadowh5: 'none',
|
|
245
|
+
shadowh6: 'none',
|
|
246
|
+
shadowspan: 'none',
|
|
247
|
+
|
|
248
|
+
transformp: 'none',
|
|
249
|
+
transformh1: 'none',
|
|
250
|
+
transformh2: 'none',
|
|
251
|
+
transformh3: 'none',
|
|
252
|
+
transformh4: 'none',
|
|
253
|
+
transformh5: 'none',
|
|
254
|
+
transformh6: 'none',
|
|
255
|
+
transformspan: 'none',
|
|
256
|
+
|
|
257
|
+
decorationp: 'none',
|
|
258
|
+
decorationh1: 'none',
|
|
259
|
+
decorationh2: 'none',
|
|
260
|
+
decorationh3: 'none',
|
|
261
|
+
decorationh4: 'none',
|
|
262
|
+
decorationh5: 'none',
|
|
263
|
+
decorationh6: 'none',
|
|
264
|
+
decorationspan: 'none',
|
|
265
|
+
|
|
266
|
+
lineHeightp: 'normal',
|
|
267
|
+
lineHeighth1: 'normal',
|
|
268
|
+
lineHeighth2: 'normal',
|
|
269
|
+
lineHeighth3: 'normal',
|
|
270
|
+
lineHeighth4: 'normal',
|
|
271
|
+
lineHeighth5: 'normal',
|
|
272
|
+
lineHeighth6: 'normal',
|
|
273
|
+
lineHeightspan: 'normal',
|
|
274
|
+
}
|
|
186
275
|
},
|
|
187
276
|
// default properties for <Select /> component
|
|
188
277
|
SELECT: {
|
|
189
|
-
dots: false,
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
278
|
+
dots: false,
|
|
279
|
+
className: '',
|
|
280
|
+
showCloseIcon: true,
|
|
281
|
+
// arrowIcon: React.createElement(SvgChecked, { fill: 'green' }),
|
|
282
|
+
// closeIcon: React.createElement(SvgChecked, { fill: 'green' }),
|
|
283
|
+
|
|
284
|
+
box: {
|
|
285
|
+
shadow: `0 0 0 2px ${presetColors.secondary}`, // like border
|
|
286
|
+
shadowHover: `0 0 0 2px ${presetColors.dark}`, // like border
|
|
287
|
+
},
|
|
288
|
+
|
|
289
|
+
label: {
|
|
290
|
+
color: presetColors.dark,
|
|
291
|
+
display: 'block',
|
|
292
|
+
lineHeight: '22px',
|
|
293
|
+
marginBottom: '6px',
|
|
294
|
+
textTransform: 'none',
|
|
295
|
+
|
|
296
|
+
font: {...fontObject}
|
|
297
|
+
},
|
|
298
|
+
|
|
299
|
+
selected: {
|
|
300
|
+
color: presetColors.dark,
|
|
301
|
+
cursor: 'pointer',
|
|
302
|
+
radius: '6px',
|
|
303
|
+
padding: '0px 15px',
|
|
304
|
+
minHeight: '46px',
|
|
305
|
+
lineHeight: '22px',
|
|
306
|
+
transition: 'border-color 240ms',
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
box: {
|
|
310
|
+
sizing: boxSizing,
|
|
311
|
+
},
|
|
312
|
+
|
|
313
|
+
colors: {
|
|
314
|
+
hover: '#373538',
|
|
315
|
+
background: presetColors.extraLight,
|
|
316
|
+
backgroundDisable: presetColors.extraLight,
|
|
317
|
+
},
|
|
318
|
+
|
|
319
|
+
font: {...fontObject}
|
|
320
|
+
},
|
|
321
|
+
|
|
322
|
+
options: {
|
|
323
|
+
radius: '6px',
|
|
324
|
+
|
|
325
|
+
colors: {
|
|
326
|
+
background: presetColors.extraLight,
|
|
327
|
+
},
|
|
328
|
+
|
|
329
|
+
box: {
|
|
330
|
+
shadow: '0 0 10px rgba(60, 57, 62, 0.08)',
|
|
331
|
+
},
|
|
332
|
+
|
|
333
|
+
item: {
|
|
334
|
+
color: presetColors.dark,
|
|
335
|
+
cursor: 'pointer',
|
|
336
|
+
padding: '0px 15px',
|
|
337
|
+
minHeight: '46px',
|
|
338
|
+
lineHeight: '25px',
|
|
339
|
+
marginBottom: '2px',
|
|
340
|
+
|
|
341
|
+
box: {
|
|
342
|
+
sizing: boxSizing,
|
|
343
|
+
},
|
|
344
|
+
|
|
345
|
+
colors: {
|
|
346
|
+
hover: presetColors.primarySecond,
|
|
347
|
+
backgroud: '#ffffff',
|
|
348
|
+
backgroudHover: 'unset',
|
|
349
|
+
},
|
|
350
|
+
|
|
351
|
+
font: {...fontObject}
|
|
352
|
+
},
|
|
353
|
+
},
|
|
354
|
+
|
|
355
|
+
error: {
|
|
356
|
+
color: 'rgb(238, 0, 0)',
|
|
357
|
+
marginTop: '10px',
|
|
358
|
+
zIndex: 10,
|
|
359
|
+
|
|
360
|
+
box: {
|
|
361
|
+
shadow: `0 0 0 2px ${presetColors.danger}`
|
|
362
|
+
},
|
|
363
|
+
|
|
364
|
+
font: {...fontObject}
|
|
365
|
+
}
|
|
238
366
|
},
|
|
239
367
|
// default properties for <Textarea /> component
|
|
240
368
|
TEXTAREA: {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
369
|
+
color: presetColors.dark,
|
|
370
|
+
width: '400px',
|
|
371
|
+
height: '134px',
|
|
372
|
+
radius: '6px',
|
|
373
|
+
resize: 'none',
|
|
374
|
+
padding: '12px 15px',
|
|
375
|
+
minWidth: '200px',
|
|
376
|
+
maxWidth: '500px',
|
|
377
|
+
minHeight: '100px',
|
|
378
|
+
maxHeight: '300px',
|
|
379
|
+
maxLength: 1500,
|
|
380
|
+
className: '',
|
|
381
|
+
|
|
382
|
+
box: {
|
|
383
|
+
sizing: boxSizing,
|
|
384
|
+
shadow: `0 0 0 2px ${presetColors.secondary}`, // like border
|
|
385
|
+
|
|
386
|
+
colors: {
|
|
387
|
+
hover: `0 0 0 2px ${presetColors.dark}`, // like border color
|
|
388
|
+
focus: `0 0 0 2px ${presetColors.primarySecond}`, // like border color
|
|
389
|
+
},
|
|
390
|
+
},
|
|
391
|
+
|
|
392
|
+
colors: {
|
|
393
|
+
background: 'white',
|
|
394
|
+
},
|
|
395
|
+
|
|
396
|
+
label: {
|
|
397
|
+
color: presetColors.dark,
|
|
398
|
+
display: 'block',
|
|
399
|
+
marginBottom: '10px',
|
|
400
|
+
|
|
401
|
+
font: {...fontObject}
|
|
402
|
+
},
|
|
403
|
+
|
|
404
|
+
font: {...fontObject},
|
|
405
|
+
|
|
406
|
+
error: {
|
|
407
|
+
color: '#E40E00',
|
|
408
|
+
marginTop: '10px',
|
|
409
|
+
|
|
410
|
+
box: {
|
|
411
|
+
shadow: `0 0 0 2px ${presetColors.danger}` // like border
|
|
412
|
+
},
|
|
413
|
+
|
|
414
|
+
font: {...fontObject}
|
|
415
|
+
}
|
|
268
416
|
},
|
|
269
417
|
// default properties for <NewAutocomplete /> component
|
|
270
418
|
AUTOCOMPLETE: {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
419
|
+
className: '',
|
|
420
|
+
searchCount: 3,
|
|
421
|
+
autoComplete: 'off',
|
|
422
|
+
showOptionDuration: '640ms',
|
|
423
|
+
|
|
424
|
+
color: presetColors.dark,
|
|
425
|
+
radius: '6px',
|
|
426
|
+
height: '46px',
|
|
427
|
+
padding: '0px 15px',
|
|
428
|
+
display: 'flex',
|
|
429
|
+
maxWidth: '400px',
|
|
430
|
+
direction: 'row',
|
|
431
|
+
lineHeight: '22px',
|
|
432
|
+
box: {
|
|
433
|
+
sizing: boxSizing,
|
|
434
|
+
shadow: `0 0 0 2px ${presetColors.secondary}`, // like border
|
|
435
|
+
shadowHover: `0 0 0 2px ${presetColors.dark}`, // like border
|
|
436
|
+
shadowActive: `0 0 0 2px ${presetColors.primarySecond}`, // like border
|
|
437
|
+
},
|
|
438
|
+
font: {...fontObject},
|
|
439
|
+
|
|
440
|
+
parent: {
|
|
441
|
+
display: 'flex',
|
|
442
|
+
direction: 'column',
|
|
443
|
+
position: 'relative',
|
|
444
|
+
},
|
|
445
|
+
|
|
446
|
+
colors: {
|
|
447
|
+
backgroundDisable: presetColors.extraLight,
|
|
448
|
+
},
|
|
449
|
+
|
|
450
|
+
label: {
|
|
451
|
+
color: presetColors.dark,
|
|
452
|
+
display: 'block',
|
|
453
|
+
lineHeight: '22px',
|
|
454
|
+
marginBottom: '6px',
|
|
455
|
+
textTransform: 'none',
|
|
456
|
+
|
|
457
|
+
font: {...fontObject}
|
|
458
|
+
},
|
|
459
|
+
|
|
460
|
+
contentBottom: {
|
|
461
|
+
left: '0px',
|
|
462
|
+
width: '100%',
|
|
463
|
+
zIndex: 1,
|
|
464
|
+
radius: '6px',
|
|
465
|
+
maxWidth: '400px',
|
|
466
|
+
overflow: 'hidden',
|
|
467
|
+
position: 'absolute',
|
|
468
|
+
minHeight: '0px',
|
|
469
|
+
|
|
470
|
+
inner: {
|
|
471
|
+
display: 'flex',
|
|
472
|
+
overflowY: 'auto',
|
|
473
|
+
maxHeight: '234px',
|
|
474
|
+
overflowX: 'hidden',
|
|
475
|
+
direction: 'column',
|
|
476
|
+
},
|
|
477
|
+
|
|
478
|
+
row: {
|
|
479
|
+
color: presetColors.dark,
|
|
480
|
+
height: '46px',
|
|
481
|
+
cursor: 'pointer',
|
|
482
|
+
display: 'flex',
|
|
483
|
+
padding: '0px 15px',
|
|
484
|
+
lineHeight: '22px',
|
|
485
|
+
alignItems: 'center',
|
|
486
|
+
transition: 'all 240ms',
|
|
487
|
+
marginBottom: '2px',
|
|
488
|
+
|
|
489
|
+
colors: {
|
|
490
|
+
hover: presetColors.primarySecond,
|
|
491
|
+
background: '#ffffff',
|
|
492
|
+
backgroundHover: 'initial',
|
|
493
|
+
},
|
|
494
|
+
|
|
495
|
+
font: {...fontObject}
|
|
496
|
+
},
|
|
497
|
+
|
|
498
|
+
colors: {
|
|
499
|
+
background: presetColors.extraLight,
|
|
500
|
+
},
|
|
501
|
+
|
|
502
|
+
box: {
|
|
503
|
+
shadow: '0 0 10px rgba(60, 57, 62, 0.08)',
|
|
504
|
+
sizing: boxSizing,
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
|
|
508
|
+
error: {
|
|
509
|
+
color: presetColors.danger,
|
|
510
|
+
marginTop: '10px',
|
|
511
|
+
|
|
512
|
+
font: {...fontObject},
|
|
513
|
+
|
|
514
|
+
box: {
|
|
515
|
+
shadow: `0 0 0 2px ${presetColors.danger}` // like border
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
|
|
519
|
+
innerError: {
|
|
520
|
+
padding: '0px 15px',
|
|
521
|
+
|
|
522
|
+
colors: {
|
|
523
|
+
background: 'gray',
|
|
524
|
+
}
|
|
525
|
+
}
|
|
342
526
|
},
|
|
343
527
|
// default properties for <Captcha /> component
|
|
344
528
|
CAPTCHA: {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
529
|
+
className: '',
|
|
530
|
+
|
|
531
|
+
label: {
|
|
532
|
+
color: presetColors.dark,
|
|
533
|
+
|
|
534
|
+
font: {...fontObject}
|
|
535
|
+
}
|
|
348
536
|
},
|
|
349
537
|
// default properties for <File /> component
|
|
350
538
|
FILE: {
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
className: '',
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
539
|
+
color: presetColors.dark,
|
|
540
|
+
radius: '6px',
|
|
541
|
+
height: '200px',
|
|
542
|
+
maxWidth: '440px',
|
|
543
|
+
className: '',
|
|
544
|
+
|
|
545
|
+
areaImage: {
|
|
546
|
+
width: '27.8rem',
|
|
547
|
+
height: 'auto',
|
|
548
|
+
},
|
|
549
|
+
|
|
550
|
+
or: 'կամ',
|
|
551
|
+
upload: 'Բեռնել',
|
|
552
|
+
uploadColor: presetColors.success,
|
|
553
|
+
putFileHere: 'Տեղադրել ֆայլը այստեղ',
|
|
554
|
+
|
|
555
|
+
sizeText: 'Առավելագույնը',
|
|
556
|
+
timeForRemoveError: 4000,
|
|
557
|
+
extentionsRowMarginTop: '40px',
|
|
558
|
+
|
|
559
|
+
border: {
|
|
560
|
+
width: '2px',
|
|
561
|
+
style: 'dashed',
|
|
562
|
+
color: presetColors.secondary,
|
|
563
|
+
|
|
564
|
+
colors: {
|
|
565
|
+
hover: presetColors.primarySecond,
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
|
|
569
|
+
colors: {
|
|
570
|
+
background: '#F8F8F8',
|
|
571
|
+
backgroundHidden: 'rgba(60, 57, 62, 0.4)',
|
|
572
|
+
},
|
|
573
|
+
|
|
574
|
+
label: {
|
|
575
|
+
color: '#4A4A4D',
|
|
576
|
+
|
|
577
|
+
font: {...fontObject}
|
|
578
|
+
},
|
|
579
|
+
|
|
580
|
+
font: {...fontObject},
|
|
581
|
+
|
|
582
|
+
error: {
|
|
583
|
+
color: presetColors.danger,
|
|
584
|
+
|
|
585
|
+
font: {...fontObject},
|
|
586
|
+
|
|
587
|
+
format: 'ֆայլի սխալ ֆորմատ',
|
|
588
|
+
maxSize: 'Առավելագույն ծավալ',
|
|
589
|
+
noChoosenFile: 'Ֆայլը ընտրված չէ',
|
|
590
|
+
},
|
|
591
|
+
|
|
592
|
+
progress: {
|
|
593
|
+
color: '#4A4A4D',
|
|
594
|
+
|
|
595
|
+
colors: {
|
|
596
|
+
track: '#E5E8E8',
|
|
597
|
+
failed: '#E40E00',
|
|
598
|
+
success: '#069768',
|
|
599
|
+
loading: presetColors.primary,
|
|
600
|
+
},
|
|
601
|
+
|
|
602
|
+
font: {...fontObject}
|
|
603
|
+
},
|
|
604
|
+
|
|
605
|
+
uploadBtn: {
|
|
606
|
+
label: 'Բեռնել',
|
|
607
|
+
color: '#fff',
|
|
608
|
+
height: '30px',
|
|
609
|
+
|
|
610
|
+
colors: {
|
|
611
|
+
hover: '#fff',
|
|
612
|
+
background: 'rgba(0, 35, 106, 1)',
|
|
613
|
+
backgroundHover: 'rgba(0, 35, 106, 1)',
|
|
614
|
+
},
|
|
615
|
+
|
|
616
|
+
font: {...fontObject}
|
|
617
|
+
},
|
|
618
|
+
|
|
619
|
+
listItem: {
|
|
620
|
+
color: '#4a4a4d',
|
|
621
|
+
height: '70px',
|
|
622
|
+
padding: '14px 20px',
|
|
623
|
+
|
|
624
|
+
colors: {
|
|
625
|
+
background: '#F6F8F8',
|
|
626
|
+
backgroundError: '#F6F8F8',
|
|
627
|
+
},
|
|
628
|
+
|
|
629
|
+
font: {...fontObject},
|
|
630
|
+
|
|
631
|
+
error: {
|
|
632
|
+
color: '#E40E00',
|
|
633
|
+
font: {...fontObject}
|
|
634
|
+
}
|
|
635
|
+
},
|
|
636
|
+
|
|
637
|
+
icon: {
|
|
638
|
+
// comment here for example,
|
|
639
|
+
|
|
640
|
+
// pdf: React.createElement(SvgChecked, { fill: 'green' }),
|
|
641
|
+
// png: React.createElement(SvgChecked, { fill: 'green' }),
|
|
642
|
+
// jpg: React.createElement(SvgChecked, { fill: 'green' }),
|
|
643
|
+
// jpeg: React.createElement(SvgChecked, { fill: 'green' }),
|
|
644
|
+
// heic: React.createElement(SvgChecked, { fill: 'green' }),
|
|
645
|
+
// wrong: React.createElement(SvgChecked, { fill: 'green' }),
|
|
646
|
+
// upload: React.createElement(SvgChecked, { fill: 'green' }),
|
|
647
|
+
// required: React.createElement(SvgChecked, { fill: 'green' }),
|
|
648
|
+
// removeFile: React.createElement(SvgChecked, { fill: 'green' }),
|
|
649
|
+
// deleteComponent: React.createElement(SvgChecked, { fill: 'green' }),
|
|
650
|
+
// deleteItem: React.createElement(SvgUnchecked, { fill: 'green' }),
|
|
651
|
+
}
|
|
398
652
|
},
|
|
399
653
|
// default properties for <Modal /> component
|
|
400
654
|
MODAL: {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
radius: '14px',
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
655
|
+
width: '',
|
|
656
|
+
height: '',
|
|
657
|
+
maxWidth: '95%',
|
|
658
|
+
minWidth: '320px',
|
|
659
|
+
maxHeight: '95vh',
|
|
660
|
+
minHeight: '200px',
|
|
661
|
+
radius: '14px',
|
|
662
|
+
padding: '20px 20px 20px',
|
|
663
|
+
className: '',
|
|
664
|
+
alignItems: 'center',
|
|
665
|
+
outsideClose: true,
|
|
666
|
+
justifyContent: 'center',
|
|
667
|
+
grayDecorHeight: '80px',
|
|
668
|
+
|
|
669
|
+
border: {
|
|
670
|
+
width: '20px',
|
|
671
|
+
style: 'solid',
|
|
672
|
+
color: transparent,
|
|
673
|
+
},
|
|
674
|
+
|
|
675
|
+
colors: {
|
|
676
|
+
background: 'white',
|
|
677
|
+
backgroundLayer: 'rgba(0,0,0,0.4)',
|
|
678
|
+
},
|
|
679
|
+
|
|
680
|
+
header: {
|
|
681
|
+
color: presetColors.primarySecond,
|
|
682
|
+
height: '30px',
|
|
683
|
+
font: {...fontObject}
|
|
684
|
+
},
|
|
685
|
+
|
|
686
|
+
image: {
|
|
687
|
+
width: '',
|
|
688
|
+
margin: '0px',
|
|
689
|
+
height: '100%',
|
|
690
|
+
maxWidth: '100%',
|
|
691
|
+
wrapWidth: '100%',
|
|
692
|
+
wrapHeight: '100%',
|
|
693
|
+
},
|
|
694
|
+
|
|
695
|
+
icon: {
|
|
696
|
+
// zoom: React.createElement(SvgChecked, { fill: 'green' }),
|
|
697
|
+
// prev: React.createElement(SvgChecked, { fill: 'green' }),
|
|
698
|
+
// next: React.createElement(SvgChecked, { fill: 'green' }),
|
|
699
|
+
// close: React.createElement(SvgChecked, { fill: 'green' }),
|
|
700
|
+
// closeSlide: React.createElement(SvgChecked, { fill: 'green' }),
|
|
701
|
+
},
|
|
702
|
+
closeAreaBackgroundColor: 'linear-gradient(to bottom, rgb(60, 57, 62), rgba(60, 57, 62, 0))' // for close div background color
|
|
429
703
|
},
|
|
430
704
|
// default properties for <Checkbox /> component
|
|
431
705
|
CHECKBOX: {
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
706
|
+
className: '',
|
|
707
|
+
marginBottom: '10px',
|
|
708
|
+
|
|
709
|
+
colors: {
|
|
710
|
+
checked: presetColors.primarySecond,
|
|
711
|
+
unChecked: presetColors.secondary,
|
|
712
|
+
},
|
|
713
|
+
|
|
714
|
+
label: {
|
|
715
|
+
marginLeft: '10px',
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
// checkedIcon: React.createElement(SvgChecked, { fill: 'green' }),
|
|
719
|
+
// unCheckedIcon: React.createElement(<SvgUnchecked fill="#E00" />),
|
|
437
720
|
},
|
|
438
721
|
// default properties for <Table /> component
|
|
439
722
|
TABLE: {
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
723
|
+
className: '',
|
|
724
|
+
textAlign: 'center',
|
|
725
|
+
|
|
726
|
+
column: {
|
|
727
|
+
maxWidth: '',
|
|
728
|
+
minWidth: '',
|
|
729
|
+
},
|
|
730
|
+
|
|
731
|
+
head: {
|
|
732
|
+
color: presetColors.extraLight,
|
|
733
|
+
radius: '14px',
|
|
734
|
+
padding: '11px 20px',
|
|
735
|
+
|
|
736
|
+
colors: {
|
|
737
|
+
background: presetColors.primarySecond,
|
|
738
|
+
},
|
|
739
|
+
|
|
740
|
+
font: {...fontObject}
|
|
741
|
+
},
|
|
742
|
+
|
|
743
|
+
body: {
|
|
744
|
+
color: presetColors.dark,
|
|
745
|
+
padding: '11px 20px',
|
|
746
|
+
|
|
747
|
+
box: {
|
|
748
|
+
shadow: '',
|
|
749
|
+
},
|
|
750
|
+
|
|
751
|
+
row: {
|
|
752
|
+
asItem: false,
|
|
753
|
+
radius: '6px',
|
|
754
|
+
marginTop: '10px',
|
|
755
|
+
|
|
756
|
+
colors: {
|
|
757
|
+
backgroud: transparent,
|
|
758
|
+
},
|
|
759
|
+
|
|
760
|
+
box: {
|
|
761
|
+
shadow: '',
|
|
762
|
+
},
|
|
763
|
+
|
|
764
|
+
border: '1px solid',
|
|
765
|
+
borderColor: presetColors.light
|
|
766
|
+
},
|
|
767
|
+
|
|
768
|
+
font: {...fontObject}
|
|
769
|
+
},
|
|
770
|
+
|
|
771
|
+
openList: {
|
|
772
|
+
color: '#A3A5A9',
|
|
773
|
+
font: {...fontObject}
|
|
774
|
+
}
|
|
469
775
|
},
|
|
470
776
|
// default properties for <Pagination /> component
|
|
471
777
|
PAGINATION: {
|
|
472
|
-
className: '' // for pagination class
|
|
778
|
+
className: '', // for pagination class
|
|
473
779
|
},
|
|
474
780
|
// default properties for <Toaster /> component
|
|
475
781
|
TOASTER: {
|
|
476
|
-
className: ''
|
|
782
|
+
className: '',
|
|
783
|
+
icon: {
|
|
784
|
+
// info: React.createElement(SvgChecked, { just: 'must' }),
|
|
785
|
+
// warn: React.createElement(SvgUnchecked, { just: 'must' }),
|
|
786
|
+
// close: React.createElement(SvgChecked, { fill: 'green' }),
|
|
787
|
+
// error: React.createElement(SvgChecked, { fill: 'green' }),
|
|
788
|
+
// success: React.createElement(SvgChecked, { fill: 'green' }),
|
|
789
|
+
}
|
|
477
790
|
},
|
|
478
791
|
// default properties for <Stepper /> component
|
|
479
792
|
STEPPER: {
|
|
480
|
-
className: '' // for stepper class
|
|
793
|
+
className: '', // for stepper class
|
|
481
794
|
},
|
|
482
795
|
// default properties for <Radio /> component
|
|
483
796
|
RADIO: {
|
|
484
|
-
size: '20px',
|
|
485
|
-
className: '',
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
797
|
+
size: '20px',
|
|
798
|
+
className: '',
|
|
799
|
+
marginRight: '10px',
|
|
800
|
+
|
|
801
|
+
item: {
|
|
802
|
+
marginRight: '10px',
|
|
803
|
+
marginBottom: '10px',
|
|
804
|
+
},
|
|
805
|
+
|
|
806
|
+
border: {
|
|
807
|
+
width: '2px',
|
|
808
|
+
style: 'solid',
|
|
809
|
+
color: '#E7E7E7',
|
|
810
|
+
activeColor: '#3C3D46',
|
|
811
|
+
},
|
|
812
|
+
|
|
813
|
+
label: {
|
|
814
|
+
color: '#3C3D46',
|
|
815
|
+
lineHeight: '21px',
|
|
816
|
+
|
|
817
|
+
font: {...fontObject}
|
|
818
|
+
}
|
|
819
|
+
},
|
|
500
820
|
}
|