astrum-ui 0.1.1 → 0.1.3
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/dist/Avatar/Avatar.css +4 -3
- package/dist/Checkbox/Checkbox.css +0 -17
- package/dist/DatePicker/DatePicker.css +326 -0
- package/dist/FileUpload/FileUpload.css +69 -37
- package/dist/Input/Input.css +6 -17
- package/dist/InputCode/InputCode.css +4 -8
- package/dist/Select/Select.css +69 -58
- package/dist/index.css +295 -10
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +23 -4
- package/dist/index.d.ts +23 -4
- package/dist/index.js +596 -99
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +600 -104
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -3
package/dist/Avatar/Avatar.css
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
--astrum-avatar-icon: #ababab;
|
|
4
4
|
--astrum-avatar-overlay: rgba(0, 0, 0, 0.4);
|
|
5
5
|
--astrum-avatar-edit-icon: #ffffff;
|
|
6
|
+
--astrum-avatar-remove-icon: #EA3B3D;
|
|
6
7
|
|
|
7
8
|
position: relative;
|
|
8
9
|
cursor: pointer;
|
|
@@ -126,9 +127,9 @@
|
|
|
126
127
|
position: absolute;
|
|
127
128
|
top: -2px;
|
|
128
129
|
right: -2px;
|
|
129
|
-
width:
|
|
130
|
-
height:
|
|
131
|
-
background: var(--astrum-avatar-
|
|
130
|
+
width: 16px;
|
|
131
|
+
height: 16px;
|
|
132
|
+
background: var(--astrum-avatar-remove-icon);
|
|
132
133
|
border-radius: 50%;
|
|
133
134
|
border: none;
|
|
134
135
|
display: flex;
|
|
@@ -86,23 +86,6 @@
|
|
|
86
86
|
background-color: var(--astrum-primary-white);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
.astrum-checkbox--s .astrum-checkbox__box {
|
|
90
|
-
width: 16px;
|
|
91
|
-
min-width: 16px;
|
|
92
|
-
height: 16px;
|
|
93
|
-
padding: 4px;
|
|
94
|
-
box-sizing: border-box;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.astrum-checkbox--s .astrum-checkbox__icon {
|
|
98
|
-
width: 10px;
|
|
99
|
-
height: 10px;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.astrum-checkbox--s .astrum-checkbox__icon svg {
|
|
103
|
-
transform: scale(0.85);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
89
|
.astrum-checkbox--m .astrum-checkbox__box {
|
|
107
90
|
width: 20px;
|
|
108
91
|
min-width: 20px;
|
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
.astrum-datepicker {
|
|
2
|
+
--astrum-datepicker-primary: #2653F2;
|
|
3
|
+
--astrum-datepicker-border: #D5D5D5;
|
|
4
|
+
--astrum-datepicker-border-hover: #ABABAB;
|
|
5
|
+
--astrum-datepicker-placeholder: #ABABAB;
|
|
6
|
+
--astrum-datepicker-text: #575757;
|
|
7
|
+
--astrum-datepicker-error: #EA3B3D;
|
|
8
|
+
--astrum-datepicker-bg: #FFFFFF;
|
|
9
|
+
--astrum-datepicker-bg-disabled: #F4F4F4;
|
|
10
|
+
--astrum-datepicker-gray-5: #F4F4F4;
|
|
11
|
+
--astrum-datepicker-gray-40: #ABABAB;
|
|
12
|
+
|
|
13
|
+
position: relative;
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: 0;
|
|
17
|
+
min-width: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
.astrum-datepicker__wrap {
|
|
22
|
+
position: relative;
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
background: var(--astrum-datepicker-bg);
|
|
26
|
+
border: 1px solid var(--astrum-datepicker-border);
|
|
27
|
+
border-radius: 8px;
|
|
28
|
+
transition: border-color 0.15s;
|
|
29
|
+
flex: 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
@media (hover: hover) {
|
|
34
|
+
.astrum-datepicker__wrap:hover:not(:has(.astrum-datepicker__field:disabled)) {
|
|
35
|
+
border-color: var(--astrum-datepicker-border-hover);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.astrum-datepicker__wrap:focus-within {
|
|
40
|
+
border-color: var(--astrum-datepicker-primary);
|
|
41
|
+
box-shadow: 0 0 0 1px var(--astrum-datepicker-primary);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.astrum-datepicker__wrap:has(.astrum-datepicker__field:disabled) {
|
|
45
|
+
background-color: var(--astrum-datepicker-bg-disabled);
|
|
46
|
+
cursor: not-allowed;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.astrum-datepicker__field {
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
flex: 1;
|
|
52
|
+
min-width: 0;
|
|
53
|
+
width: 100%;
|
|
54
|
+
height: 54px;
|
|
55
|
+
padding: 16px 56px 16px 24px;
|
|
56
|
+
border: none;
|
|
57
|
+
border-radius: 8px;
|
|
58
|
+
background: transparent;
|
|
59
|
+
font-family: inherit;
|
|
60
|
+
font-weight: 400;
|
|
61
|
+
font-size: 16px;
|
|
62
|
+
line-height: 1.5;
|
|
63
|
+
color: var(--astrum-datepicker-text);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.astrum-datepicker__field::placeholder {
|
|
67
|
+
color: var(--astrum-datepicker-placeholder);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.astrum-datepicker__field:focus {
|
|
71
|
+
outline: none;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.astrum-datepicker__field:disabled {
|
|
75
|
+
opacity: 0.4;
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
.astrum-datepicker__icon {
|
|
81
|
+
position: absolute;
|
|
82
|
+
top: 50%;
|
|
83
|
+
right: 16px;
|
|
84
|
+
transform: translateY(-50%);
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
justify-content: center;
|
|
88
|
+
width: 24px;
|
|
89
|
+
height: 24px;
|
|
90
|
+
padding: 0;
|
|
91
|
+
margin: 0;
|
|
92
|
+
border: none;
|
|
93
|
+
background: transparent;
|
|
94
|
+
cursor: pointer;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.astrum-datepicker__icon:disabled {
|
|
98
|
+
cursor: not-allowed;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.astrum-datepicker__error {
|
|
102
|
+
display: block;
|
|
103
|
+
margin-top: 4px;
|
|
104
|
+
font-weight: 500;
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
line-height: 1.4;
|
|
107
|
+
color: var(--astrum-datepicker-error);
|
|
108
|
+
border-radius: 8px;
|
|
109
|
+
background: rgba(195, 63, 65, 0.1);
|
|
110
|
+
padding: 4px 8px;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.astrum-datepicker__calendar {
|
|
114
|
+
box-sizing: border-box;
|
|
115
|
+
position: absolute;
|
|
116
|
+
top: calc(100% + 4px);
|
|
117
|
+
left: 0;
|
|
118
|
+
min-width: 256px;
|
|
119
|
+
z-index: 1000;
|
|
120
|
+
background: var(--astrum-datepicker-bg);
|
|
121
|
+
border: 1px solid var(--astrum-datepicker-border);
|
|
122
|
+
border-radius: 8px;
|
|
123
|
+
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
|
|
124
|
+
padding: 16px;
|
|
125
|
+
display: flex;
|
|
126
|
+
flex-direction: column;
|
|
127
|
+
gap: 4px;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.astrum-datepicker__calendar-header {
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: space-between;
|
|
134
|
+
gap: 8px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.astrum-datepicker__calendar-nav {
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: center;
|
|
141
|
+
width: 32px;
|
|
142
|
+
height: 32px;
|
|
143
|
+
padding: 0;
|
|
144
|
+
margin: 0;
|
|
145
|
+
border: none;
|
|
146
|
+
background: transparent;
|
|
147
|
+
cursor: pointer;
|
|
148
|
+
border-radius: 4px;
|
|
149
|
+
transition: background-color 0.15s;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.astrum-datepicker__calendar-nav:hover:not(:disabled) {
|
|
153
|
+
background-color: var(--astrum-datepicker-gray-5);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.astrum-datepicker__calendar-nav:disabled {
|
|
157
|
+
cursor: not-allowed;
|
|
158
|
+
opacity: 0.4;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.astrum-datepicker__calendar-month {
|
|
162
|
+
flex: 1;
|
|
163
|
+
text-align: center;
|
|
164
|
+
font-weight: 500;
|
|
165
|
+
font-size: 12px;
|
|
166
|
+
line-height: 1.5;
|
|
167
|
+
color: var(--astrum-datepicker-text);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.astrum-datepicker__calendar-weekdays {
|
|
171
|
+
display: grid;
|
|
172
|
+
grid-template-columns: repeat(7, 1fr);
|
|
173
|
+
gap: 0;
|
|
174
|
+
border-bottom: 1px solid var(--astrum-datepicker-border);
|
|
175
|
+
margin-bottom: 4px;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.astrum-datepicker__calendar-weekday {
|
|
179
|
+
box-sizing: border-box;
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
justify-content: center;
|
|
183
|
+
height: 28px;
|
|
184
|
+
font-weight: 500;
|
|
185
|
+
font-size: 10px;
|
|
186
|
+
line-height: 1.4;
|
|
187
|
+
color: var(--astrum-datepicker-gray-40);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.astrum-datepicker__calendar-days {
|
|
191
|
+
display: grid;
|
|
192
|
+
grid-template-columns: repeat(7, 1fr);
|
|
193
|
+
gap: 0;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.astrum-datepicker__calendar-day {
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
justify-content: center;
|
|
200
|
+
width: 100%;
|
|
201
|
+
height: 32px;
|
|
202
|
+
padding: 0;
|
|
203
|
+
margin: 0;
|
|
204
|
+
border: none;
|
|
205
|
+
background: transparent;
|
|
206
|
+
font-weight: 700;
|
|
207
|
+
font-size: 12px;
|
|
208
|
+
line-height: 1.4;
|
|
209
|
+
color: var(--astrum-datepicker-text);
|
|
210
|
+
cursor: pointer;
|
|
211
|
+
border-radius: 4px;
|
|
212
|
+
transition: background-color 0.15s, color 0.15s;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.astrum-datepicker__calendar-day:hover:not(:disabled) {
|
|
216
|
+
background-color: var(--astrum-datepicker-gray-5);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.astrum-datepicker__calendar-day--other-month {
|
|
220
|
+
opacity: 0.5;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.astrum-datepicker__calendar-day--selected {
|
|
224
|
+
background-color: var(--astrum-datepicker-primary);
|
|
225
|
+
color: #FFFFFF;
|
|
226
|
+
border-radius: 4px;
|
|
227
|
+
z-index: 1;
|
|
228
|
+
position: relative;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.astrum-datepicker__calendar-day--selected:hover:not(:disabled) {
|
|
232
|
+
background-color: #1a42d0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.astrum-datepicker__calendar-day--in-range {
|
|
236
|
+
position: relative;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.astrum-datepicker__calendar-day--in-range:before {
|
|
240
|
+
content: "";
|
|
241
|
+
position: absolute;
|
|
242
|
+
background-color: #F4F4F4;
|
|
243
|
+
left: 0;
|
|
244
|
+
top: 50%;
|
|
245
|
+
transform: translateY(-50%);
|
|
246
|
+
bottom: 0;
|
|
247
|
+
width: 100%;
|
|
248
|
+
height: calc(100% - 4px);
|
|
249
|
+
z-index: -1;
|
|
250
|
+
pointer-events: none;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.astrum-datepicker__calendar-day--range-start {
|
|
254
|
+
border-top-left-radius: 4px;
|
|
255
|
+
border-bottom-left-radius: 4px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.astrum-datepicker__calendar-day--range-end {
|
|
259
|
+
border-top-right-radius: 4px;
|
|
260
|
+
border-bottom-right-radius: 4px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
.astrum-datepicker__calendar-day:disabled {
|
|
264
|
+
cursor: not-allowed;
|
|
265
|
+
opacity: 0.4;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.astrum-datepicker__calendar-time {
|
|
269
|
+
display: flex;
|
|
270
|
+
align-items: center;
|
|
271
|
+
justify-content: space-between;
|
|
272
|
+
gap: 12px;
|
|
273
|
+
margin-top: 12px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.astrum-datepicker__calendar-time-label {
|
|
277
|
+
font-weight: 400;
|
|
278
|
+
font-size: 14px;
|
|
279
|
+
line-height: 1.5;
|
|
280
|
+
color: var(--astrum-datepicker-text);
|
|
281
|
+
white-space: nowrap;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.astrum-datepicker__calendar-time-input-wrap {
|
|
285
|
+
position: relative;
|
|
286
|
+
display: flex;
|
|
287
|
+
align-items: center;
|
|
288
|
+
max-width: 100px;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.astrum-datepicker__calendar-time-input {
|
|
292
|
+
box-sizing: border-box;
|
|
293
|
+
flex: 1;
|
|
294
|
+
min-width: 0;
|
|
295
|
+
height: 37px;
|
|
296
|
+
border: 1px solid var(--astrum-datepicker-border);
|
|
297
|
+
border-radius: 8px;
|
|
298
|
+
background: var(--astrum-datepicker-bg);
|
|
299
|
+
padding: 8px 36px 8px 12px;
|
|
300
|
+
font-family: inherit;
|
|
301
|
+
font-weight: 400;
|
|
302
|
+
font-size: 14px;
|
|
303
|
+
line-height: 1.5;
|
|
304
|
+
color: var(--astrum-datepicker-text);
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.astrum-datepicker__calendar-time-input:focus {
|
|
308
|
+
outline: none;
|
|
309
|
+
border-color: var(--astrum-datepicker-primary);
|
|
310
|
+
box-shadow: 0 0 0 1px var(--astrum-datepicker-primary);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.astrum-datepicker__calendar-time-input::placeholder {
|
|
314
|
+
color: var(--astrum-datepicker-placeholder);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
.astrum-datepicker__calendar-time-icon {
|
|
318
|
+
position: absolute;
|
|
319
|
+
top: 50%;
|
|
320
|
+
right: 12px;
|
|
321
|
+
transform: translateY(-50%);
|
|
322
|
+
display: flex;
|
|
323
|
+
align-items: center;
|
|
324
|
+
justify-content: center;
|
|
325
|
+
pointer-events: none;
|
|
326
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
.astrum-file-upload {
|
|
2
|
-
--astrum-primary: #2653f2;
|
|
3
|
-
--astrum-
|
|
4
|
-
--astrum-gray-5: #f4f4f4;
|
|
5
|
-
--astrum-gray-10: #ebebeb;
|
|
6
|
-
--astrum-gray-20: #d5d5d5;
|
|
7
|
-
--astrum-gray-40: #ababab;
|
|
8
|
-
--astrum-gray-60: #818181;
|
|
9
|
-
--astrum-gray-80: #575757;
|
|
2
|
+
--astrum-file-upload-primary: #2653f2;
|
|
3
|
+
--astrum-file-upload-white: #ffffff;
|
|
4
|
+
--astrum-file-upload-gray-5: #f4f4f4;
|
|
5
|
+
--astrum-file-upload-gray-10: #ebebeb;
|
|
6
|
+
--astrum-file-upload-gray-20: #d5d5d5;
|
|
7
|
+
--astrum-file-upload-gray-40: #ababab;
|
|
8
|
+
--astrum-file-upload-gray-60: #818181;
|
|
9
|
+
--astrum-file-upload-gray-80: #575757;
|
|
10
10
|
|
|
11
11
|
position: relative;
|
|
12
12
|
display: flex;
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
justify-content: center;
|
|
16
16
|
gap: 16px;
|
|
17
17
|
padding: 32px;
|
|
18
|
-
border: 2px dashed var(--astrum-gray-20);
|
|
18
|
+
border: 2px dashed var(--astrum-file-upload-gray-20);
|
|
19
19
|
border-radius: 8px;
|
|
20
|
-
background-color: var(--astrum-gray-5);
|
|
20
|
+
background-color: var(--astrum-file-upload-gray-5);
|
|
21
21
|
transition: border-color 0.15s, background-color 0.15s;
|
|
22
22
|
cursor: pointer;
|
|
23
23
|
}
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.astrum-file-upload--dragging {
|
|
39
|
-
border-color: var(--astrum-primary);
|
|
40
|
-
background-color: var(--astrum-gray-10);
|
|
39
|
+
border-color: var(--astrum-file-upload-primary);
|
|
40
|
+
background-color: var(--astrum-file-upload-gray-10);
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
.astrum-file-upload--disabled {
|
|
@@ -55,24 +55,24 @@
|
|
|
55
55
|
display: flex;
|
|
56
56
|
align-items: center;
|
|
57
57
|
justify-content: center;
|
|
58
|
-
color: var(--astrum-gray-40);
|
|
58
|
+
color: var(--astrum-file-upload-gray-40);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
.astrum-file-upload__label {
|
|
62
|
-
font-family: "Involve", sans-serif;
|
|
63
62
|
font-size: 16px;
|
|
64
63
|
font-weight: 700;
|
|
65
64
|
line-height: 1.3;
|
|
66
|
-
|
|
65
|
+
letter-spacing: 0;
|
|
66
|
+
color: var(--astrum-file-upload-gray-80);
|
|
67
67
|
text-align: center;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
.astrum-file-upload__description {
|
|
71
|
-
font-family: "Involve", sans-serif;
|
|
72
71
|
font-size: 12px;
|
|
73
72
|
font-weight: 500;
|
|
74
73
|
line-height: 1;
|
|
75
|
-
|
|
74
|
+
letter-spacing: 0;
|
|
75
|
+
color: var(--astrum-file-upload-gray-60);
|
|
76
76
|
text-align: center;
|
|
77
77
|
}
|
|
78
78
|
|
|
@@ -84,11 +84,11 @@
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
.astrum-file-upload__compact-text {
|
|
87
|
-
font-family: "Involve", sans-serif;
|
|
88
87
|
font-size: 15px;
|
|
89
88
|
font-weight: 500;
|
|
90
89
|
line-height: 1;
|
|
91
|
-
|
|
90
|
+
letter-spacing: 0;
|
|
91
|
+
color: var(--astrum-file-upload-gray-80);
|
|
92
92
|
text-align: center;
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -101,35 +101,65 @@
|
|
|
101
101
|
font-size: inherit;
|
|
102
102
|
font-weight: inherit;
|
|
103
103
|
line-height: inherit;
|
|
104
|
-
color: var(--astrum-primary);
|
|
104
|
+
color: var(--astrum-file-upload-primary);
|
|
105
105
|
text-decoration: underline;
|
|
106
106
|
cursor: pointer;
|
|
107
107
|
transition: color 0.15s;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
.astrum-file-upload__compact-link:hover:not(:disabled) {
|
|
111
|
-
color: var(--astrum-primary);
|
|
111
|
+
color: var(--astrum-file-upload-primary);
|
|
112
112
|
opacity: 0.8;
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
.astrum-file-upload__compact-link:disabled {
|
|
116
|
-
color: var(--astrum-gray-40);
|
|
116
|
+
color: var(--astrum-file-upload-gray-40);
|
|
117
117
|
cursor: not-allowed;
|
|
118
118
|
text-decoration: none;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
121
|
.astrum-file-upload--compact.astrum-file-upload--dragging {
|
|
122
|
-
border-color: var(--astrum-primary);
|
|
122
|
+
border-color: var(--astrum-file-upload-primary);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.astrum-file-item {
|
|
126
|
+
--astrum-file-upload-primary: #2653f2;
|
|
127
|
+
--astrum-file-upload-white: #ffffff;
|
|
128
|
+
--astrum-file-upload-gray-5: #f4f4f4;
|
|
129
|
+
--astrum-file-upload-gray-10: #ebebeb;
|
|
130
|
+
--astrum-file-upload-gray-20: #d5d5d5;
|
|
131
|
+
--astrum-file-upload-gray-40: #ababab;
|
|
132
|
+
--astrum-file-upload-gray-60: #818181;
|
|
133
|
+
--astrum-file-upload-gray-80: #575757;
|
|
134
|
+
|
|
126
135
|
display: flex;
|
|
127
136
|
align-items: center;
|
|
128
|
-
gap:
|
|
129
|
-
padding:
|
|
137
|
+
gap: 16px;
|
|
138
|
+
padding: 24px;
|
|
130
139
|
border-radius: 8px;
|
|
131
|
-
background-color: var(--astrum-
|
|
132
|
-
border: 1px
|
|
140
|
+
background-color: var(--astrum-file-upload-gray-5);
|
|
141
|
+
border: 1px dashed var(--astrum-file-upload-gray-20);
|
|
142
|
+
position: relative;
|
|
143
|
+
box-sizing: border-box;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.astrum-file-item__preview-wrap {
|
|
147
|
+
flex-shrink: 0;
|
|
148
|
+
display: flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
justify-content: center;
|
|
151
|
+
width: 46px;
|
|
152
|
+
height: 46px;
|
|
153
|
+
border-radius: 4px;
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
background-color: var(--astrum-file-upload-gray-5);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.astrum-file-item__preview {
|
|
159
|
+
width: 100%;
|
|
160
|
+
height: 100%;
|
|
161
|
+
object-fit: cover;
|
|
162
|
+
display: block;
|
|
133
163
|
}
|
|
134
164
|
|
|
135
165
|
.astrum-file-item__icon {
|
|
@@ -139,7 +169,7 @@
|
|
|
139
169
|
justify-content: center;
|
|
140
170
|
width: 24px;
|
|
141
171
|
height: 24px;
|
|
142
|
-
color: var(--astrum-primary);
|
|
172
|
+
color: var(--astrum-file-upload-primary);
|
|
143
173
|
}
|
|
144
174
|
|
|
145
175
|
.astrum-file-item__content {
|
|
@@ -151,25 +181,28 @@
|
|
|
151
181
|
}
|
|
152
182
|
|
|
153
183
|
.astrum-file-item__name {
|
|
154
|
-
font-family: "Involve", sans-serif;
|
|
155
184
|
font-size: 14px;
|
|
156
|
-
font-weight:
|
|
185
|
+
font-weight: 700;
|
|
157
186
|
line-height: 1.4;
|
|
158
|
-
|
|
187
|
+
letter-spacing: 0;
|
|
188
|
+
color: var(--astrum-file-upload-gray-80);
|
|
159
189
|
overflow: hidden;
|
|
160
190
|
text-overflow: ellipsis;
|
|
161
191
|
white-space: nowrap;
|
|
162
192
|
}
|
|
163
193
|
|
|
164
194
|
.astrum-file-item__size {
|
|
165
|
-
font-family: "Involve", sans-serif;
|
|
166
195
|
font-size: 12px;
|
|
167
196
|
font-weight: 500;
|
|
168
197
|
line-height: 1;
|
|
169
|
-
|
|
198
|
+
letter-spacing: 0;
|
|
199
|
+
color: var(--astrum-file-upload-gray-60);
|
|
170
200
|
}
|
|
171
201
|
|
|
172
202
|
.astrum-file-item__remove {
|
|
203
|
+
position: absolute;
|
|
204
|
+
top: 12px;
|
|
205
|
+
right: 12px;
|
|
173
206
|
flex-shrink: 0;
|
|
174
207
|
display: flex;
|
|
175
208
|
align-items: center;
|
|
@@ -179,13 +212,12 @@
|
|
|
179
212
|
padding: 0;
|
|
180
213
|
border: none;
|
|
181
214
|
background: transparent;
|
|
182
|
-
color: var(--astrum-gray-40);
|
|
215
|
+
color: var(--astrum-file-upload-gray-40);
|
|
183
216
|
cursor: pointer;
|
|
184
|
-
border-radius: 4px;
|
|
185
217
|
transition: background-color 0.15s, color 0.15s;
|
|
186
218
|
}
|
|
187
219
|
|
|
188
220
|
.astrum-file-item__remove:hover {
|
|
189
|
-
background-color: var(--astrum-gray-5);
|
|
190
|
-
color: var(--astrum-gray-80);
|
|
221
|
+
background-color: var(--astrum-file-upload-gray-5);
|
|
222
|
+
color: var(--astrum-file-upload-gray-80);
|
|
191
223
|
}
|
package/dist/Input/Input.css
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
align-items: center;
|
|
21
21
|
background: var(--astrum-input-bg);
|
|
22
22
|
border: 1px solid var(--astrum-input-border);
|
|
23
|
-
border-radius:
|
|
23
|
+
border-radius: 8px;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
@media (hover: hover) {
|
|
@@ -35,15 +35,6 @@
|
|
|
35
35
|
border-color: var(--astrum-input-primary);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.astrum-input--error .astrum-input__wrap {
|
|
39
|
-
border-color: var(--astrum-input-error);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.astrum-input--error .astrum-input__wrap:focus-within {
|
|
43
|
-
outline-color: var(--astrum-input-error);
|
|
44
|
-
border-color: var(--astrum-input-error);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
38
|
.astrum-input__label {
|
|
48
39
|
display: block;
|
|
49
40
|
margin-bottom: 8px;
|
|
@@ -167,7 +158,7 @@
|
|
|
167
158
|
.astrum-input__field {
|
|
168
159
|
box-sizing: border-box;
|
|
169
160
|
flex: 1;
|
|
170
|
-
min-width:
|
|
161
|
+
min-width: 301px;
|
|
171
162
|
width: 100%;
|
|
172
163
|
height: 54px;
|
|
173
164
|
padding: 16px 8px 16px 24px;
|
|
@@ -217,14 +208,12 @@
|
|
|
217
208
|
|
|
218
209
|
.astrum-input__error {
|
|
219
210
|
display: block;
|
|
220
|
-
margin-top:
|
|
211
|
+
margin-top: 4px;
|
|
221
212
|
font-weight: 500;
|
|
222
213
|
font-size: 12px;
|
|
223
214
|
line-height: 1.4;
|
|
224
215
|
color: var(--astrum-input-error);
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
margin-top: 6px;
|
|
229
|
-
font-size: 11px;
|
|
216
|
+
border-radius: 8px;
|
|
217
|
+
background: rgba(195, 63, 65, 0.10);
|
|
218
|
+
padding: 4px 8px;
|
|
230
219
|
}
|
|
@@ -35,10 +35,6 @@
|
|
|
35
35
|
box-shadow: 0 0 0 2px rgba(38, 83, 242, 0.1);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
.astrum-input-code--error .astrum-input-code__wrap {
|
|
39
|
-
border-color: var(--astrum-input-code-error);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
38
|
.astrum-input-code__cell {
|
|
43
39
|
width: 18px;
|
|
44
40
|
height: 36px;
|
|
@@ -83,10 +79,10 @@
|
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
.astrum-input-code__footer {
|
|
86
|
-
margin-top:
|
|
87
|
-
padding: 8px
|
|
88
|
-
border-radius:
|
|
89
|
-
background
|
|
82
|
+
margin-top: 4px;
|
|
83
|
+
padding: 4px 8px;
|
|
84
|
+
border-radius: 8px;
|
|
85
|
+
background: rgba(195, 63, 65, 0.10);
|
|
90
86
|
}
|
|
91
87
|
|
|
92
88
|
.astrum-input-code__error {
|