nexa-ui-kit 0.11.5 → 0.11.8
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/components/NAlert.js +2 -14
- package/dist/components/NAlert.nexa +3 -14
- package/dist/components/NAutocomplete.js +1 -1
- package/dist/components/NAutocomplete.nexa +2 -1
- package/dist/components/NAvatar.js +0 -5
- package/dist/components/NAvatar.nexa +1 -5
- package/dist/components/NBadge.js +0 -6
- package/dist/components/NBadge.nexa +1 -6
- package/dist/components/NBottomSheet.js +0 -5
- package/dist/components/NBottomSheet.nexa +1 -5
- package/dist/components/NButton.js +202 -294
- package/dist/components/NButton.nexa +224 -318
- package/dist/components/NCard.js +39 -82
- package/dist/components/NCard.nexa +27 -71
- package/dist/components/NCheckbox.js +77 -60
- package/dist/components/NCheckbox.nexa +71 -45
- package/dist/components/NChips.nexa +1 -0
- package/dist/components/NDataTable.js +1 -313
- package/dist/components/NDataTable.nexa +2 -314
- package/dist/components/NDatepicker.js +4 -25
- package/dist/components/NDatepicker.nexa +5 -25
- package/dist/components/NForm.nexa +1 -0
- package/dist/components/NFormField.js +0 -5
- package/dist/components/NFormField.nexa +1 -5
- package/dist/components/NImage.js +1 -6
- package/dist/components/NImage.nexa +2 -6
- package/dist/components/NInput.js +96 -263
- package/dist/components/NInput.nexa +89 -259
- package/dist/components/NInputNumber.nexa +1 -1
- package/dist/components/NModal.js +1 -118
- package/dist/components/NModal.nexa +2 -119
- package/dist/components/NMultiSelect.js +1 -1
- package/dist/components/NMultiSelect.nexa +2 -1
- package/dist/components/NPaginator.js +1 -11
- package/dist/components/NPaginator.nexa +2 -11
- package/dist/components/NPassword.nexa +1 -0
- package/dist/components/NProgressBar.js +0 -11
- package/dist/components/NProgressBar.nexa +1 -11
- package/dist/components/NRadio.js +1 -8
- package/dist/components/NRadio.nexa +2 -8
- package/dist/components/NScrollView.js +0 -6
- package/dist/components/NScrollView.nexa +1 -6
- package/dist/components/NSelect.js +7 -35
- package/dist/components/NSelect.nexa +8 -35
- package/dist/components/NSkeleton.js +3 -9
- package/dist/components/NSkeleton.nexa +4 -9
- package/dist/components/NSwitch.js +0 -6
- package/dist/components/NSwitch.nexa +1 -6
- package/dist/components/NTabs.js +0 -11
- package/dist/components/NTabs.nexa +1 -11
- package/dist/components/NTag.js +1 -11
- package/dist/components/NTag.nexa +2 -11
- package/dist/components/NToastContainer.js +3 -27
- package/dist/components/NToastContainer.nexa +4 -27
- package/dist/components/NTooltip.js +0 -13
- package/dist/components/NTooltip.nexa +1 -13
- package/dist/components/NTreeMenu.js +1 -21
- package/dist/components/NTreeMenu.nexa +2 -21
- package/dist/components/NVirtualList.js +0 -2
- package/dist/components/NVirtualList.nexa +1 -2
- package/dist/styles/tokens.css +82 -173
- package/package.json +4 -4
- package/src/components/NAlert.nexa +3 -14
- package/src/components/NAutocomplete.nexa +2 -1
- package/src/components/NAvatar.nexa +1 -5
- package/src/components/NBadge.nexa +1 -6
- package/src/components/NBottomSheet.nexa +1 -5
- package/src/components/NButton.nexa +224 -318
- package/src/components/NCard.nexa +27 -71
- package/src/components/NCheckbox.nexa +71 -45
- package/src/components/NChips.nexa +1 -0
- package/src/components/NDataTable.nexa +2 -314
- package/src/components/NDatepicker.nexa +5 -25
- package/src/components/NForm.nexa +1 -0
- package/src/components/NFormField.nexa +1 -5
- package/src/components/NImage.nexa +2 -6
- package/src/components/NInput.nexa +89 -259
- package/src/components/NInputNumber.nexa +1 -1
- package/src/components/NModal.nexa +2 -119
- package/src/components/NMultiSelect.nexa +2 -1
- package/src/components/NPaginator.nexa +2 -11
- package/src/components/NPassword.nexa +1 -0
- package/src/components/NProgressBar.nexa +1 -11
- package/src/components/NRadio.nexa +2 -8
- package/src/components/NScrollView.nexa +1 -6
- package/src/components/NSelect.nexa +8 -35
- package/src/components/NSkeleton.nexa +4 -9
- package/src/components/NSwitch.nexa +1 -6
- package/src/components/NTabs.nexa +1 -11
- package/src/components/NTag.nexa +2 -11
- package/src/components/NToastContainer.nexa +4 -27
- package/src/components/NTooltip.nexa +1 -13
- package/src/components/NTreeMenu.nexa +2 -21
- package/src/components/NVirtualList.nexa +1 -2
- package/src/styles/tokens.css +82 -173
|
@@ -218,318 +218,6 @@ const startResize = (e) => { if (!props.resizableColumns) return; const field =
|
|
|
218
218
|
</div>
|
|
219
219
|
</template>
|
|
220
220
|
|
|
221
|
-
<style scoped>
|
|
222
|
-
.n-dt {
|
|
223
|
-
border: 1px solid var(--n-color-border);
|
|
224
|
-
border-radius: var(--n-radius-lg);
|
|
225
|
-
background: var(--n-color-surface);
|
|
226
|
-
overflow: hidden;
|
|
227
|
-
font-family: var(--n-font-sans);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.n-dt.is-grid {
|
|
231
|
-
border-color: var(--n-color-border);
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.n-dt.is-grid .n-dt-th,
|
|
235
|
-
.n-dt.is-grid .n-dt-td {
|
|
236
|
-
border: 1px solid var(--n-color-border);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.n-dt-toolbar {
|
|
240
|
-
display: flex;
|
|
241
|
-
align-items: center;
|
|
242
|
-
justify-content: space-between;
|
|
243
|
-
padding: 0.75rem 1rem;
|
|
244
|
-
border-bottom: 1px solid var(--n-color-border);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.n-dt-global {
|
|
248
|
-
display: flex;
|
|
249
|
-
align-items: center;
|
|
250
|
-
gap: 0.5rem;
|
|
251
|
-
color: var(--n-color-text-muted);
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.n-dt-global-input {
|
|
255
|
-
width: 260px;
|
|
256
|
-
max-width: 100%;
|
|
257
|
-
background: transparent;
|
|
258
|
-
border: 1px solid var(--n-color-border);
|
|
259
|
-
border-radius: var(--n-radius-md);
|
|
260
|
-
padding: 0.45rem 0.75rem;
|
|
261
|
-
color: var(--n-color-text);
|
|
262
|
-
font-size: var(--n-text-sm);
|
|
263
|
-
outline: none;
|
|
264
|
-
box-sizing: border-box;
|
|
265
|
-
transition: border-color 0.15s ease;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.n-dt-global-input:focus {
|
|
269
|
-
border-color: var(--n-color-primary);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.n-dt-wrapper {
|
|
273
|
-
width: 100%;
|
|
274
|
-
overflow: auto;
|
|
275
|
-
border-radius: inherit;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
.n-dt-table {
|
|
279
|
-
width: 100%;
|
|
280
|
-
border-collapse: collapse;
|
|
281
|
-
table-layout: fixed;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.n-dt-thead {
|
|
285
|
-
background: linear-gradient(180deg, var(--n-color-surface-alt, var(--n-color-surface)) 0%, var(--n-color-surface) 100%);
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.n-dt-th {
|
|
289
|
-
position: relative;
|
|
290
|
-
padding: 0.65rem 0.85rem;
|
|
291
|
-
border-bottom: 2px solid var(--n-color-border);
|
|
292
|
-
color: var(--n-color-text-secondary);
|
|
293
|
-
font-size: var(--n-text-sm);
|
|
294
|
-
font-weight: var(--n-weight-semibold);
|
|
295
|
-
user-select: none;
|
|
296
|
-
vertical-align: middle;
|
|
297
|
-
text-align: left;
|
|
298
|
-
background: var(--n-color-surface);
|
|
299
|
-
transition: background 0.15s ease;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
.n-dt-th.is-sortable {
|
|
303
|
-
cursor: pointer;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.n-dt-th.is-sortable:hover {
|
|
307
|
-
background: var(--n-color-glass);
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.n-dt-th.is-right {
|
|
311
|
-
text-align: right;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.n-dt-th.is-center {
|
|
315
|
-
text-align: center;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.n-dt-th.is-selection {
|
|
319
|
-
width: 3rem;
|
|
320
|
-
text-align: center;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.n-dt-th-content {
|
|
324
|
-
display: flex;
|
|
325
|
-
align-items: center;
|
|
326
|
-
gap: 0.35rem;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
.n-dt-th.is-right .n-dt-th-content {
|
|
330
|
-
justify-content: flex-end;
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.n-dt-th.is-center .n-dt-th-content {
|
|
334
|
-
justify-content: center;
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
.n-dt-th-text {
|
|
338
|
-
overflow: hidden;
|
|
339
|
-
text-overflow: ellipsis;
|
|
340
|
-
white-space: nowrap;
|
|
341
|
-
letter-spacing: 0.02em;
|
|
342
|
-
text-transform: uppercase;
|
|
343
|
-
font-size: 0.6875rem;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
.n-dt-sort {
|
|
347
|
-
display: inline-flex;
|
|
348
|
-
flex-direction: column;
|
|
349
|
-
align-items: center;
|
|
350
|
-
gap: 0;
|
|
351
|
-
line-height: 1;
|
|
352
|
-
margin-left: auto;
|
|
353
|
-
flex-shrink: 0;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
.n-dt-sort-arrow {
|
|
357
|
-
display: block;
|
|
358
|
-
color: var(--n-color-border);
|
|
359
|
-
transition: color 0.15s ease;
|
|
360
|
-
margin: -3px 0;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
.n-dt-sort-arrow-up.is-on {
|
|
364
|
-
color: var(--n-color-primary);
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
.n-dt-sort-arrow-down.is-on {
|
|
368
|
-
color: var(--n-color-primary);
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
.n-dt-th.is-sortable:hover .n-dt-sort-arrow {
|
|
372
|
-
color: var(--n-color-text-muted);
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
.n-dt-resizer {
|
|
376
|
-
position: absolute;
|
|
377
|
-
right: 0;
|
|
378
|
-
top: 0;
|
|
379
|
-
bottom: 0;
|
|
380
|
-
width: 6px;
|
|
381
|
-
cursor: col-resize;
|
|
382
|
-
background: transparent;
|
|
383
|
-
transition: background 0.15s ease;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
.n-dt-resizer:hover {
|
|
387
|
-
background: var(--n-color-primary);
|
|
388
|
-
opacity: 0.4;
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
.n-dt-filter-row .n-dt-th {
|
|
392
|
-
border-bottom: 1px solid var(--n-color-border);
|
|
393
|
-
padding: 0.5rem 0.6rem;
|
|
394
|
-
background: var(--n-color-surface);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
.n-dt-filter {
|
|
398
|
-
width: 100%;
|
|
399
|
-
max-width: 100%;
|
|
400
|
-
display: block;
|
|
401
|
-
background: var(--n-color-bg);
|
|
402
|
-
border: 1px solid var(--n-color-border);
|
|
403
|
-
border-radius: var(--n-radius-sm);
|
|
404
|
-
padding: 0.3rem 0.45rem;
|
|
405
|
-
color: var(--n-color-text);
|
|
406
|
-
font-size: var(--n-text-xs);
|
|
407
|
-
outline: none;
|
|
408
|
-
box-sizing: border-box;
|
|
409
|
-
transition: border-color 0.15s ease;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
.n-dt-filter:focus {
|
|
413
|
-
border-color: var(--n-color-primary);
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
.n-dt-tbody .n-dt-row {
|
|
417
|
-
transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
.n-dt-tbody .n-dt-row.is-hover:hover {
|
|
421
|
-
background: color-mix(in srgb, var(--n-color-primary) 6%, var(--n-color-surface));
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
.n-dt-tbody .n-dt-row.is-selected {
|
|
425
|
-
background: var(--n-color-primary-light);
|
|
426
|
-
outline: none;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.n-dt-tbody .n-dt-row.is-selected td:first-child {
|
|
430
|
-
box-shadow: inset 3px 0 0 0 var(--n-color-primary);
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.n-dt-tbody .n-dt-row.is-hover.is-selected:hover {
|
|
434
|
-
background: var(--n-color-primary-light);
|
|
435
|
-
filter: brightness(0.96);
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
.n-dt-table.is-striped .n-dt-tbody .n-dt-row:nth-child(even) {
|
|
439
|
-
background: color-mix(in srgb, var(--n-color-glass) 50%, var(--n-color-surface));
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
.n-dt-table.is-striped .n-dt-tbody .n-dt-row:nth-child(even).is-hover:hover {
|
|
443
|
-
background: color-mix(in srgb, var(--n-color-primary) 6%, var(--n-color-surface));
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.n-dt-table.is-striped .n-dt-tbody .n-dt-row:nth-child(even).is-selected {
|
|
447
|
-
background: var(--n-color-primary-light);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
.n-dt-td {
|
|
451
|
-
padding: 0.6rem 0.85rem;
|
|
452
|
-
border-bottom: 1px solid var(--n-color-border);
|
|
453
|
-
color: var(--n-color-text);
|
|
454
|
-
font-size: var(--n-text-sm);
|
|
455
|
-
vertical-align: middle;
|
|
456
|
-
text-align: left;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
.n-dt-td.is-right {
|
|
460
|
-
text-align: right;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.n-dt-td.is-center {
|
|
464
|
-
text-align: center;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.n-dt-td.is-selection {
|
|
468
|
-
width: 3rem;
|
|
469
|
-
text-align: center;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
.n-dt-selectbox {
|
|
473
|
-
width: 20px;
|
|
474
|
-
height: 20px;
|
|
475
|
-
border: 2px solid var(--n-color-border);
|
|
476
|
-
border-radius: 5px;
|
|
477
|
-
background: transparent;
|
|
478
|
-
cursor: pointer;
|
|
479
|
-
display: inline-flex;
|
|
480
|
-
align-items: center;
|
|
481
|
-
justify-content: center;
|
|
482
|
-
padding: 0;
|
|
483
|
-
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
484
|
-
color: transparent;
|
|
485
|
-
}
|
|
486
|
-
|
|
487
|
-
.n-dt-selectbox.is-checked {
|
|
488
|
-
background: var(--n-color-primary);
|
|
489
|
-
border-color: var(--n-color-primary);
|
|
490
|
-
color: white;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
.n-dt-selectbox:hover:not(.is-checked) {
|
|
494
|
-
border-color: var(--n-color-primary);
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
.n-dt-selectbox.is-checked svg {
|
|
498
|
-
animation: n-dt-check-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
@keyframes n-dt-check-pop {
|
|
502
|
-
0% { transform: scale(0); }
|
|
503
|
-
50% { transform: scale(1.15); }
|
|
504
|
-
100% { transform: scale(1); }
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
.n-dt-empty-row .n-dt-empty {
|
|
508
|
-
padding: 2rem 1rem;
|
|
509
|
-
text-align: center;
|
|
510
|
-
color: var(--n-color-text-muted);
|
|
511
|
-
font-size: var(--n-text-sm);
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
.n-dt-sm .n-dt-th,
|
|
515
|
-
.n-dt-sm .n-dt-td {
|
|
516
|
-
padding: 0.4rem 0.6rem;
|
|
517
|
-
font-size: var(--n-text-xs);
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
.n-dt-lg .n-dt-th,
|
|
521
|
-
.n-dt-lg .n-dt-td {
|
|
522
|
-
padding: 0.85rem 1rem;
|
|
523
|
-
font-size: var(--n-text-base);
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
.n-dt-paginator-wrap {
|
|
527
|
-
border-top: 1px solid var(--n-color-border);
|
|
528
|
-
background: var(--n-color-surface-alt, var(--n-color-surface));
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
.n-dt-paginator-wrap :deep(.n-paginator) {
|
|
532
|
-
border-top: none;
|
|
533
|
-
background: transparent;
|
|
534
|
-
}
|
|
221
|
+
<style scoped>
|
|
222
|
+
.n-dt {
|
|
535
223
|
border: 1px solid var(--n-color-border);
|
|
536
224
|
border-radius: var(--n-radius-lg);
|
|
537
225
|
background: var(--n-color-surface);
|
|
538
226
|
overflow: hidden;
|
|
539
227
|
font-family: var(--n-font-sans);
|
|
540
228
|
border-color: var(--n-color-border);
|
|
541
229
|
border: 1px solid var(--n-color-border);
|
|
542
230
|
display: flex;
|
|
543
231
|
align-items: center;
|
|
544
232
|
justify-content: space-between;
|
|
545
233
|
padding: 0.75rem 1rem;
|
|
546
234
|
border-bottom: 1px solid var(--n-color-border);
|
|
547
235
|
display: flex;
|
|
548
236
|
align-items: center;
|
|
549
237
|
gap: 0.5rem;
|
|
550
238
|
color: var(--n-color-text-muted);
|
|
551
239
|
width: 260px;
|
|
552
240
|
max-width: 100%;
|
|
553
241
|
background: transparent;
|
|
554
242
|
border: 1px solid var(--n-color-border);
|
|
555
243
|
border-radius: var(--n-radius-md);
|
|
556
244
|
padding: 0.45rem 0.75rem;
|
|
557
245
|
color: var(--n-color-text);
|
|
558
246
|
font-size: var(--n-text-sm);
|
|
559
247
|
outline: none;
|
|
560
248
|
box-sizing: border-box;
|
|
561
249
|
transition: border-color 0.15s ease;
|
|
562
250
|
border-color: var(--n-color-primary);
|
|
563
251
|
width: 100%;
|
|
564
252
|
overflow: auto;
|
|
565
253
|
border-radius: inherit;
|
|
566
254
|
width: 100%;
|
|
567
255
|
border-collapse: collapse;
|
|
568
256
|
table-layout: fixed;
|
|
569
257
|
background-color: var(--n-color-surface);) 0%, var(--n-color-surface) 100%);
|
|
570
258
|
position: relative;
|
|
571
259
|
padding: 0.65rem 0.85rem;
|
|
572
260
|
border-bottom: 2px solid var(--n-color-border);
|
|
573
261
|
color: var(--n-color-text-secondary);
|
|
574
262
|
font-size: var(--n-text-sm);
|
|
575
263
|
font-weight: var(--n-weight-semibold);
|
|
576
264
|
user-select: none;
|
|
577
265
|
vertical-align: middle;
|
|
578
266
|
text-align: left;
|
|
579
267
|
background: var(--n-color-surface);
|
|
580
268
|
transition: background 0.15s ease;
|
|
581
269
|
cursor: pointer;
|
|
582
270
|
background: var(--n-color-glass);
|
|
583
271
|
text-align: right;
|
|
584
272
|
text-align: center;
|
|
585
273
|
width: 3rem;
|
|
586
274
|
text-align: center;
|
|
587
275
|
display: flex;
|
|
588
276
|
align-items: center;
|
|
589
277
|
gap: 0.35rem;
|
|
590
278
|
justify-content: flex-end;
|
|
591
279
|
justify-content: center;
|
|
592
280
|
overflow: hidden;
|
|
593
281
|
text-overflow: ellipsis;
|
|
594
282
|
white-space: nowrap;
|
|
595
283
|
letter-spacing: 0.02em;
|
|
596
284
|
text-transform: uppercase;
|
|
597
285
|
font-size: 0.6875rem;
|
|
598
286
|
display: inline-flex;
|
|
599
287
|
flex-direction: column;
|
|
600
288
|
align-items: center;
|
|
601
289
|
gap: 0;
|
|
602
290
|
line-height: 1;
|
|
603
291
|
margin-left: auto;
|
|
604
292
|
flex-shrink: 0;
|
|
605
293
|
display: block;
|
|
606
294
|
color: var(--n-color-border);
|
|
607
295
|
transition: color 0.15s ease;
|
|
608
296
|
margin: -3px 0;
|
|
609
297
|
color: var(--n-color-primary);
|
|
610
298
|
color: var(--n-color-primary);
|
|
611
299
|
color: var(--n-color-text-muted);
|
|
612
300
|
position: absolute;
|
|
613
301
|
right: 0;
|
|
614
302
|
top: 0;
|
|
615
303
|
bottom: 0;
|
|
616
304
|
width: 6px;
|
|
617
305
|
cursor: col-resize;
|
|
618
306
|
background: transparent;
|
|
619
307
|
transition: background 0.15s ease;
|
|
620
308
|
background: var(--n-color-primary);
|
|
621
309
|
opacity: 0.4;
|
|
622
310
|
border-bottom: 1px solid var(--n-color-border);
|
|
623
311
|
padding: 0.5rem 0.6rem;
|
|
624
312
|
background: var(--n-color-surface);
|
|
625
313
|
width: 100%;
|
|
626
314
|
max-width: 100%;
|
|
627
315
|
display: block;
|
|
628
316
|
background: var(--n-color-bg);
|
|
629
317
|
border: 1px solid var(--n-color-border);
|
|
630
318
|
border-radius: var(--n-radius-sm);
|
|
631
319
|
padding: 0.3rem 0.45rem;
|
|
632
320
|
color: var(--n-color-text);
|
|
633
321
|
font-size: var(--n-text-xs);
|
|
634
322
|
outline: none;
|
|
635
323
|
box-sizing: border-box;
|
|
636
324
|
transition: border-color 0.15s ease;
|
|
637
325
|
border-color: var(--n-color-primary);
|
|
638
326
|
transition: background 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
639
327
|
background: color-mix(in srgb, var(--n-color-primary) 6%, var(--n-color-surface));
|
|
640
328
|
background: var(--n-color-primary-light);
|
|
641
329
|
outline: none;
|
|
642
330
|
background: var(--n-color-primary-light);
|
|
643
331
|
filter: brightness(0.96);
|
|
644
332
|
background: color-mix(in srgb, var(--n-color-glass) 50%, var(--n-color-surface));
|
|
645
333
|
background: color-mix(in srgb, var(--n-color-primary) 6%, var(--n-color-surface));
|
|
646
334
|
background: var(--n-color-primary-light);
|
|
647
335
|
padding: 0.6rem 0.85rem;
|
|
648
336
|
border-bottom: 1px solid var(--n-color-border);
|
|
649
337
|
color: var(--n-color-text);
|
|
650
338
|
font-size: var(--n-text-sm);
|
|
651
339
|
vertical-align: middle;
|
|
652
340
|
text-align: left;
|
|
653
341
|
text-align: right;
|
|
654
342
|
text-align: center;
|
|
655
343
|
width: 3rem;
|
|
656
344
|
text-align: center;
|
|
657
345
|
width: 20px;
|
|
658
346
|
height: 20px;
|
|
659
347
|
border: 2px solid var(--n-color-border);
|
|
660
348
|
border-radius: 5px;
|
|
661
349
|
background: transparent;
|
|
662
350
|
cursor: pointer;
|
|
663
351
|
display: inline-flex;
|
|
664
352
|
align-items: center;
|
|
665
353
|
justify-content: center;
|
|
666
354
|
padding: 0;
|
|
667
355
|
transition: color var(--n-transition-fast); cubic-bezier(0.16, 1, 0.3, 1);
|
|
668
356
|
color: transparent;
|
|
669
357
|
background: var(--n-color-primary);
|
|
670
358
|
border-color: var(--n-color-primary);
|
|
671
359
|
color: white;
|
|
672
360
|
border-color: var(--n-color-primary);
|
|
673
361
|
animation: n-dt-check-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
674
362
|
0% { transform: scale(0); }
|
|
675
363
|
50% { transform: scale(1.15); }
|
|
676
364
|
100% { transform: scale(1); }
|
|
677
365
|
padding: 2rem 1rem;
|
|
678
366
|
text-align: center;
|
|
679
367
|
color: var(--n-color-text-muted);
|
|
680
368
|
font-size: var(--n-text-sm);
|
|
681
369
|
padding: 0.4rem 0.6rem;
|
|
682
370
|
font-size: var(--n-text-xs);
|
|
683
371
|
padding: 0.85rem 1rem;
|
|
684
372
|
font-size: var(--n-text-base);
|
|
685
373
|
border-top: 1px solid var(--n-color-border);
|
|
686
374
|
background: var(--n-color-surface-alt, var(--n-color-surface));
|
|
687
375
|
border-top: none;
|
|
688
376
|
background: transparent;
|
|
689
377
|
</style>
|
|
@@ -254,25 +254,20 @@ const __style = `.n-datepicker[data-v-7501a13d]{
|
|
|
254
254
|
display: inline-block;
|
|
255
255
|
font-family: var(--n-font-sans);
|
|
256
256
|
}
|
|
257
|
-
|
|
258
257
|
.n-datepicker-input[data-v-7501a13d]{
|
|
259
258
|
position: relative;
|
|
260
259
|
cursor: pointer;
|
|
261
260
|
}
|
|
262
|
-
|
|
263
261
|
.n-datepicker-input .n-input[data-v-7501a13d]{
|
|
264
262
|
cursor: pointer;
|
|
265
263
|
}
|
|
266
|
-
|
|
267
264
|
.n-datepicker-icon[data-v-7501a13d]{
|
|
268
265
|
position: absolute;
|
|
269
266
|
right: 0.75rem;
|
|
270
267
|
top: 50%;
|
|
271
|
-
transform: translateY(-50%);
|
|
272
268
|
font-size: 1rem;
|
|
273
269
|
pointer-events: none;
|
|
274
270
|
}
|
|
275
|
-
|
|
276
271
|
.n-datepicker-dropdown[data-v-7501a13d]{
|
|
277
272
|
position: absolute;
|
|
278
273
|
top: calc(100% + 4px);
|
|
@@ -286,34 +281,28 @@ const __style = `.n-datepicker[data-v-7501a13d]{
|
|
|
286
281
|
width: 280px;
|
|
287
282
|
animation: fade-in 0.15s ease;
|
|
288
283
|
}
|
|
289
|
-
|
|
290
284
|
@keyframes fade-in {
|
|
291
|
-
from[data-v-7501a13d]{ opacity: 0;
|
|
292
|
-
to[data-v-7501a13d]{ opacity: 1;
|
|
285
|
+
from[data-v-7501a13d]{ opacity: 0; }
|
|
286
|
+
to[data-v-7501a13d]{ opacity: 1; }
|
|
293
287
|
}
|
|
294
|
-
|
|
295
288
|
.n-datepicker-dropdown.is-top[data-v-7501a13d]{
|
|
296
289
|
animation: fade-in-top 0.15s ease;
|
|
297
290
|
}
|
|
298
|
-
|
|
299
291
|
@keyframes fade-in-top {
|
|
300
|
-
from[data-v-7501a13d]{ opacity: 0;
|
|
301
|
-
to[data-v-7501a13d]{ opacity: 1;
|
|
292
|
+
from[data-v-7501a13d]{ opacity: 0; }
|
|
293
|
+
to[data-v-7501a13d]{ opacity: 1; }
|
|
302
294
|
}
|
|
303
|
-
|
|
304
295
|
.n-datepicker-header[data-v-7501a13d]{
|
|
305
296
|
display: flex;
|
|
306
297
|
align-items: center;
|
|
307
298
|
justify-content: space-between;
|
|
308
299
|
margin-bottom: 0.75rem;
|
|
309
300
|
}
|
|
310
|
-
|
|
311
301
|
.n-datepicker-title[data-v-7501a13d]{
|
|
312
302
|
font-weight: var(--n-weight-semibold);
|
|
313
303
|
font-size: var(--n-text-sm);
|
|
314
304
|
color: var(--n-color-text);
|
|
315
305
|
}
|
|
316
|
-
|
|
317
306
|
.n-datepicker-nav[data-v-7501a13d]{
|
|
318
307
|
background: none;
|
|
319
308
|
border: 1px solid var(--n-color-border);
|
|
@@ -328,18 +317,15 @@ to[data-v-7501a13d]{ opacity: 1; transform: translateY(0); }
|
|
|
328
317
|
justify-content: center;
|
|
329
318
|
transition: all var(--n-transition-fast);
|
|
330
319
|
}
|
|
331
|
-
|
|
332
320
|
.n-datepicker-nav[data-v-7501a13d]:hover{
|
|
333
321
|
background: var(--n-color-surface-hover);
|
|
334
322
|
color: var(--n-color-text);
|
|
335
323
|
}
|
|
336
|
-
|
|
337
324
|
.n-datepicker-grid[data-v-7501a13d]{
|
|
338
325
|
display: grid;
|
|
339
326
|
grid-template-columns: repeat(7, 1fr);
|
|
340
327
|
gap: 2px;
|
|
341
328
|
}
|
|
342
|
-
|
|
343
329
|
.n-datepicker-day-header[data-v-7501a13d]{
|
|
344
330
|
text-align: center;
|
|
345
331
|
font-size: var(--n-text-xs);
|
|
@@ -347,7 +333,6 @@ to[data-v-7501a13d]{ opacity: 1; transform: translateY(0); }
|
|
|
347
333
|
font-weight: var(--n-weight-semibold);
|
|
348
334
|
padding: 0.35rem 0;
|
|
349
335
|
}
|
|
350
|
-
|
|
351
336
|
.n-datepicker-day[data-v-7501a13d]{
|
|
352
337
|
text-align: center;
|
|
353
338
|
padding: 0.4rem 0;
|
|
@@ -357,29 +342,23 @@ to[data-v-7501a13d]{ opacity: 1; transform: translateY(0); }
|
|
|
357
342
|
cursor: pointer;
|
|
358
343
|
transition: all var(--n-transition-fast);
|
|
359
344
|
}
|
|
360
|
-
|
|
361
345
|
.n-datepicker-day[data-v-7501a13d]:hover:not(.is-empty){
|
|
362
346
|
background: var(--n-color-primary-light);
|
|
363
347
|
}
|
|
364
|
-
|
|
365
348
|
.n-datepicker-day.is-empty[data-v-7501a13d]{
|
|
366
349
|
cursor: default;
|
|
367
350
|
}
|
|
368
|
-
|
|
369
351
|
.n-datepicker-day.is-disabled[data-v-7501a13d]{
|
|
370
352
|
opacity: 0.4;
|
|
371
353
|
cursor: not-allowed;
|
|
372
354
|
}
|
|
373
|
-
|
|
374
355
|
.n-datepicker-day.is-disabled[data-v-7501a13d]:hover{
|
|
375
356
|
background: transparent;
|
|
376
357
|
}
|
|
377
|
-
|
|
378
358
|
.n-datepicker-day.is-today[data-v-7501a13d]{
|
|
379
359
|
font-weight: var(--n-weight-bold);
|
|
380
360
|
color: var(--n-color-primary);
|
|
381
361
|
}
|
|
382
|
-
|
|
383
362
|
.n-datepicker-day.is-selected[data-v-7501a13d]{
|
|
384
363
|
background: var(--n-color-primary);
|
|
385
364
|
color: white;
|
|
@@ -233,25 +233,20 @@ onBeforeUnmount(() => {
|
|
|
233
233
|
display: inline-block;
|
|
234
234
|
font-family: var(--n-font-sans);
|
|
235
235
|
}
|
|
236
|
-
|
|
237
236
|
.n-datepicker-input {
|
|
238
237
|
position: relative;
|
|
239
238
|
cursor: pointer;
|
|
240
239
|
}
|
|
241
|
-
|
|
242
240
|
.n-datepicker-input .n-input {
|
|
243
241
|
cursor: pointer;
|
|
244
242
|
}
|
|
245
|
-
|
|
246
243
|
.n-datepicker-icon {
|
|
247
244
|
position: absolute;
|
|
248
245
|
right: 0.75rem;
|
|
249
246
|
top: 50%;
|
|
250
|
-
transform: translateY(-50%);
|
|
251
247
|
font-size: 1rem;
|
|
252
248
|
pointer-events: none;
|
|
253
249
|
}
|
|
254
|
-
|
|
255
250
|
.n-datepicker-dropdown {
|
|
256
251
|
position: absolute;
|
|
257
252
|
top: calc(100% + 4px);
|
|
@@ -265,34 +260,28 @@ onBeforeUnmount(() => {
|
|
|
265
260
|
width: 280px;
|
|
266
261
|
animation: fade-in 0.15s ease;
|
|
267
262
|
}
|
|
268
|
-
|
|
269
263
|
@keyframes fade-in {
|
|
270
|
-
from { opacity: 0;
|
|
271
|
-
to { opacity: 1;
|
|
264
|
+
from { opacity: 0; }
|
|
265
|
+
to { opacity: 1; }
|
|
272
266
|
}
|
|
273
|
-
|
|
274
267
|
.n-datepicker-dropdown.is-top {
|
|
275
268
|
animation: fade-in-top 0.15s ease;
|
|
276
269
|
}
|
|
277
|
-
|
|
278
270
|
@keyframes fade-in-top {
|
|
279
|
-
from { opacity: 0;
|
|
280
|
-
to { opacity: 1;
|
|
271
|
+
from { opacity: 0; }
|
|
272
|
+
to { opacity: 1; }
|
|
281
273
|
}
|
|
282
|
-
|
|
283
274
|
.n-datepicker-header {
|
|
284
275
|
display: flex;
|
|
285
276
|
align-items: center;
|
|
286
277
|
justify-content: space-between;
|
|
287
278
|
margin-bottom: 0.75rem;
|
|
288
279
|
}
|
|
289
|
-
|
|
290
280
|
.n-datepicker-title {
|
|
291
281
|
font-weight: var(--n-weight-semibold);
|
|
292
282
|
font-size: var(--n-text-sm);
|
|
293
283
|
color: var(--n-color-text);
|
|
294
284
|
}
|
|
295
|
-
|
|
296
285
|
.n-datepicker-nav {
|
|
297
286
|
background: none;
|
|
298
287
|
border: 1px solid var(--n-color-border);
|
|
@@ -307,18 +296,15 @@ onBeforeUnmount(() => {
|
|
|
307
296
|
justify-content: center;
|
|
308
297
|
transition: all var(--n-transition-fast);
|
|
309
298
|
}
|
|
310
|
-
|
|
311
299
|
.n-datepicker-nav:hover {
|
|
312
300
|
background: var(--n-color-surface-hover);
|
|
313
301
|
color: var(--n-color-text);
|
|
314
302
|
}
|
|
315
|
-
|
|
316
303
|
.n-datepicker-grid {
|
|
317
304
|
display: grid;
|
|
318
305
|
grid-template-columns: repeat(7, 1fr);
|
|
319
306
|
gap: 2px;
|
|
320
307
|
}
|
|
321
|
-
|
|
322
308
|
.n-datepicker-day-header {
|
|
323
309
|
text-align: center;
|
|
324
310
|
font-size: var(--n-text-xs);
|
|
@@ -326,7 +312,6 @@ onBeforeUnmount(() => {
|
|
|
326
312
|
font-weight: var(--n-weight-semibold);
|
|
327
313
|
padding: 0.35rem 0;
|
|
328
314
|
}
|
|
329
|
-
|
|
330
315
|
.n-datepicker-day {
|
|
331
316
|
text-align: center;
|
|
332
317
|
padding: 0.4rem 0;
|
|
@@ -336,32 +321,27 @@ onBeforeUnmount(() => {
|
|
|
336
321
|
cursor: pointer;
|
|
337
322
|
transition: all var(--n-transition-fast);
|
|
338
323
|
}
|
|
339
|
-
|
|
340
324
|
.n-datepicker-day:hover:not(.is-empty) {
|
|
341
325
|
background: var(--n-color-primary-light);
|
|
342
326
|
}
|
|
343
|
-
|
|
344
327
|
.n-datepicker-day.is-empty {
|
|
345
328
|
cursor: default;
|
|
346
329
|
}
|
|
347
|
-
|
|
348
330
|
.n-datepicker-day.is-disabled {
|
|
349
331
|
opacity: 0.4;
|
|
350
332
|
cursor: not-allowed;
|
|
351
333
|
}
|
|
352
|
-
|
|
353
334
|
.n-datepicker-day.is-disabled:hover {
|
|
354
335
|
background: transparent;
|
|
355
336
|
}
|
|
356
|
-
|
|
357
337
|
.n-datepicker-day.is-today {
|
|
358
338
|
font-weight: var(--n-weight-bold);
|
|
359
339
|
color: var(--n-color-primary);
|
|
360
340
|
}
|
|
361
|
-
|
|
362
341
|
.n-datepicker-day.is-selected {
|
|
363
342
|
background: var(--n-color-primary);
|
|
364
343
|
color: white;
|
|
365
344
|
font-weight: var(--n-weight-semibold);
|
|
366
345
|
}
|
|
346
|
+
|
|
367
347
|
</style>
|