tp-react-elements-dev 1.13.0 → 1.13.1
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.
|
@@ -1,195 +1,195 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* ______ _ _ _
|
|
3
|
-
* | ____| | | | (_)
|
|
4
|
-
* | |__ | | __ _| |_ _ ___ ___ _ __
|
|
5
|
-
* | __| | |/ _` | __| |/ __/ _ \| '_ \
|
|
6
|
-
* | | | | (_| | |_| | (_| (_) | | | |
|
|
7
|
-
* |_| |_|\__,_|\__|_|\___\___/|_| |_|
|
|
8
|
-
*
|
|
9
|
-
* https://www.flaticon.com
|
|
10
|
-
*/
|
|
11
|
-
|
|
12
|
-
@font-face {
|
|
13
|
-
font-family: 'flaticon_hvc';
|
|
14
|
-
src:
|
|
15
|
-
url('./flaticon_hvc.woff2?09127989b5c99a4f290cd7bb7c4bad12') format('woff2'),
|
|
16
|
-
url('./flaticon_hvc.woff?09127989b5c99a4f290cd7bb7c4bad12') format('woff'),
|
|
17
|
-
url('./flaticon_hvc.eot?09127989b5c99a4f290cd7bb7c4bad12#iefix') format('embedded-opentype'),
|
|
18
|
-
url('./flaticon_hvc.ttf?09127989b5c99a4f290cd7bb7c4bad12') format('truetype'),
|
|
19
|
-
url('./flaticon_hvc.svg?09127989b5c99a4f290cd7bb7c4bad12#flaticon_hvc') format('svg');
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
i[class^='flaticon-']:before,
|
|
23
|
-
i[class*=' flaticon-']:before {
|
|
24
|
-
font-family: flaticon_hvc !important;
|
|
25
|
-
font-style: normal;
|
|
26
|
-
font-weight: normal !important;
|
|
27
|
-
font-variant: normal;
|
|
28
|
-
text-transform: none;
|
|
29
|
-
line-height: 1;
|
|
30
|
-
-webkit-font-smoothing: antialiased;
|
|
31
|
-
-moz-osx-font-smoothing: grayscale;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.flaticon-setting:before {
|
|
35
|
-
content: '\f101';
|
|
36
|
-
}
|
|
37
|
-
.flaticon-refresh:before {
|
|
38
|
-
content: '\f102';
|
|
39
|
-
}
|
|
40
|
-
.flaticon-setting-1:before {
|
|
41
|
-
content: '\f103';
|
|
42
|
-
}
|
|
43
|
-
.flaticon-check:before {
|
|
44
|
-
content: '\f104';
|
|
45
|
-
}
|
|
46
|
-
.flaticon-bank:before {
|
|
47
|
-
content: '\f105';
|
|
48
|
-
}
|
|
49
|
-
.flaticon-user:before {
|
|
50
|
-
content: '\f106';
|
|
51
|
-
}
|
|
52
|
-
.flaticon-user-1:before {
|
|
53
|
-
content: '\f107';
|
|
54
|
-
}
|
|
55
|
-
.flaticon-info-sign:before {
|
|
56
|
-
content: '\f108';
|
|
57
|
-
}
|
|
58
|
-
.flaticon-clipboard:before {
|
|
59
|
-
content: '\f109';
|
|
60
|
-
}
|
|
61
|
-
.flaticon-right-arrow:before {
|
|
62
|
-
content: '\f10a';
|
|
63
|
-
}
|
|
64
|
-
.flaticon-home:before {
|
|
65
|
-
content: '\f10b';
|
|
66
|
-
}
|
|
67
|
-
.flaticon-search:before {
|
|
68
|
-
content: '\f10c';
|
|
69
|
-
}
|
|
70
|
-
.flaticon-eye:before {
|
|
71
|
-
content: '\f10d';
|
|
72
|
-
}
|
|
73
|
-
.flaticon-edit:before {
|
|
74
|
-
content: '\f10e';
|
|
75
|
-
}
|
|
76
|
-
.flaticon-delete:before {
|
|
77
|
-
content: '\f10f';
|
|
78
|
-
}
|
|
79
|
-
.flaticon-add-1:before {
|
|
80
|
-
content: '\f110';
|
|
81
|
-
}
|
|
82
|
-
.flaticon-plus-1:before {
|
|
83
|
-
content: '\f111';
|
|
84
|
-
}
|
|
85
|
-
.flaticon-compose:before {
|
|
86
|
-
content: '\f112';
|
|
87
|
-
}
|
|
88
|
-
.flaticon-trash:before {
|
|
89
|
-
content: '\f113';
|
|
90
|
-
}
|
|
91
|
-
.flaticon-download:before {
|
|
92
|
-
content: '\f114';
|
|
93
|
-
}
|
|
94
|
-
.flaticon-downloading:before {
|
|
95
|
-
content: '\f115';
|
|
96
|
-
}
|
|
97
|
-
.flaticon-upload:before {
|
|
98
|
-
content: '\f116';
|
|
99
|
-
}
|
|
100
|
-
.flaticon-right-arrow-1:before {
|
|
101
|
-
content: '\f117';
|
|
102
|
-
}
|
|
103
|
-
.flaticon-user-2:before {
|
|
104
|
-
content: '\f118';
|
|
105
|
-
}
|
|
106
|
-
.flaticon-man-in-suit-and-tie:before {
|
|
107
|
-
content: '\f119';
|
|
108
|
-
}
|
|
109
|
-
.flaticon-cancel:before {
|
|
110
|
-
content: '\f11a';
|
|
111
|
-
}
|
|
112
|
-
.flaticon-check-mark:before {
|
|
113
|
-
content: '\f11b';
|
|
114
|
-
}
|
|
115
|
-
.flaticon-bars:before {
|
|
116
|
-
content: '\f11c';
|
|
117
|
-
}
|
|
118
|
-
.flaticon-copy:before {
|
|
119
|
-
content: '\f11d';
|
|
120
|
-
}
|
|
121
|
-
.flaticon-printer:before {
|
|
122
|
-
content: '\f11e';
|
|
123
|
-
}
|
|
124
|
-
.flaticon-file:before {
|
|
125
|
-
content: '\f11f';
|
|
126
|
-
}
|
|
127
|
-
.flaticon-file-1:before {
|
|
128
|
-
content: '\f120';
|
|
129
|
-
}
|
|
130
|
-
.flaticon-file-2:before {
|
|
131
|
-
content: '\f121';
|
|
132
|
-
}
|
|
133
|
-
.flaticon-eye-1:before {
|
|
134
|
-
content: '\f122';
|
|
135
|
-
}
|
|
136
|
-
.flaticon-upload-1:before {
|
|
137
|
-
content: '\f123';
|
|
138
|
-
}
|
|
139
|
-
.flaticon-production:before {
|
|
140
|
-
content: '\f124';
|
|
141
|
-
}
|
|
142
|
-
.flaticon-cube:before {
|
|
143
|
-
content: '\f125';
|
|
144
|
-
}
|
|
145
|
-
.flaticon-rotation:before {
|
|
146
|
-
content: '\f126';
|
|
147
|
-
}
|
|
148
|
-
.flaticon-rotation-1:before {
|
|
149
|
-
content: '\f127';
|
|
150
|
-
}
|
|
151
|
-
.flaticon-spinning:before {
|
|
152
|
-
content: '\f128';
|
|
153
|
-
}
|
|
154
|
-
.flaticon-spinning-1:before {
|
|
155
|
-
content: '\f129';
|
|
156
|
-
}
|
|
157
|
-
.flaticon-ready-stock:before {
|
|
158
|
-
content: '\f12a';
|
|
159
|
-
}
|
|
160
|
-
.flaticon-ready-stock-1:before {
|
|
161
|
-
content: '\f12b';
|
|
162
|
-
}
|
|
163
|
-
.flaticon-visible:before {
|
|
164
|
-
content: '\f12c';
|
|
165
|
-
}
|
|
166
|
-
.flaticon-printing:before {
|
|
167
|
-
content: '\f12d';
|
|
168
|
-
}
|
|
169
|
-
.flaticon-like:before {
|
|
170
|
-
content: '\f12e';
|
|
171
|
-
}
|
|
172
|
-
.flaticon-thumb-up:before {
|
|
173
|
-
content: '\f12f';
|
|
174
|
-
}
|
|
175
|
-
.flaticon-thumbs-up:before {
|
|
176
|
-
content: '\f130';
|
|
177
|
-
}
|
|
178
|
-
.flaticon-thumb-down:before {
|
|
179
|
-
content: '\f131';
|
|
180
|
-
}
|
|
181
|
-
.flaticon-dislike:before {
|
|
182
|
-
content: '\f132';
|
|
183
|
-
}
|
|
184
|
-
.flaticon-thumb-down-1:before {
|
|
185
|
-
content: '\f133';
|
|
186
|
-
}
|
|
187
|
-
.flaticon-pointing-right:before {
|
|
188
|
-
content: '\f134';
|
|
189
|
-
}
|
|
190
|
-
.flaticon-point:before {
|
|
191
|
-
content: '\f135';
|
|
192
|
-
}
|
|
193
|
-
.flaticon-history:before {
|
|
194
|
-
content: '\f136';
|
|
195
|
-
}
|
|
1
|
+
/*!
|
|
2
|
+
* ______ _ _ _
|
|
3
|
+
* | ____| | | | (_)
|
|
4
|
+
* | |__ | | __ _| |_ _ ___ ___ _ __
|
|
5
|
+
* | __| | |/ _` | __| |/ __/ _ \| '_ \
|
|
6
|
+
* | | | | (_| | |_| | (_| (_) | | | |
|
|
7
|
+
* |_| |_|\__,_|\__|_|\___\___/|_| |_|
|
|
8
|
+
*
|
|
9
|
+
* https://www.flaticon.com
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: 'flaticon_hvc';
|
|
14
|
+
src:
|
|
15
|
+
url('./flaticon_hvc.woff2?09127989b5c99a4f290cd7bb7c4bad12') format('woff2'),
|
|
16
|
+
url('./flaticon_hvc.woff?09127989b5c99a4f290cd7bb7c4bad12') format('woff'),
|
|
17
|
+
url('./flaticon_hvc.eot?09127989b5c99a4f290cd7bb7c4bad12#iefix') format('embedded-opentype'),
|
|
18
|
+
url('./flaticon_hvc.ttf?09127989b5c99a4f290cd7bb7c4bad12') format('truetype'),
|
|
19
|
+
url('./flaticon_hvc.svg?09127989b5c99a4f290cd7bb7c4bad12#flaticon_hvc') format('svg');
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
i[class^='flaticon-']:before,
|
|
23
|
+
i[class*=' flaticon-']:before {
|
|
24
|
+
font-family: flaticon_hvc !important;
|
|
25
|
+
font-style: normal;
|
|
26
|
+
font-weight: normal !important;
|
|
27
|
+
font-variant: normal;
|
|
28
|
+
text-transform: none;
|
|
29
|
+
line-height: 1;
|
|
30
|
+
-webkit-font-smoothing: antialiased;
|
|
31
|
+
-moz-osx-font-smoothing: grayscale;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.flaticon-setting:before {
|
|
35
|
+
content: '\f101';
|
|
36
|
+
}
|
|
37
|
+
.flaticon-refresh:before {
|
|
38
|
+
content: '\f102';
|
|
39
|
+
}
|
|
40
|
+
.flaticon-setting-1:before {
|
|
41
|
+
content: '\f103';
|
|
42
|
+
}
|
|
43
|
+
.flaticon-check:before {
|
|
44
|
+
content: '\f104';
|
|
45
|
+
}
|
|
46
|
+
.flaticon-bank:before {
|
|
47
|
+
content: '\f105';
|
|
48
|
+
}
|
|
49
|
+
.flaticon-user:before {
|
|
50
|
+
content: '\f106';
|
|
51
|
+
}
|
|
52
|
+
.flaticon-user-1:before {
|
|
53
|
+
content: '\f107';
|
|
54
|
+
}
|
|
55
|
+
.flaticon-info-sign:before {
|
|
56
|
+
content: '\f108';
|
|
57
|
+
}
|
|
58
|
+
.flaticon-clipboard:before {
|
|
59
|
+
content: '\f109';
|
|
60
|
+
}
|
|
61
|
+
.flaticon-right-arrow:before {
|
|
62
|
+
content: '\f10a';
|
|
63
|
+
}
|
|
64
|
+
.flaticon-home:before {
|
|
65
|
+
content: '\f10b';
|
|
66
|
+
}
|
|
67
|
+
.flaticon-search:before {
|
|
68
|
+
content: '\f10c';
|
|
69
|
+
}
|
|
70
|
+
.flaticon-eye:before {
|
|
71
|
+
content: '\f10d';
|
|
72
|
+
}
|
|
73
|
+
.flaticon-edit:before {
|
|
74
|
+
content: '\f10e';
|
|
75
|
+
}
|
|
76
|
+
.flaticon-delete:before {
|
|
77
|
+
content: '\f10f';
|
|
78
|
+
}
|
|
79
|
+
.flaticon-add-1:before {
|
|
80
|
+
content: '\f110';
|
|
81
|
+
}
|
|
82
|
+
.flaticon-plus-1:before {
|
|
83
|
+
content: '\f111';
|
|
84
|
+
}
|
|
85
|
+
.flaticon-compose:before {
|
|
86
|
+
content: '\f112';
|
|
87
|
+
}
|
|
88
|
+
.flaticon-trash:before {
|
|
89
|
+
content: '\f113';
|
|
90
|
+
}
|
|
91
|
+
.flaticon-download:before {
|
|
92
|
+
content: '\f114';
|
|
93
|
+
}
|
|
94
|
+
.flaticon-downloading:before {
|
|
95
|
+
content: '\f115';
|
|
96
|
+
}
|
|
97
|
+
.flaticon-upload:before {
|
|
98
|
+
content: '\f116';
|
|
99
|
+
}
|
|
100
|
+
.flaticon-right-arrow-1:before {
|
|
101
|
+
content: '\f117';
|
|
102
|
+
}
|
|
103
|
+
.flaticon-user-2:before {
|
|
104
|
+
content: '\f118';
|
|
105
|
+
}
|
|
106
|
+
.flaticon-man-in-suit-and-tie:before {
|
|
107
|
+
content: '\f119';
|
|
108
|
+
}
|
|
109
|
+
.flaticon-cancel:before {
|
|
110
|
+
content: '\f11a';
|
|
111
|
+
}
|
|
112
|
+
.flaticon-check-mark:before {
|
|
113
|
+
content: '\f11b';
|
|
114
|
+
}
|
|
115
|
+
.flaticon-bars:before {
|
|
116
|
+
content: '\f11c';
|
|
117
|
+
}
|
|
118
|
+
.flaticon-copy:before {
|
|
119
|
+
content: '\f11d';
|
|
120
|
+
}
|
|
121
|
+
.flaticon-printer:before {
|
|
122
|
+
content: '\f11e';
|
|
123
|
+
}
|
|
124
|
+
.flaticon-file:before {
|
|
125
|
+
content: '\f11f';
|
|
126
|
+
}
|
|
127
|
+
.flaticon-file-1:before {
|
|
128
|
+
content: '\f120';
|
|
129
|
+
}
|
|
130
|
+
.flaticon-file-2:before {
|
|
131
|
+
content: '\f121';
|
|
132
|
+
}
|
|
133
|
+
.flaticon-eye-1:before {
|
|
134
|
+
content: '\f122';
|
|
135
|
+
}
|
|
136
|
+
.flaticon-upload-1:before {
|
|
137
|
+
content: '\f123';
|
|
138
|
+
}
|
|
139
|
+
.flaticon-production:before {
|
|
140
|
+
content: '\f124';
|
|
141
|
+
}
|
|
142
|
+
.flaticon-cube:before {
|
|
143
|
+
content: '\f125';
|
|
144
|
+
}
|
|
145
|
+
.flaticon-rotation:before {
|
|
146
|
+
content: '\f126';
|
|
147
|
+
}
|
|
148
|
+
.flaticon-rotation-1:before {
|
|
149
|
+
content: '\f127';
|
|
150
|
+
}
|
|
151
|
+
.flaticon-spinning:before {
|
|
152
|
+
content: '\f128';
|
|
153
|
+
}
|
|
154
|
+
.flaticon-spinning-1:before {
|
|
155
|
+
content: '\f129';
|
|
156
|
+
}
|
|
157
|
+
.flaticon-ready-stock:before {
|
|
158
|
+
content: '\f12a';
|
|
159
|
+
}
|
|
160
|
+
.flaticon-ready-stock-1:before {
|
|
161
|
+
content: '\f12b';
|
|
162
|
+
}
|
|
163
|
+
.flaticon-visible:before {
|
|
164
|
+
content: '\f12c';
|
|
165
|
+
}
|
|
166
|
+
.flaticon-printing:before {
|
|
167
|
+
content: '\f12d';
|
|
168
|
+
}
|
|
169
|
+
.flaticon-like:before {
|
|
170
|
+
content: '\f12e';
|
|
171
|
+
}
|
|
172
|
+
.flaticon-thumb-up:before {
|
|
173
|
+
content: '\f12f';
|
|
174
|
+
}
|
|
175
|
+
.flaticon-thumbs-up:before {
|
|
176
|
+
content: '\f130';
|
|
177
|
+
}
|
|
178
|
+
.flaticon-thumb-down:before {
|
|
179
|
+
content: '\f131';
|
|
180
|
+
}
|
|
181
|
+
.flaticon-dislike:before {
|
|
182
|
+
content: '\f132';
|
|
183
|
+
}
|
|
184
|
+
.flaticon-thumb-down-1:before {
|
|
185
|
+
content: '\f133';
|
|
186
|
+
}
|
|
187
|
+
.flaticon-pointing-right:before {
|
|
188
|
+
content: '\f134';
|
|
189
|
+
}
|
|
190
|
+
.flaticon-point:before {
|
|
191
|
+
content: '\f135';
|
|
192
|
+
}
|
|
193
|
+
.flaticon-history:before {
|
|
194
|
+
content: '\f136';
|
|
195
|
+
}
|
|
@@ -1,243 +1,243 @@
|
|
|
1
|
-
$flaticon_hvc-font: 'flaticon_hvc';
|
|
2
|
-
|
|
3
|
-
@font-face {
|
|
4
|
-
font-family: $flaticon_hvc-font;
|
|
5
|
-
src:
|
|
6
|
-
url('./flaticon_hvc.woff2?09127989b5c99a4f290cd7bb7c4bad12') format('woff2'),
|
|
7
|
-
url('./flaticon_hvc.woff?09127989b5c99a4f290cd7bb7c4bad12') format('woff'),
|
|
8
|
-
url('./flaticon_hvc.eot?09127989b5c99a4f290cd7bb7c4bad12#iefix') format('embedded-opentype'),
|
|
9
|
-
url('./flaticon_hvc.ttf?09127989b5c99a4f290cd7bb7c4bad12') format('truetype'),
|
|
10
|
-
url('./flaticon_hvc.svg?09127989b5c99a4f290cd7bb7c4bad12#flaticon_hvc') format('svg');
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
i[class^='flaticon-']:before,
|
|
14
|
-
i[class*=' flaticon-']:before {
|
|
15
|
-
font-family: flaticon_hvc !important;
|
|
16
|
-
font-style: normal;
|
|
17
|
-
font-weight: normal !important;
|
|
18
|
-
font-variant: normal;
|
|
19
|
-
text-transform: none;
|
|
20
|
-
line-height: 1;
|
|
21
|
-
-webkit-font-smoothing: antialiased;
|
|
22
|
-
-moz-osx-font-smoothing: grayscale;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
$flaticon_hvc-map: (
|
|
26
|
-
'setting': '\f101',
|
|
27
|
-
'refresh': '\f102',
|
|
28
|
-
'setting-1': '\f103',
|
|
29
|
-
'check': '\f104',
|
|
30
|
-
'bank': '\f105',
|
|
31
|
-
'user': '\f106',
|
|
32
|
-
'user-1': '\f107',
|
|
33
|
-
'info-sign': '\f108',
|
|
34
|
-
'clipboard': '\f109',
|
|
35
|
-
'right-arrow': '\f10a',
|
|
36
|
-
'home': '\f10b',
|
|
37
|
-
'search': '\f10c',
|
|
38
|
-
'eye': '\f10d',
|
|
39
|
-
'edit': '\f10e',
|
|
40
|
-
'delete': '\f10f',
|
|
41
|
-
'add-1': '\f110',
|
|
42
|
-
'plus-1': '\f111',
|
|
43
|
-
'compose': '\f112',
|
|
44
|
-
'trash': '\f113',
|
|
45
|
-
'download': '\f114',
|
|
46
|
-
'downloading': '\f115',
|
|
47
|
-
'upload': '\f116',
|
|
48
|
-
'right-arrow-1': '\f117',
|
|
49
|
-
'user-2': '\f118',
|
|
50
|
-
'man-in-suit-and-tie': '\f119',
|
|
51
|
-
'cancel': '\f11a',
|
|
52
|
-
'check-mark': '\f11b',
|
|
53
|
-
'bars': '\f11c',
|
|
54
|
-
'copy': '\f11d',
|
|
55
|
-
'printer': '\f11e',
|
|
56
|
-
'file': '\f11f',
|
|
57
|
-
'file-1': '\f120',
|
|
58
|
-
'file-2': '\f121',
|
|
59
|
-
'eye-1': '\f122',
|
|
60
|
-
'upload-1': '\f123',
|
|
61
|
-
'production': '\f124',
|
|
62
|
-
'cube': '\f125',
|
|
63
|
-
'rotation': '\f126',
|
|
64
|
-
'rotation-1': '\f127',
|
|
65
|
-
'spinning': '\f128',
|
|
66
|
-
'spinning-1': '\f129',
|
|
67
|
-
'ready-stock': '\f12a',
|
|
68
|
-
'ready-stock-1': '\f12b',
|
|
69
|
-
'visible': '\f12c',
|
|
70
|
-
'printing': '\f12d',
|
|
71
|
-
'like': '\f12e',
|
|
72
|
-
'thumb-up': '\f12f',
|
|
73
|
-
'thumbs-up': '\f130',
|
|
74
|
-
'thumb-down': '\f131',
|
|
75
|
-
'dislike': '\f132',
|
|
76
|
-
'thumb-down-1': '\f133',
|
|
77
|
-
'pointing-right': '\f134',
|
|
78
|
-
'point': '\f135',
|
|
79
|
-
'history': '\f136',
|
|
80
|
-
);
|
|
81
|
-
|
|
82
|
-
.flaticon-setting:before {
|
|
83
|
-
content: map-get($flaticon_hvc-map, 'setting');
|
|
84
|
-
}
|
|
85
|
-
.flaticon-refresh:before {
|
|
86
|
-
content: map-get($flaticon_hvc-map, 'refresh');
|
|
87
|
-
}
|
|
88
|
-
.flaticon-setting-1:before {
|
|
89
|
-
content: map-get($flaticon_hvc-map, 'setting-1');
|
|
90
|
-
}
|
|
91
|
-
.flaticon-check:before {
|
|
92
|
-
content: map-get($flaticon_hvc-map, 'check');
|
|
93
|
-
}
|
|
94
|
-
.flaticon-bank:before {
|
|
95
|
-
content: map-get($flaticon_hvc-map, 'bank');
|
|
96
|
-
}
|
|
97
|
-
.flaticon-user:before {
|
|
98
|
-
content: map-get($flaticon_hvc-map, 'user');
|
|
99
|
-
}
|
|
100
|
-
.flaticon-user-1:before {
|
|
101
|
-
content: map-get($flaticon_hvc-map, 'user-1');
|
|
102
|
-
}
|
|
103
|
-
.flaticon-info-sign:before {
|
|
104
|
-
content: map-get($flaticon_hvc-map, 'info-sign');
|
|
105
|
-
}
|
|
106
|
-
.flaticon-clipboard:before {
|
|
107
|
-
content: map-get($flaticon_hvc-map, 'clipboard');
|
|
108
|
-
}
|
|
109
|
-
.flaticon-right-arrow:before {
|
|
110
|
-
content: map-get($flaticon_hvc-map, 'right-arrow');
|
|
111
|
-
}
|
|
112
|
-
.flaticon-home:before {
|
|
113
|
-
content: map-get($flaticon_hvc-map, 'home');
|
|
114
|
-
}
|
|
115
|
-
.flaticon-search:before {
|
|
116
|
-
content: map-get($flaticon_hvc-map, 'search');
|
|
117
|
-
}
|
|
118
|
-
.flaticon-eye:before {
|
|
119
|
-
content: map-get($flaticon_hvc-map, 'eye');
|
|
120
|
-
}
|
|
121
|
-
.flaticon-edit:before {
|
|
122
|
-
content: map-get($flaticon_hvc-map, 'edit');
|
|
123
|
-
}
|
|
124
|
-
.flaticon-delete:before {
|
|
125
|
-
content: map-get($flaticon_hvc-map, 'delete');
|
|
126
|
-
}
|
|
127
|
-
.flaticon-add-1:before {
|
|
128
|
-
content: map-get($flaticon_hvc-map, 'add-1');
|
|
129
|
-
}
|
|
130
|
-
.flaticon-plus-1:before {
|
|
131
|
-
content: map-get($flaticon_hvc-map, 'plus-1');
|
|
132
|
-
}
|
|
133
|
-
.flaticon-compose:before {
|
|
134
|
-
content: map-get($flaticon_hvc-map, 'compose');
|
|
135
|
-
}
|
|
136
|
-
.flaticon-trash:before {
|
|
137
|
-
content: map-get($flaticon_hvc-map, 'trash');
|
|
138
|
-
}
|
|
139
|
-
.flaticon-download:before {
|
|
140
|
-
content: map-get($flaticon_hvc-map, 'download');
|
|
141
|
-
}
|
|
142
|
-
.flaticon-downloading:before {
|
|
143
|
-
content: map-get($flaticon_hvc-map, 'downloading');
|
|
144
|
-
}
|
|
145
|
-
.flaticon-upload:before {
|
|
146
|
-
content: map-get($flaticon_hvc-map, 'upload');
|
|
147
|
-
}
|
|
148
|
-
.flaticon-right-arrow-1:before {
|
|
149
|
-
content: map-get($flaticon_hvc-map, 'right-arrow-1');
|
|
150
|
-
}
|
|
151
|
-
.flaticon-user-2:before {
|
|
152
|
-
content: map-get($flaticon_hvc-map, 'user-2');
|
|
153
|
-
}
|
|
154
|
-
.flaticon-man-in-suit-and-tie:before {
|
|
155
|
-
content: map-get($flaticon_hvc-map, 'man-in-suit-and-tie');
|
|
156
|
-
}
|
|
157
|
-
.flaticon-cancel:before {
|
|
158
|
-
content: map-get($flaticon_hvc-map, 'cancel');
|
|
159
|
-
}
|
|
160
|
-
.flaticon-check-mark:before {
|
|
161
|
-
content: map-get($flaticon_hvc-map, 'check-mark');
|
|
162
|
-
}
|
|
163
|
-
.flaticon-bars:before {
|
|
164
|
-
content: map-get($flaticon_hvc-map, 'bars');
|
|
165
|
-
}
|
|
166
|
-
.flaticon-copy:before {
|
|
167
|
-
content: map-get($flaticon_hvc-map, 'copy');
|
|
168
|
-
}
|
|
169
|
-
.flaticon-printer:before {
|
|
170
|
-
content: map-get($flaticon_hvc-map, 'printer');
|
|
171
|
-
}
|
|
172
|
-
.flaticon-file:before {
|
|
173
|
-
content: map-get($flaticon_hvc-map, 'file');
|
|
174
|
-
}
|
|
175
|
-
.flaticon-file-1:before {
|
|
176
|
-
content: map-get($flaticon_hvc-map, 'file-1');
|
|
177
|
-
}
|
|
178
|
-
.flaticon-file-2:before {
|
|
179
|
-
content: map-get($flaticon_hvc-map, 'file-2');
|
|
180
|
-
}
|
|
181
|
-
.flaticon-eye-1:before {
|
|
182
|
-
content: map-get($flaticon_hvc-map, 'eye-1');
|
|
183
|
-
}
|
|
184
|
-
.flaticon-upload-1:before {
|
|
185
|
-
content: map-get($flaticon_hvc-map, 'upload-1');
|
|
186
|
-
}
|
|
187
|
-
.flaticon-production:before {
|
|
188
|
-
content: map-get($flaticon_hvc-map, 'production');
|
|
189
|
-
}
|
|
190
|
-
.flaticon-cube:before {
|
|
191
|
-
content: map-get($flaticon_hvc-map, 'cube');
|
|
192
|
-
}
|
|
193
|
-
.flaticon-rotation:before {
|
|
194
|
-
content: map-get($flaticon_hvc-map, 'rotation');
|
|
195
|
-
}
|
|
196
|
-
.flaticon-rotation-1:before {
|
|
197
|
-
content: map-get($flaticon_hvc-map, 'rotation-1');
|
|
198
|
-
}
|
|
199
|
-
.flaticon-spinning:before {
|
|
200
|
-
content: map-get($flaticon_hvc-map, 'spinning');
|
|
201
|
-
}
|
|
202
|
-
.flaticon-spinning-1:before {
|
|
203
|
-
content: map-get($flaticon_hvc-map, 'spinning-1');
|
|
204
|
-
}
|
|
205
|
-
.flaticon-ready-stock:before {
|
|
206
|
-
content: map-get($flaticon_hvc-map, 'ready-stock');
|
|
207
|
-
}
|
|
208
|
-
.flaticon-ready-stock-1:before {
|
|
209
|
-
content: map-get($flaticon_hvc-map, 'ready-stock-1');
|
|
210
|
-
}
|
|
211
|
-
.flaticon-visible:before {
|
|
212
|
-
content: map-get($flaticon_hvc-map, 'visible');
|
|
213
|
-
}
|
|
214
|
-
.flaticon-printing:before {
|
|
215
|
-
content: map-get($flaticon_hvc-map, 'printing');
|
|
216
|
-
}
|
|
217
|
-
.flaticon-like:before {
|
|
218
|
-
content: map-get($flaticon_hvc-map, 'like');
|
|
219
|
-
}
|
|
220
|
-
.flaticon-thumb-up:before {
|
|
221
|
-
content: map-get($flaticon_hvc-map, 'thumb-up');
|
|
222
|
-
}
|
|
223
|
-
.flaticon-thumbs-up:before {
|
|
224
|
-
content: map-get($flaticon_hvc-map, 'thumbs-up');
|
|
225
|
-
}
|
|
226
|
-
.flaticon-thumb-down:before {
|
|
227
|
-
content: map-get($flaticon_hvc-map, 'thumb-down');
|
|
228
|
-
}
|
|
229
|
-
.flaticon-dislike:before {
|
|
230
|
-
content: map-get($flaticon_hvc-map, 'dislike');
|
|
231
|
-
}
|
|
232
|
-
.flaticon-thumb-down-1:before {
|
|
233
|
-
content: map-get($flaticon_hvc-map, 'thumb-down-1');
|
|
234
|
-
}
|
|
235
|
-
.flaticon-pointing-right:before {
|
|
236
|
-
content: map-get($flaticon_hvc-map, 'pointing-right');
|
|
237
|
-
}
|
|
238
|
-
.flaticon-point:before {
|
|
239
|
-
content: map-get($flaticon_hvc-map, 'point');
|
|
240
|
-
}
|
|
241
|
-
.flaticon-history:before {
|
|
242
|
-
content: map-get($flaticon_hvc-map, 'history');
|
|
243
|
-
}
|
|
1
|
+
$flaticon_hvc-font: 'flaticon_hvc';
|
|
2
|
+
|
|
3
|
+
@font-face {
|
|
4
|
+
font-family: $flaticon_hvc-font;
|
|
5
|
+
src:
|
|
6
|
+
url('./flaticon_hvc.woff2?09127989b5c99a4f290cd7bb7c4bad12') format('woff2'),
|
|
7
|
+
url('./flaticon_hvc.woff?09127989b5c99a4f290cd7bb7c4bad12') format('woff'),
|
|
8
|
+
url('./flaticon_hvc.eot?09127989b5c99a4f290cd7bb7c4bad12#iefix') format('embedded-opentype'),
|
|
9
|
+
url('./flaticon_hvc.ttf?09127989b5c99a4f290cd7bb7c4bad12') format('truetype'),
|
|
10
|
+
url('./flaticon_hvc.svg?09127989b5c99a4f290cd7bb7c4bad12#flaticon_hvc') format('svg');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
i[class^='flaticon-']:before,
|
|
14
|
+
i[class*=' flaticon-']:before {
|
|
15
|
+
font-family: flaticon_hvc !important;
|
|
16
|
+
font-style: normal;
|
|
17
|
+
font-weight: normal !important;
|
|
18
|
+
font-variant: normal;
|
|
19
|
+
text-transform: none;
|
|
20
|
+
line-height: 1;
|
|
21
|
+
-webkit-font-smoothing: antialiased;
|
|
22
|
+
-moz-osx-font-smoothing: grayscale;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
$flaticon_hvc-map: (
|
|
26
|
+
'setting': '\f101',
|
|
27
|
+
'refresh': '\f102',
|
|
28
|
+
'setting-1': '\f103',
|
|
29
|
+
'check': '\f104',
|
|
30
|
+
'bank': '\f105',
|
|
31
|
+
'user': '\f106',
|
|
32
|
+
'user-1': '\f107',
|
|
33
|
+
'info-sign': '\f108',
|
|
34
|
+
'clipboard': '\f109',
|
|
35
|
+
'right-arrow': '\f10a',
|
|
36
|
+
'home': '\f10b',
|
|
37
|
+
'search': '\f10c',
|
|
38
|
+
'eye': '\f10d',
|
|
39
|
+
'edit': '\f10e',
|
|
40
|
+
'delete': '\f10f',
|
|
41
|
+
'add-1': '\f110',
|
|
42
|
+
'plus-1': '\f111',
|
|
43
|
+
'compose': '\f112',
|
|
44
|
+
'trash': '\f113',
|
|
45
|
+
'download': '\f114',
|
|
46
|
+
'downloading': '\f115',
|
|
47
|
+
'upload': '\f116',
|
|
48
|
+
'right-arrow-1': '\f117',
|
|
49
|
+
'user-2': '\f118',
|
|
50
|
+
'man-in-suit-and-tie': '\f119',
|
|
51
|
+
'cancel': '\f11a',
|
|
52
|
+
'check-mark': '\f11b',
|
|
53
|
+
'bars': '\f11c',
|
|
54
|
+
'copy': '\f11d',
|
|
55
|
+
'printer': '\f11e',
|
|
56
|
+
'file': '\f11f',
|
|
57
|
+
'file-1': '\f120',
|
|
58
|
+
'file-2': '\f121',
|
|
59
|
+
'eye-1': '\f122',
|
|
60
|
+
'upload-1': '\f123',
|
|
61
|
+
'production': '\f124',
|
|
62
|
+
'cube': '\f125',
|
|
63
|
+
'rotation': '\f126',
|
|
64
|
+
'rotation-1': '\f127',
|
|
65
|
+
'spinning': '\f128',
|
|
66
|
+
'spinning-1': '\f129',
|
|
67
|
+
'ready-stock': '\f12a',
|
|
68
|
+
'ready-stock-1': '\f12b',
|
|
69
|
+
'visible': '\f12c',
|
|
70
|
+
'printing': '\f12d',
|
|
71
|
+
'like': '\f12e',
|
|
72
|
+
'thumb-up': '\f12f',
|
|
73
|
+
'thumbs-up': '\f130',
|
|
74
|
+
'thumb-down': '\f131',
|
|
75
|
+
'dislike': '\f132',
|
|
76
|
+
'thumb-down-1': '\f133',
|
|
77
|
+
'pointing-right': '\f134',
|
|
78
|
+
'point': '\f135',
|
|
79
|
+
'history': '\f136',
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
.flaticon-setting:before {
|
|
83
|
+
content: map-get($flaticon_hvc-map, 'setting');
|
|
84
|
+
}
|
|
85
|
+
.flaticon-refresh:before {
|
|
86
|
+
content: map-get($flaticon_hvc-map, 'refresh');
|
|
87
|
+
}
|
|
88
|
+
.flaticon-setting-1:before {
|
|
89
|
+
content: map-get($flaticon_hvc-map, 'setting-1');
|
|
90
|
+
}
|
|
91
|
+
.flaticon-check:before {
|
|
92
|
+
content: map-get($flaticon_hvc-map, 'check');
|
|
93
|
+
}
|
|
94
|
+
.flaticon-bank:before {
|
|
95
|
+
content: map-get($flaticon_hvc-map, 'bank');
|
|
96
|
+
}
|
|
97
|
+
.flaticon-user:before {
|
|
98
|
+
content: map-get($flaticon_hvc-map, 'user');
|
|
99
|
+
}
|
|
100
|
+
.flaticon-user-1:before {
|
|
101
|
+
content: map-get($flaticon_hvc-map, 'user-1');
|
|
102
|
+
}
|
|
103
|
+
.flaticon-info-sign:before {
|
|
104
|
+
content: map-get($flaticon_hvc-map, 'info-sign');
|
|
105
|
+
}
|
|
106
|
+
.flaticon-clipboard:before {
|
|
107
|
+
content: map-get($flaticon_hvc-map, 'clipboard');
|
|
108
|
+
}
|
|
109
|
+
.flaticon-right-arrow:before {
|
|
110
|
+
content: map-get($flaticon_hvc-map, 'right-arrow');
|
|
111
|
+
}
|
|
112
|
+
.flaticon-home:before {
|
|
113
|
+
content: map-get($flaticon_hvc-map, 'home');
|
|
114
|
+
}
|
|
115
|
+
.flaticon-search:before {
|
|
116
|
+
content: map-get($flaticon_hvc-map, 'search');
|
|
117
|
+
}
|
|
118
|
+
.flaticon-eye:before {
|
|
119
|
+
content: map-get($flaticon_hvc-map, 'eye');
|
|
120
|
+
}
|
|
121
|
+
.flaticon-edit:before {
|
|
122
|
+
content: map-get($flaticon_hvc-map, 'edit');
|
|
123
|
+
}
|
|
124
|
+
.flaticon-delete:before {
|
|
125
|
+
content: map-get($flaticon_hvc-map, 'delete');
|
|
126
|
+
}
|
|
127
|
+
.flaticon-add-1:before {
|
|
128
|
+
content: map-get($flaticon_hvc-map, 'add-1');
|
|
129
|
+
}
|
|
130
|
+
.flaticon-plus-1:before {
|
|
131
|
+
content: map-get($flaticon_hvc-map, 'plus-1');
|
|
132
|
+
}
|
|
133
|
+
.flaticon-compose:before {
|
|
134
|
+
content: map-get($flaticon_hvc-map, 'compose');
|
|
135
|
+
}
|
|
136
|
+
.flaticon-trash:before {
|
|
137
|
+
content: map-get($flaticon_hvc-map, 'trash');
|
|
138
|
+
}
|
|
139
|
+
.flaticon-download:before {
|
|
140
|
+
content: map-get($flaticon_hvc-map, 'download');
|
|
141
|
+
}
|
|
142
|
+
.flaticon-downloading:before {
|
|
143
|
+
content: map-get($flaticon_hvc-map, 'downloading');
|
|
144
|
+
}
|
|
145
|
+
.flaticon-upload:before {
|
|
146
|
+
content: map-get($flaticon_hvc-map, 'upload');
|
|
147
|
+
}
|
|
148
|
+
.flaticon-right-arrow-1:before {
|
|
149
|
+
content: map-get($flaticon_hvc-map, 'right-arrow-1');
|
|
150
|
+
}
|
|
151
|
+
.flaticon-user-2:before {
|
|
152
|
+
content: map-get($flaticon_hvc-map, 'user-2');
|
|
153
|
+
}
|
|
154
|
+
.flaticon-man-in-suit-and-tie:before {
|
|
155
|
+
content: map-get($flaticon_hvc-map, 'man-in-suit-and-tie');
|
|
156
|
+
}
|
|
157
|
+
.flaticon-cancel:before {
|
|
158
|
+
content: map-get($flaticon_hvc-map, 'cancel');
|
|
159
|
+
}
|
|
160
|
+
.flaticon-check-mark:before {
|
|
161
|
+
content: map-get($flaticon_hvc-map, 'check-mark');
|
|
162
|
+
}
|
|
163
|
+
.flaticon-bars:before {
|
|
164
|
+
content: map-get($flaticon_hvc-map, 'bars');
|
|
165
|
+
}
|
|
166
|
+
.flaticon-copy:before {
|
|
167
|
+
content: map-get($flaticon_hvc-map, 'copy');
|
|
168
|
+
}
|
|
169
|
+
.flaticon-printer:before {
|
|
170
|
+
content: map-get($flaticon_hvc-map, 'printer');
|
|
171
|
+
}
|
|
172
|
+
.flaticon-file:before {
|
|
173
|
+
content: map-get($flaticon_hvc-map, 'file');
|
|
174
|
+
}
|
|
175
|
+
.flaticon-file-1:before {
|
|
176
|
+
content: map-get($flaticon_hvc-map, 'file-1');
|
|
177
|
+
}
|
|
178
|
+
.flaticon-file-2:before {
|
|
179
|
+
content: map-get($flaticon_hvc-map, 'file-2');
|
|
180
|
+
}
|
|
181
|
+
.flaticon-eye-1:before {
|
|
182
|
+
content: map-get($flaticon_hvc-map, 'eye-1');
|
|
183
|
+
}
|
|
184
|
+
.flaticon-upload-1:before {
|
|
185
|
+
content: map-get($flaticon_hvc-map, 'upload-1');
|
|
186
|
+
}
|
|
187
|
+
.flaticon-production:before {
|
|
188
|
+
content: map-get($flaticon_hvc-map, 'production');
|
|
189
|
+
}
|
|
190
|
+
.flaticon-cube:before {
|
|
191
|
+
content: map-get($flaticon_hvc-map, 'cube');
|
|
192
|
+
}
|
|
193
|
+
.flaticon-rotation:before {
|
|
194
|
+
content: map-get($flaticon_hvc-map, 'rotation');
|
|
195
|
+
}
|
|
196
|
+
.flaticon-rotation-1:before {
|
|
197
|
+
content: map-get($flaticon_hvc-map, 'rotation-1');
|
|
198
|
+
}
|
|
199
|
+
.flaticon-spinning:before {
|
|
200
|
+
content: map-get($flaticon_hvc-map, 'spinning');
|
|
201
|
+
}
|
|
202
|
+
.flaticon-spinning-1:before {
|
|
203
|
+
content: map-get($flaticon_hvc-map, 'spinning-1');
|
|
204
|
+
}
|
|
205
|
+
.flaticon-ready-stock:before {
|
|
206
|
+
content: map-get($flaticon_hvc-map, 'ready-stock');
|
|
207
|
+
}
|
|
208
|
+
.flaticon-ready-stock-1:before {
|
|
209
|
+
content: map-get($flaticon_hvc-map, 'ready-stock-1');
|
|
210
|
+
}
|
|
211
|
+
.flaticon-visible:before {
|
|
212
|
+
content: map-get($flaticon_hvc-map, 'visible');
|
|
213
|
+
}
|
|
214
|
+
.flaticon-printing:before {
|
|
215
|
+
content: map-get($flaticon_hvc-map, 'printing');
|
|
216
|
+
}
|
|
217
|
+
.flaticon-like:before {
|
|
218
|
+
content: map-get($flaticon_hvc-map, 'like');
|
|
219
|
+
}
|
|
220
|
+
.flaticon-thumb-up:before {
|
|
221
|
+
content: map-get($flaticon_hvc-map, 'thumb-up');
|
|
222
|
+
}
|
|
223
|
+
.flaticon-thumbs-up:before {
|
|
224
|
+
content: map-get($flaticon_hvc-map, 'thumbs-up');
|
|
225
|
+
}
|
|
226
|
+
.flaticon-thumb-down:before {
|
|
227
|
+
content: map-get($flaticon_hvc-map, 'thumb-down');
|
|
228
|
+
}
|
|
229
|
+
.flaticon-dislike:before {
|
|
230
|
+
content: map-get($flaticon_hvc-map, 'dislike');
|
|
231
|
+
}
|
|
232
|
+
.flaticon-thumb-down-1:before {
|
|
233
|
+
content: map-get($flaticon_hvc-map, 'thumb-down-1');
|
|
234
|
+
}
|
|
235
|
+
.flaticon-pointing-right:before {
|
|
236
|
+
content: map-get($flaticon_hvc-map, 'pointing-right');
|
|
237
|
+
}
|
|
238
|
+
.flaticon-point:before {
|
|
239
|
+
content: map-get($flaticon_hvc-map, 'point');
|
|
240
|
+
}
|
|
241
|
+
.flaticon-history:before {
|
|
242
|
+
content: map-get($flaticon_hvc-map, 'history');
|
|
243
|
+
}
|
|
@@ -23,17 +23,134 @@ const MultiFileWithPreview = ({ props, variant, }) => {
|
|
|
23
23
|
const [currentFileIndex, setCurrentFileIndex] = useState(0);
|
|
24
24
|
// Determine if this is single or multiple file mode
|
|
25
25
|
const isSingleFileMode = props.item.maxLength === 1;
|
|
26
|
+
// useEffect(() => {
|
|
27
|
+
// if (watched === null || watched === undefined) {
|
|
28
|
+
// if (inputRef.current) inputRef.current.value = '';
|
|
29
|
+
// }
|
|
30
|
+
// // Normalize backend-provided file(s) ONLY if they look like URLs
|
|
31
|
+
// const looksLikeUrl = (s: string) => /^(https?:|blob:|data:|\/)/i.test(s);
|
|
32
|
+
// if (typeof watched === 'string' && watched.trim() !== '') {
|
|
33
|
+
// const str = watched.replace(/\\/g, '/').trim();
|
|
34
|
+
// if (looksLikeUrl(str)) {
|
|
35
|
+
// setSelectedFiles([str]);
|
|
36
|
+
// }
|
|
37
|
+
// } else if (Array.isArray(watched) && typeof watched[0] === 'string') {
|
|
38
|
+
// const normalized = watched
|
|
39
|
+
// .map((f) => (f || '').toString().replace(/\\/g, '/').trim())
|
|
40
|
+
// .filter((f) => looksLikeUrl(f));
|
|
41
|
+
// if (normalized.length) {
|
|
42
|
+
// setSelectedFiles(normalized);
|
|
43
|
+
// }
|
|
44
|
+
// }
|
|
45
|
+
// }, [watched]);
|
|
26
46
|
useEffect(() => {
|
|
27
47
|
if (watched === null || watched === undefined) {
|
|
28
48
|
if (inputRef.current)
|
|
29
49
|
inputRef.current.value = '';
|
|
30
50
|
}
|
|
31
|
-
|
|
32
|
-
if (
|
|
33
|
-
|
|
51
|
+
const looksLikeUrl = (s) => /^(https?:|blob:|data:|\/)/i.test(s);
|
|
52
|
+
if (typeof watched === 'string' && watched.trim() !== '') {
|
|
53
|
+
const str = watched.replace(/\\/g, '/').trim();
|
|
54
|
+
if (looksLikeUrl(str)) {
|
|
55
|
+
setSelectedFiles([str]);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
else if (Array.isArray(watched)) {
|
|
59
|
+
if (typeof watched[0] === 'object') {
|
|
60
|
+
// ✅ extract URLs from object arrays (image/url/path keys)
|
|
61
|
+
const urls = watched
|
|
62
|
+
.map((item) => {
|
|
63
|
+
const possibleKeys = ['image', 'url', 'path', 'filePath'];
|
|
64
|
+
const key = possibleKeys.find((k) => item[k]);
|
|
65
|
+
return key ? item[key]?.replace(/\\/g, '/').trim() : undefined;
|
|
66
|
+
})
|
|
67
|
+
.filter((f) => f && looksLikeUrl(f));
|
|
68
|
+
if (urls.length) {
|
|
69
|
+
setSelectedFiles(urls);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
else if (typeof watched[0] === 'string') {
|
|
73
|
+
const normalized = watched
|
|
74
|
+
.map((f) => (f || '').toString().replace(/\\/g, '/').trim())
|
|
75
|
+
.filter((f) => looksLikeUrl(f));
|
|
76
|
+
if (normalized.length) {
|
|
77
|
+
setSelectedFiles(normalized);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
34
80
|
}
|
|
35
81
|
}, [watched]);
|
|
36
82
|
const isError = !!props.errors?.[props.item.name];
|
|
83
|
+
// const handleFileChange = (event: React.ChangeEvent<HTMLInputElement>) => {
|
|
84
|
+
// const files = event.target.files;
|
|
85
|
+
// if (!files) return;
|
|
86
|
+
// const fileArray = Array.from(files);
|
|
87
|
+
// const allowedExtensions: Record<string, string[]> = {
|
|
88
|
+
// excel: ['xls', 'xlsx'],
|
|
89
|
+
// pdf: ['pdf'],
|
|
90
|
+
// image: ['jpg', 'jpeg', 'png'],
|
|
91
|
+
// all: ['pdf', 'jpg', 'jpeg', 'png', 'xls', 'xlsx', 'doc', 'docx', 'zip'],
|
|
92
|
+
// zip: ['zip'],
|
|
93
|
+
// document: ['doc', 'docx', 'pdf'],
|
|
94
|
+
// };
|
|
95
|
+
// const validExtensions =
|
|
96
|
+
// props.item.fileType === 'excel'
|
|
97
|
+
// ? allowedExtensions.excel
|
|
98
|
+
// : props.item.fileType === 'pdf'
|
|
99
|
+
// ? allowedExtensions.pdf
|
|
100
|
+
// : props.item.fileType === 'image'
|
|
101
|
+
// ? allowedExtensions.image
|
|
102
|
+
// : allowedExtensions.all;
|
|
103
|
+
// const invalidFile = fileArray.find((file) => {
|
|
104
|
+
// const ext = file.name.split('.').pop()?.toLowerCase();
|
|
105
|
+
// return !ext || !validExtensions.includes(ext);
|
|
106
|
+
// });
|
|
107
|
+
// if (invalidFile) {
|
|
108
|
+
// props.item?.handleFileError?.(
|
|
109
|
+
// `Please upload ${validExtensions.join(', ')} files only`
|
|
110
|
+
// );
|
|
111
|
+
// event.target.value = '';
|
|
112
|
+
// props.setValue(props.item.name, null);
|
|
113
|
+
// props.setValue(props.item.name + 'File', []);
|
|
114
|
+
// return;
|
|
115
|
+
// }
|
|
116
|
+
// const largeFile = fileArray.find((file) => file.size > 20000000);
|
|
117
|
+
// if (largeFile) {
|
|
118
|
+
// props.item?.handleFileError?.('File size should be less than 20MB');
|
|
119
|
+
// event.target.value = '';
|
|
120
|
+
// props.setValue(props.item.name, null);
|
|
121
|
+
// props.setValue(props.item.name + 'File', []);
|
|
122
|
+
// return;
|
|
123
|
+
// }
|
|
124
|
+
// // Handle single vs multiple file mode
|
|
125
|
+
// let combinedFiles: (File | string)[];
|
|
126
|
+
// const shouldReplaceExisting =
|
|
127
|
+
// isSingleFileMode || (selectedFiles.length === 1 && typeof selectedFiles[0] === 'string');
|
|
128
|
+
// if (shouldReplaceExisting) {
|
|
129
|
+
// // Replace the existing (string URL or single file) with the new selection
|
|
130
|
+
// combinedFiles = fileArray;
|
|
131
|
+
// } else {
|
|
132
|
+
// // Append new files to existing list
|
|
133
|
+
// combinedFiles = [...selectedFiles, ...fileArray];
|
|
134
|
+
// // Check if maxLength is exceeded
|
|
135
|
+
// if (props.item.maxLength && combinedFiles.length > props.item.maxLength) {
|
|
136
|
+
// props.item?.handleFileError?.(
|
|
137
|
+
// `You can only upload up to ${props.item.maxLength} files`
|
|
138
|
+
// );
|
|
139
|
+
// event.target.value = '';
|
|
140
|
+
// return;
|
|
141
|
+
// }
|
|
142
|
+
// }
|
|
143
|
+
// const combinedFileNames = combinedFiles
|
|
144
|
+
// .map((f) => (f instanceof File ? f.name : f.split('/').pop()))
|
|
145
|
+
// .join(',');
|
|
146
|
+
// props.setValue(props.item.name, combinedFileNames);
|
|
147
|
+
// props.setValue(props.item.name + 'File', combinedFiles);
|
|
148
|
+
// setSelectedFiles(combinedFiles);
|
|
149
|
+
// // Move preview to newly selected file(s)
|
|
150
|
+
// const newIndex = shouldReplaceExisting ? 0 : Math.max(0, combinedFiles.length - fileArray.length);
|
|
151
|
+
// setCurrentFileIndex(newIndex);
|
|
152
|
+
// props.item.onChangeSetFileFn?.(combinedFiles as File[]);
|
|
153
|
+
// };
|
|
37
154
|
const handleFileChange = (event) => {
|
|
38
155
|
const files = event.target.files;
|
|
39
156
|
if (!files)
|
|
@@ -70,16 +187,15 @@ const MultiFileWithPreview = ({ props, variant, }) => {
|
|
|
70
187
|
props.setValue(props.item.name + 'File', []);
|
|
71
188
|
return;
|
|
72
189
|
}
|
|
73
|
-
|
|
74
|
-
let combinedFiles;
|
|
190
|
+
let combinedFiles = [];
|
|
75
191
|
if (isSingleFileMode) {
|
|
76
|
-
//
|
|
192
|
+
// only 1 file allowed → replace
|
|
77
193
|
combinedFiles = fileArray;
|
|
78
194
|
}
|
|
79
195
|
else {
|
|
80
|
-
//
|
|
196
|
+
// append to existing
|
|
81
197
|
combinedFiles = [...selectedFiles, ...fileArray];
|
|
82
|
-
//
|
|
198
|
+
// limit by maxLength
|
|
83
199
|
if (props.item.maxLength && combinedFiles.length > props.item.maxLength) {
|
|
84
200
|
props.item?.handleFileError?.(`You can only upload up to ${props.item.maxLength} files`);
|
|
85
201
|
event.target.value = '';
|
|
@@ -92,6 +208,7 @@ const MultiFileWithPreview = ({ props, variant, }) => {
|
|
|
92
208
|
props.setValue(props.item.name, combinedFileNames);
|
|
93
209
|
props.setValue(props.item.name + 'File', combinedFiles);
|
|
94
210
|
setSelectedFiles(combinedFiles);
|
|
211
|
+
setCurrentFileIndex(combinedFiles.length - fileArray.length); // move preview to new
|
|
95
212
|
props.item.onChangeSetFileFn?.(combinedFiles);
|
|
96
213
|
};
|
|
97
214
|
const handlePreviewClick = () => {
|
|
@@ -149,7 +266,10 @@ const MultiFileWithPreview = ({ props, variant, }) => {
|
|
|
149
266
|
const name = typeof file === 'string' ? file : file.name;
|
|
150
267
|
return /\.(doc|docx)$/.test(name.toLowerCase());
|
|
151
268
|
};
|
|
152
|
-
const getObjectUrl = (file) =>
|
|
269
|
+
const getObjectUrl = (file) => {
|
|
270
|
+
console.log('file', file);
|
|
271
|
+
return typeof file === 'string' ? file : URL.createObjectURL(file);
|
|
272
|
+
};
|
|
153
273
|
return (jsxs(Fragment, { children: [jsxs(Box, { paddingLeft: "4px", sx: { ...props.item.sx, position: 'relative' }, children: [props.item?.label && (jsx(Box, { sx: { fontSize: '10px' }, children: renderLabel(variant, props, true) })), jsxs(Box, { display: "flex", alignItems: "center", gap: 1, children: [jsxs(Button, { variant: "outlined", component: "label", startIcon: jsx(UploadFileIcon, {}), sx: { flex: 1, textTransform: 'none' }, color: isError ? 'error' : 'primary', children: [selectedFiles.length > 0
|
|
154
274
|
? isSingleFileMode
|
|
155
275
|
? '1 file selected'
|
|
@@ -1,79 +1,79 @@
|
|
|
1
1
|
import { styled } from '@mui/material/styles';
|
|
2
2
|
import { Button, Typography, Grid, Dialog, DialogTitle } from '@mui/material';
|
|
3
3
|
|
|
4
|
-
styled(Button) `
|
|
5
|
-
border: 0;
|
|
6
|
-
color: #fff;
|
|
7
|
-
position: absolute;
|
|
8
|
-
text-align: center;
|
|
9
|
-
padding: 5px 12px;
|
|
10
|
-
font-size: 13px;
|
|
11
|
-
height: 30px;
|
|
12
|
-
right: -38px;
|
|
13
|
-
text-transform: none;
|
|
14
|
-
z-index: 2;
|
|
15
|
-
border-radius: 10px 0px 0px 10px;
|
|
16
|
-
&:hover {
|
|
17
|
-
right: 0px;
|
|
18
|
-
}
|
|
4
|
+
styled(Button) `
|
|
5
|
+
border: 0;
|
|
6
|
+
color: #fff;
|
|
7
|
+
position: absolute;
|
|
8
|
+
text-align: center;
|
|
9
|
+
padding: 5px 12px;
|
|
10
|
+
font-size: 13px;
|
|
11
|
+
height: 30px;
|
|
12
|
+
right: -38px;
|
|
13
|
+
text-transform: none;
|
|
14
|
+
z-index: 2;
|
|
15
|
+
border-radius: 10px 0px 0px 10px;
|
|
16
|
+
&:hover {
|
|
17
|
+
right: 0px;
|
|
18
|
+
}
|
|
19
19
|
`;
|
|
20
|
-
const SubmitButton = styled(Button) `
|
|
21
|
-
text-transform: none;
|
|
20
|
+
const SubmitButton = styled(Button) `
|
|
21
|
+
text-transform: none;
|
|
22
22
|
`;
|
|
23
|
-
const CancelButton = styled(Button) `
|
|
24
|
-
text-transform: none;
|
|
25
|
-
color: #000;
|
|
26
|
-
background: #ececee;
|
|
27
|
-
&:hover {
|
|
28
|
-
background: #0009;
|
|
29
|
-
color: #fff;
|
|
30
|
-
}
|
|
23
|
+
const CancelButton = styled(Button) `
|
|
24
|
+
text-transform: none;
|
|
25
|
+
color: #000;
|
|
26
|
+
background: #ececee;
|
|
27
|
+
&:hover {
|
|
28
|
+
background: #0009;
|
|
29
|
+
color: #fff;
|
|
30
|
+
}
|
|
31
31
|
`;
|
|
32
|
-
const SaveAsDraftButton = styled(Button) `
|
|
33
|
-
text-transform: none;
|
|
34
|
-
font-size: 12px;
|
|
35
|
-
background: orange;
|
|
36
|
-
&:hover {
|
|
37
|
-
background: orange;
|
|
38
|
-
}
|
|
32
|
+
const SaveAsDraftButton = styled(Button) `
|
|
33
|
+
text-transform: none;
|
|
34
|
+
font-size: 12px;
|
|
35
|
+
background: orange;
|
|
36
|
+
&:hover {
|
|
37
|
+
background: orange;
|
|
38
|
+
}
|
|
39
39
|
`;
|
|
40
40
|
styled(Typography) ``;
|
|
41
41
|
styled(Grid, {
|
|
42
42
|
shouldForwardProp: (prop) => prop !== 'isActive' && prop !== 'noOfColumn',
|
|
43
|
-
}) `
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
margin-bottom: 8px;
|
|
46
|
-
min-width: 10%;
|
|
47
|
-
padding-left: 0px;
|
|
48
|
-
z-index: 2;
|
|
49
|
-
padding-right: 0px;
|
|
50
|
-
border: 1px solid #0003;
|
|
51
|
-
font-size: 12px;
|
|
52
|
-
padding: 6px;
|
|
53
|
-
text-align: center;
|
|
54
|
-
&:hover {
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
}
|
|
43
|
+
}) `
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
margin-bottom: 8px;
|
|
46
|
+
min-width: 10%;
|
|
47
|
+
padding-left: 0px;
|
|
48
|
+
z-index: 2;
|
|
49
|
+
padding-right: 0px;
|
|
50
|
+
border: 1px solid #0003;
|
|
51
|
+
font-size: 12px;
|
|
52
|
+
padding: 6px;
|
|
53
|
+
text-align: center;
|
|
54
|
+
&:hover {
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
}
|
|
57
57
|
`;
|
|
58
|
-
const DialogContainer = styled(Dialog) `
|
|
59
|
-
position: fixed;
|
|
60
|
-
top: -16px;
|
|
61
|
-
left: 0;
|
|
62
|
-
right: 0;
|
|
63
|
-
bottom: auto;
|
|
64
|
-
& .css-tlc64q-MuiPaper-root-MuiDialog-paper,
|
|
65
|
-
.css-mbdu2s {
|
|
66
|
-
max-width: 900px;
|
|
67
|
-
}
|
|
58
|
+
const DialogContainer = styled(Dialog) `
|
|
59
|
+
position: fixed;
|
|
60
|
+
top: -16px;
|
|
61
|
+
left: 0;
|
|
62
|
+
right: 0;
|
|
63
|
+
bottom: auto;
|
|
64
|
+
& .css-tlc64q-MuiPaper-root-MuiDialog-paper,
|
|
65
|
+
.css-mbdu2s {
|
|
66
|
+
max-width: 900px;
|
|
67
|
+
}
|
|
68
68
|
`;
|
|
69
|
-
const DialogTitleWrapper = styled(DialogTitle) `
|
|
70
|
-
padding: 8px 16px;
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: center;
|
|
73
|
-
justify-content: space-between;
|
|
74
|
-
font-size: 14px;
|
|
75
|
-
cursor: move;
|
|
76
|
-
border-bottom: 1px solid rgb(229 231 235 / 1);
|
|
69
|
+
const DialogTitleWrapper = styled(DialogTitle) `
|
|
70
|
+
padding: 8px 16px;
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
justify-content: space-between;
|
|
74
|
+
font-size: 14px;
|
|
75
|
+
cursor: move;
|
|
76
|
+
border-bottom: 1px solid rgb(229 231 235 / 1);
|
|
77
77
|
`;
|
|
78
78
|
|
|
79
79
|
export { CancelButton, DialogContainer, DialogTitleWrapper, SaveAsDraftButton, SubmitButton };
|