@vifui/styles 0.6.0-alpha.10 → 0.6.0-alpha.11

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.
@@ -25,7 +25,6 @@
25
25
  /* Sizing */
26
26
  width: 200px;
27
27
  height: 200px;
28
- margin: 15px;
29
28
 
30
29
  /* Appearance */
31
30
  background: var(--color-neutral-100);
@@ -76,7 +75,7 @@
76
75
  }
77
76
 
78
77
  .vif-upload__input-icon {
79
- @apply size-12;
78
+ @apply size-10;
80
79
  color: var(--muted);
81
80
  transition: all 200ms var(--ease-smooth);
82
81
 
@@ -203,12 +202,15 @@
203
202
  .vif-upload__file-icon-wrapper {
204
203
  @apply flex flex-col items-center justify-center gap-2;
205
204
  @apply p-4;
205
+ @apply w-full h-full;
206
+ @apply overflow-hidden;
206
207
  }
207
208
 
208
209
  .vif-upload__file-icon {
209
- @apply size-16;
210
+ @apply size-12;
210
211
  opacity: 0.2;
211
212
  color: var(--muted);
213
+ flex-shrink: 0;
212
214
  }
213
215
 
214
216
  .vif-upload__file-name {
@@ -217,6 +219,7 @@
217
219
  @apply truncate;
218
220
  @apply px-2;
219
221
  color: var(--foreground);
222
+ word-break: break-word;
220
223
  }
221
224
 
222
225
  /* ============================================ */
@@ -395,7 +398,7 @@
395
398
 
396
399
  .vif-upload__viewer {
397
400
  @apply fixed inset-0;
398
- @apply z-1500;
401
+ @apply z-15000;
399
402
  @apply flex items-center justify-center;
400
403
  @apply p-5;
401
404
 
@@ -430,6 +433,7 @@
430
433
  @apply rounded-full;
431
434
  @apply p-3;
432
435
  @apply border-0;
436
+ @apply z-15001;
433
437
 
434
438
  background: rgba(0, 0, 0, 0.5);
435
439
  cursor: var(--cursor-interactive);
@@ -460,6 +464,22 @@
460
464
  height: 150px;
461
465
  }
462
466
 
467
+ .vif-upload--sm .vif-upload__input-icon {
468
+ @apply size-8;
469
+ }
470
+
471
+ .vif-upload--sm .vif-upload__input-text {
472
+ @apply text-xs;
473
+ }
474
+
475
+ .vif-upload--sm .vif-upload__input-hint {
476
+ @apply text-[10px];
477
+ }
478
+
479
+ .vif-upload--sm .vif-upload__file-icon {
480
+ @apply size-10;
481
+ }
482
+
463
483
  .vif-upload--lg .vif-upload__input-zone {
464
484
  width: 250px;
465
485
  height: 250px;
@@ -470,6 +490,22 @@
470
490
  height: 250px;
471
491
  }
472
492
 
493
+ .vif-upload--lg .vif-upload__input-icon {
494
+ @apply size-14;
495
+ }
496
+
497
+ .vif-upload--lg .vif-upload__input-text {
498
+ @apply text-base;
499
+ }
500
+
501
+ .vif-upload--lg .vif-upload__input-hint {
502
+ @apply text-sm;
503
+ }
504
+
505
+ .vif-upload--lg .vif-upload__file-icon {
506
+ @apply size-16;
507
+ }
508
+
473
509
  /* ============================================ */
474
510
  /* Single Variant (Avatar-style) */
475
511
  /* ============================================ */
@@ -485,10 +521,38 @@
485
521
  @apply rounded-full;
486
522
  width: 120px;
487
523
  height: 120px;
524
+ overflow: hidden;
488
525
  }
489
526
 
490
527
  .vif-upload--single .vif-upload__file-image {
491
528
  @apply rounded-full;
529
+ @apply object-cover;
530
+ @apply w-full h-full;
531
+ }
532
+
533
+ .vif-upload--single .vif-upload__file-icon-wrapper {
534
+ @apply p-2;
535
+ }
536
+
537
+ .vif-upload--single .vif-upload__file-icon {
538
+ @apply size-8;
539
+ }
540
+
541
+ .vif-upload--single .vif-upload__file-name {
542
+ @apply text-[10px];
543
+ @apply px-1;
544
+ }
545
+
546
+ .vif-upload--single .vif-upload__input-icon {
547
+ @apply size-8;
548
+ }
549
+
550
+ .vif-upload--single .vif-upload__input-text {
551
+ @apply text-xs;
552
+ }
553
+
554
+ .vif-upload--single .vif-upload__input-hint {
555
+ @apply text-[10px];
492
556
  }
493
557
 
494
558
  /* ============================================ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vifui/styles",
3
- "version": "0.6.0-alpha.10",
3
+ "version": "0.6.0-alpha.11",
4
4
  "description": "CSS styles and design tokens for VifUI",
5
5
  "license": "MIT",
6
6
  "type": "module",