@spartan-ng/cli 0.0.1-alpha.715 → 0.0.1-alpha.717
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/package.json +1 -1
- package/src/generators/migrate-module-imports/import-map.js +1 -1
- package/src/generators/ui/libs/alert-dialog/files/lib/hlm-alert-dialog-cancel.ts.template +1 -4
- package/src/generators/ui/libs/autocomplete/files/lib/hlm-autocomplete-search.ts.template +3 -15
- package/src/generators/ui/libs/autocomplete/files/lib/hlm-autocomplete.ts.template +3 -15
- package/src/generators/ui/libs/avatar/files/lib/hlm-avatar-fallback.ts.template +1 -1
- package/src/generators/ui/libs/avatar/files/lib/hlm-avatar-image.ts.template +1 -1
- package/src/generators/ui/libs/breadcrumb/files/index.ts.template +0 -5
- package/src/generators/ui/libs/calendar/files/lib/hlm-calendar-multi.ts.template +1 -0
- package/src/generators/ui/libs/calendar/files/lib/hlm-calendar-range.ts.template +1 -0
- package/src/generators/ui/libs/calendar/files/lib/hlm-calendar.ts.template +1 -0
- package/src/generators/ui/libs/combobox/files/lib/hlm-combobox-multiple.ts.template +3 -15
- package/src/generators/ui/libs/combobox/files/lib/hlm-combobox.ts.template +3 -15
- package/src/generators/ui/libs/command/files/lib/hlm-command-dialog.ts.template +2 -2
- package/src/generators/ui/libs/command/files/lib/hlm-command-empty.ts.template +1 -1
- package/src/generators/ui/libs/command/files/lib/hlm-command-group-label.ts.template +1 -1
- package/src/generators/ui/libs/command/files/lib/hlm-command-group.ts.template +1 -1
- package/src/generators/ui/libs/command/files/lib/hlm-command-input.ts.template +7 -6
- package/src/generators/ui/libs/command/files/lib/hlm-command-item.ts.template +1 -1
- package/src/generators/ui/libs/command/files/lib/hlm-command-list.ts.template +1 -1
- package/src/generators/ui/libs/command/files/lib/hlm-command-separator.ts.template +1 -1
- package/src/generators/ui/libs/command/files/lib/hlm-command-shortcut.ts.template +1 -1
- package/src/generators/ui/libs/command/files/lib/hlm-command.ts.template +1 -1
- package/src/generators/ui/libs/context-menu/files/lib/hlm-context-menu-trigger.ts.template +3 -0
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-picker-anchor.ts.template +5 -12
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-picker-multi.ts.template +2 -2
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-picker.ts.template +2 -3
- package/src/generators/ui/libs/date-picker/files/lib/hlm-date-range-picker.ts.template +2 -2
- package/src/generators/ui/libs/dialog/files/lib/hlm-dialog-close.ts.template +1 -1
- package/src/generators/ui/libs/dialog/files/lib/hlm-dialog-content.ts.template +8 -1
- package/src/generators/ui/libs/drawer/files/lib/hlm-drawer-close.ts.template +1 -1
- package/src/generators/ui/libs/dropdown-menu/files/index.ts.template +3 -0
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-checkbox-indicator.ts.template +3 -2
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-checkbox.ts.template +30 -10
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-group.ts.template +1 -3
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-item-sub-indicator.ts.template +2 -2
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-item.ts.template +1 -1
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-label.ts.template +4 -4
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-radio-indicator.ts.template +5 -4
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-radio.ts.template +24 -9
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-separator.ts.template +2 -4
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-shortcut.ts.template +2 -4
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-sub-trigger.ts.template +44 -0
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-sub.ts.template +1 -4
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu-trigger.ts.template +1 -3
- package/src/generators/ui/libs/dropdown-menu/files/lib/hlm-dropdown-menu.ts.template +1 -1
- package/src/generators/ui/libs/input/files/lib/hlm-input.ts.template +1 -0
- package/src/generators/ui/libs/navigation-menu/files/lib/hlm-navigation-menu-content.ts.template +10 -3
- package/src/generators/ui/libs/navigation-menu/files/lib/hlm-navigation-menu-item.ts.template +4 -1
- package/src/generators/ui/libs/navigation-menu/files/lib/hlm-navigation-menu-link.ts.template +4 -4
- package/src/generators/ui/libs/navigation-menu/files/lib/hlm-navigation-menu-list.ts.template +4 -1
- package/src/generators/ui/libs/navigation-menu/files/lib/hlm-navigation-menu-trigger.ts.template +15 -4
- package/src/generators/ui/libs/navigation-menu/files/lib/hlm-navigation-menu.ts.template +6 -1
- package/src/generators/ui/libs/popover/files/index.ts.template +15 -1
- package/src/generators/ui/libs/popover/files/lib/hlm-popover-content.ts.template +1 -0
- package/src/generators/ui/libs/popover/files/lib/hlm-popover-description.ts.template +12 -0
- package/src/generators/ui/libs/popover/files/lib/hlm-popover-header.ts.template +12 -0
- package/src/generators/ui/libs/popover/files/lib/hlm-popover-title.ts.template +12 -0
- package/src/generators/ui/libs/popover/files/lib/hlm-popover-trigger.ts.template +1 -3
- package/src/generators/ui/libs/popover/files/lib/hlm-popover.ts.template +2 -11
- package/src/generators/ui/libs/progress/files/lib/hlm-progress-indicator.ts.template +5 -1
- package/src/generators/ui/libs/progress/files/lib/hlm-progress.ts.template +1 -0
- package/src/generators/ui/libs/select/files/lib/hlm-select-multiple.ts.template +3 -15
- package/src/generators/ui/libs/select/files/lib/hlm-select.ts.template +3 -15
- package/src/generators/ui/libs/sheet/files/lib/hlm-sheet-close.ts.template +1 -1
- package/src/generators/ui/libs/switch/files/lib/hlm-switch-thumb.ts.template +1 -0
- package/src/generators/ui/libs/switch/files/lib/hlm-switch.ts.template +1 -0
- package/src/generators/ui/primitive-deps.js +1 -0
- package/src/generators/ui/primitive-deps.js.map +1 -1
- package/src/generators/ui/primitives.d.ts +1 -1
- package/src/generators/ui/style-luma.css +15 -165
- package/src/generators/ui/style-lyra.css +13 -163
- package/src/generators/ui/style-maia.css +14 -164
- package/src/generators/ui/style-mira.css +13 -163
- package/src/generators/ui/style-nova.css +15 -165
- package/src/generators/ui/style-vega.css +16 -166
- package/src/generators/ui/supported-ui-libraries.json +46 -43
|
@@ -373,10 +373,6 @@
|
|
|
373
373
|
@apply bg-popover text-popover-foreground rounded-none;
|
|
374
374
|
}
|
|
375
375
|
|
|
376
|
-
.spartan-command-dialog {
|
|
377
|
-
@apply rounded-none;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
376
|
.spartan-command-input-wrapper {
|
|
381
377
|
@apply border-b pb-0;
|
|
382
378
|
}
|
|
@@ -386,7 +382,7 @@
|
|
|
386
382
|
}
|
|
387
383
|
|
|
388
384
|
.spartan-command-input-icon {
|
|
389
|
-
@apply
|
|
385
|
+
@apply shrink-0 text-[calc(var(--spacing)*4)] opacity-50;
|
|
390
386
|
}
|
|
391
387
|
|
|
392
388
|
.spartan-command-input {
|
|
@@ -402,7 +398,7 @@
|
|
|
402
398
|
}
|
|
403
399
|
|
|
404
400
|
.spartan-command-group {
|
|
405
|
-
@apply text-foreground **:[
|
|
401
|
+
@apply text-foreground **:data-[slot=command-group-label]:text-muted-foreground overflow-hidden **:data-[slot=command-group-label]:px-2 **:data-[slot=command-group-label]:py-1.5 **:data-[slot=command-group-label]:text-xs;
|
|
406
402
|
}
|
|
407
403
|
|
|
408
404
|
.spartan-command-separator {
|
|
@@ -410,61 +406,15 @@
|
|
|
410
406
|
}
|
|
411
407
|
|
|
412
408
|
.spartan-command-item {
|
|
413
|
-
@apply data-selected:bg-muted data-selected:text-foreground data-selected:*:[ng-icon]:text-foreground relative flex cursor-default items-center gap-2 rounded-none px-2 py-2 text-xs outline-hidden select-none in-data-[slot=dialog-content]:rounded-none! [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
409
|
+
@apply data-selected:bg-muted data-selected:text-foreground data-selected:*:[&>ng-icon]:text-foreground relative flex cursor-default items-center gap-2 rounded-none px-2 py-2 text-xs outline-hidden select-none in-data-[slot=dialog-content]:rounded-none! [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
414
410
|
}
|
|
415
411
|
|
|
416
412
|
.spartan-command-shortcut {
|
|
417
|
-
@apply text-muted-foreground group-data-selected/command-item:text-foreground
|
|
413
|
+
@apply text-muted-foreground group-data-[selected]/command-item:text-foreground ms-auto text-xs tracking-widest;
|
|
418
414
|
}
|
|
419
415
|
|
|
420
416
|
/* MARK: Context Menu */
|
|
421
|
-
|
|
422
|
-
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-36 rounded-none shadow-md ring-1 duration-100;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
.spartan-context-menu-content-logical {
|
|
426
|
-
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.spartan-context-menu-item {
|
|
430
|
-
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[ng-icon]:text-destructive focus:*:[ng-icon]:text-accent-foreground gap-2 rounded-none px-2 py-2 text-xs data-inset:ps-7 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.spartan-context-menu-checkbox-item {
|
|
434
|
-
@apply focus:bg-accent focus:text-accent-foreground gap-2 rounded-none py-2 ps-2 pe-8 text-xs data-inset:ps-7 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
.spartan-context-menu-radio-item {
|
|
438
|
-
@apply focus:bg-accent focus:text-accent-foreground gap-2 rounded-none py-2 ps-2 pe-8 text-xs data-inset:ps-7 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
.spartan-context-menu-item-indicator {
|
|
442
|
-
@apply absolute end-2;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
.spartan-context-menu-label {
|
|
446
|
-
@apply text-muted-foreground px-2 py-2 text-xs data-inset:ps-7;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
.spartan-context-menu-separator {
|
|
450
|
-
@apply bg-border -mx-1 h-px;
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
.spartan-context-menu-shortcut {
|
|
454
|
-
@apply text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-xs tracking-widest;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
.spartan-context-menu-sub-trigger {
|
|
458
|
-
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground gap-2 rounded-none px-2 py-2 text-xs data-inset:ps-7 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
.spartan-context-menu-sub-content {
|
|
462
|
-
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground min-w-32 rounded-none border shadow-lg duration-100;
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
.spartan-context-menu-subcontent {
|
|
466
|
-
@apply shadow-lg;
|
|
467
|
-
}
|
|
417
|
+
/* uses dropdown menu styles */
|
|
468
418
|
|
|
469
419
|
/* MARK: Date Picker */
|
|
470
420
|
.spartan-date-picker-trigger {
|
|
@@ -531,24 +481,20 @@
|
|
|
531
481
|
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-none shadow-md ring-1 duration-100;
|
|
532
482
|
}
|
|
533
483
|
|
|
534
|
-
.spartan-dropdown-menu-content-logical {
|
|
535
|
-
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
484
|
.spartan-dropdown-menu-item {
|
|
539
|
-
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[ng-icon]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-none px-2 py-2 text-xs data-inset:ps-7 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
485
|
+
@apply hover:bg-accent focus:bg-accent hover:text-accent-foreground focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:hover:bg-destructive/10 data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:hover:bg-destructive/20 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:hover:text-destructive data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[ng-icon]:text-destructive not-data-[variant=destructive]:hover:**:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-none px-2 py-2 text-xs data-inset:ps-7 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
540
486
|
}
|
|
541
487
|
|
|
542
488
|
.spartan-dropdown-menu-checkbox-item {
|
|
543
|
-
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-none py-2 ps-2 pe-8 text-xs data-inset:ps-7 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
489
|
+
@apply hover:bg-accent focus:bg-accent hover:text-accent-foreground focus:text-accent-foreground hover:**:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-none py-2 ps-2 pe-8 text-xs data-inset:ps-7 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
544
490
|
}
|
|
545
491
|
|
|
546
492
|
.spartan-dropdown-menu-radio-item {
|
|
547
|
-
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-none py-2 ps-2 pe-8 text-xs data-inset:ps-7 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
493
|
+
@apply hover:bg-accent focus:bg-accent hover:text-accent-foreground focus:text-accent-foreground hover:**:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-none py-2 ps-2 pe-8 text-xs data-inset:ps-7 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
548
494
|
}
|
|
549
495
|
|
|
550
496
|
.spartan-dropdown-menu-item-indicator {
|
|
551
|
-
@apply absolute end-2 flex items-center justify-center;
|
|
497
|
+
@apply absolute end-2 flex items-center justify-center [&_ng-icon]:text-[calc(var(--spacing)*4)];
|
|
552
498
|
}
|
|
553
499
|
|
|
554
500
|
.spartan-dropdown-menu-label {
|
|
@@ -560,21 +506,13 @@
|
|
|
560
506
|
}
|
|
561
507
|
|
|
562
508
|
.spartan-dropdown-menu-shortcut {
|
|
563
|
-
@apply text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
.spartan-dropdown-menu-sub-trigger {
|
|
567
|
-
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-none px-2 py-2 text-xs data-inset:ps-7 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
509
|
+
@apply text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ms-auto text-xs tracking-widest;
|
|
568
510
|
}
|
|
569
511
|
|
|
570
512
|
.spartan-dropdown-menu-sub-content {
|
|
571
513
|
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground min-w-[96px] rounded-none shadow-lg ring-1 duration-100;
|
|
572
514
|
}
|
|
573
515
|
|
|
574
|
-
.spartan-dropdown-menu-subcontent {
|
|
575
|
-
@apply shadow-lg;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
516
|
/* MARK: Empty */
|
|
579
517
|
.spartan-empty {
|
|
580
518
|
@apply gap-4 rounded-none border-dashed p-6;
|
|
@@ -658,10 +596,6 @@
|
|
|
658
596
|
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 bg-popover text-popover-foreground w-64 rounded-none p-2.5 text-xs/relaxed shadow-md ring-1 duration-100;
|
|
659
597
|
}
|
|
660
598
|
|
|
661
|
-
.spartan-hover-card-content-logical {
|
|
662
|
-
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
599
|
/* MARK: Input */
|
|
666
600
|
.spartan-input {
|
|
667
601
|
@apply dark:bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 disabled:bg-input/50 dark:disabled:bg-input/80 h-8 rounded-none border bg-transparent px-2.5 py-1 text-xs transition-colors file:h-6 file:text-xs file:font-medium focus-visible:ring-1 data-[matches-spartan-invalid=true]:ring-1 md:text-xs;
|
|
@@ -788,54 +722,6 @@
|
|
|
788
722
|
@apply hover:bg-muted aria-expanded:bg-muted rounded-none px-1.5 py-[calc(--spacing(0.8))] text-xs font-medium;
|
|
789
723
|
}
|
|
790
724
|
|
|
791
|
-
.spartan-menubar-content {
|
|
792
|
-
@apply bg-popover text-popover-foreground data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-36 rounded-none shadow-md ring-1 duration-100;
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
.spartan-menubar-content-logical {
|
|
796
|
-
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
.spartan-menubar-item {
|
|
800
|
-
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[ng-icon]:text-destructive! not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-none px-2 py-2 text-xs data-disabled:opacity-50 data-inset:ps-8 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
.spartan-menubar-checkbox-item {
|
|
804
|
-
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-none py-2 ps-8 pe-28 text-xs data-inset:ps-8;
|
|
805
|
-
}
|
|
806
|
-
|
|
807
|
-
.spartan-menubar-checkbox-item-indicator {
|
|
808
|
-
@apply start-1.5 size-4 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
.spartan-menubar-radio-item {
|
|
812
|
-
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2 rounded-none py-2 ps-8 pe-2 text-xs data-disabled:opacity-50 data-inset:ps-8 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
.spartan-menubar-radio-item-indicator {
|
|
816
|
-
@apply start-1.5 size-4 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
.spartan-menubar-label {
|
|
820
|
-
@apply px-2 py-2 text-xs data-inset:ps-8;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
.spartan-menubar-separator {
|
|
824
|
-
@apply bg-border;
|
|
825
|
-
}
|
|
826
|
-
|
|
827
|
-
.spartan-menubar-shortcut {
|
|
828
|
-
@apply text-muted-foreground group-focus/menubar-item:text-accent-foreground text-xs tracking-widest;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
.spartan-menubar-sub-trigger {
|
|
832
|
-
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground gap-2 rounded-none px-2 py-2 text-xs data-inset:ps-8 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
.spartan-menubar-sub-content {
|
|
836
|
-
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-32 rounded-none shadow-lg ring-1 duration-100;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
725
|
/* MARK: Navigation Menu */
|
|
840
726
|
.spartan-navigation-menu {
|
|
841
727
|
@apply max-w-max;
|
|
@@ -846,7 +732,7 @@
|
|
|
846
732
|
}
|
|
847
733
|
|
|
848
734
|
.spartan-navigation-menu-trigger {
|
|
849
|
-
@apply bg-background hover:bg-muted focus:bg-muted data-open:hover:bg-muted data-open:focus:bg-muted data-open:bg-muted/50 focus-visible:ring-ring/50
|
|
735
|
+
@apply bg-background hover:bg-muted focus:bg-muted data-open:hover:bg-muted data-open:focus:bg-muted data-open:bg-muted/50 focus-visible:ring-ring/50 rounded-none px-2.5 py-1.5 text-xs font-medium transition-all focus-visible:ring-1 focus-visible:outline-1 disabled:opacity-50;
|
|
850
736
|
}
|
|
851
737
|
|
|
852
738
|
.spartan-navigation-menu-link {
|
|
@@ -854,27 +740,7 @@
|
|
|
854
740
|
}
|
|
855
741
|
|
|
856
742
|
.spartan-navigation-menu-trigger-icon {
|
|
857
|
-
@apply relative top-px ml-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
.spartan-navigation-menu-content {
|
|
861
|
-
@apply data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/10 p-1 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-none group-data-[viewport=false]/navigation-menu:shadow group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300;
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
.spartan-navigation-menu-viewport {
|
|
865
|
-
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-95 data-open:zoom-in-90 ring-foreground/10 rounded-none shadow ring-1 duration-100;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
.spartan-navigation-menu-indicator {
|
|
869
|
-
@apply data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in;
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
.spartan-navigation-menu-indicator-arrow {
|
|
873
|
-
@apply bg-border rounded-none shadow-md;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
.spartan-navigation-menu-positioner {
|
|
877
|
-
@apply transition-[top,left,right,bottom] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0;
|
|
743
|
+
@apply relative top-px ml-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180;
|
|
878
744
|
}
|
|
879
745
|
|
|
880
746
|
.spartan-navigation-menu-popup {
|
|
@@ -912,10 +778,6 @@
|
|
|
912
778
|
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 flex flex-col gap-2.5 rounded-none p-2.5 text-xs shadow-md ring-1 duration-100;
|
|
913
779
|
}
|
|
914
780
|
|
|
915
|
-
.spartan-popover-content-logical {
|
|
916
|
-
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
781
|
.spartan-popover-header {
|
|
920
782
|
@apply flex flex-col gap-1 text-xs;
|
|
921
783
|
}
|
|
@@ -946,7 +808,7 @@
|
|
|
946
808
|
}
|
|
947
809
|
|
|
948
810
|
.spartan-progress-value {
|
|
949
|
-
@apply text-muted-foreground
|
|
811
|
+
@apply text-muted-foreground ms-auto text-xs tabular-nums;
|
|
950
812
|
}
|
|
951
813
|
|
|
952
814
|
/* MARK: Radio Group */
|
|
@@ -1314,18 +1176,6 @@
|
|
|
1314
1176
|
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-none px-3 py-1.5 text-xs;
|
|
1315
1177
|
}
|
|
1316
1178
|
|
|
1317
|
-
.spartan-tooltip-content-logical {
|
|
1318
|
-
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
1319
|
-
}
|
|
1320
|
-
|
|
1321
|
-
.spartan-tooltip-arrow {
|
|
1322
|
-
@apply size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-none;
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
|
-
.spartan-tooltip-arrow-logical {
|
|
1326
|
-
@apply data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2;
|
|
1327
|
-
}
|
|
1328
|
-
|
|
1329
1179
|
/* MARK: Input Group */
|
|
1330
1180
|
.spartan-input-group {
|
|
1331
1181
|
@apply border-input dark:bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][data-matches-spartan-invalid=true]]:ring-destructive/20 has-[[data-slot][data-matches-spartan-invalid=true]]:border-destructive dark:has-[[data-slot][data-matches-spartan-invalid=true]]:ring-destructive/40 has-disabled:bg-input/50 dark:has-disabled:bg-input/80 h-8 rounded-none border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-1 has-[[data-slot][data-matches-spartan-invalid=true]]:ring-1 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5;
|
|
@@ -391,10 +391,6 @@
|
|
|
391
391
|
@apply bg-popover text-popover-foreground rounded-4xl p-1;
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
.spartan-command-dialog {
|
|
395
|
-
@apply rounded-4xl! p-0;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
394
|
.spartan-command-input-wrapper {
|
|
399
395
|
@apply p-1 pb-0;
|
|
400
396
|
}
|
|
@@ -404,7 +400,7 @@
|
|
|
404
400
|
}
|
|
405
401
|
|
|
406
402
|
.spartan-command-input-icon {
|
|
407
|
-
@apply
|
|
403
|
+
@apply shrink-0 text-[calc(var(--spacing)*4)] opacity-50;
|
|
408
404
|
}
|
|
409
405
|
|
|
410
406
|
.spartan-command-input {
|
|
@@ -420,7 +416,7 @@
|
|
|
420
416
|
}
|
|
421
417
|
|
|
422
418
|
.spartan-command-group {
|
|
423
|
-
@apply text-foreground **:[
|
|
419
|
+
@apply text-foreground **:data-[slot=command-group-label]:text-muted-foreground overflow-hidden p-1 **:data-[slot=command-group-label]:px-3 **:data-[slot=command-group-label]:py-2 **:data-[slot=command-group-label]:text-xs **:data-[slot=command-group-label]:font-medium;
|
|
424
420
|
}
|
|
425
421
|
|
|
426
422
|
.spartan-command-separator {
|
|
@@ -428,61 +424,15 @@
|
|
|
428
424
|
}
|
|
429
425
|
|
|
430
426
|
.spartan-command-item {
|
|
431
|
-
@apply data-selected:bg-muted data-selected:text-foreground data-selected:*:[ng-icon]:text-foreground relative flex cursor-default items-center gap-2 rounded-lg px-3 py-2 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-2xl [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
427
|
+
@apply data-selected:bg-muted data-selected:text-foreground data-selected:*:[&>ng-icon]:text-foreground relative flex cursor-default items-center gap-2 rounded-lg px-3 py-2 text-sm outline-hidden select-none in-data-[slot=dialog-content]:rounded-2xl [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
432
428
|
}
|
|
433
429
|
|
|
434
430
|
.spartan-command-shortcut {
|
|
435
|
-
@apply text-muted-foreground group-data-selected/command-item:text-foreground
|
|
431
|
+
@apply text-muted-foreground group-data-[selected]/command-item:text-foreground ms-auto text-xs tracking-widest;
|
|
436
432
|
}
|
|
437
433
|
|
|
438
434
|
/* MARK: Context Menu */
|
|
439
|
-
|
|
440
|
-
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 bg-popover text-popover-foreground min-w-48 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.spartan-context-menu-content-logical {
|
|
444
|
-
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
445
|
-
}
|
|
446
|
-
|
|
447
|
-
.spartan-context-menu-item {
|
|
448
|
-
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[ng-icon]:text-destructive focus:*:[ng-icon]:text-accent-foreground gap-2.5 rounded-xl px-3 py-2 text-sm data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
.spartan-context-menu-checkbox-item {
|
|
452
|
-
@apply focus:bg-accent focus:text-accent-foreground gap-2 rounded-xl py-2 ps-3 pe-8 text-sm data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
.spartan-context-menu-radio-item {
|
|
456
|
-
@apply focus:bg-accent focus:text-accent-foreground gap-2 rounded-sm py-1.5 ps-2 pe-8 text-sm data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
.spartan-context-menu-item-indicator {
|
|
460
|
-
@apply absolute end-2;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.spartan-context-menu-label {
|
|
464
|
-
@apply text-muted-foreground px-3 py-2.5 text-xs data-inset:ps-9.5;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
.spartan-context-menu-separator {
|
|
468
|
-
@apply bg-border/50 -mx-1 my-1 h-px;
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
.spartan-context-menu-shortcut {
|
|
472
|
-
@apply text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-xs tracking-widest;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
.spartan-context-menu-sub-trigger {
|
|
476
|
-
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground rounded-xl px-3 py-2 text-sm data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
.spartan-context-menu-sub-content {
|
|
480
|
-
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 bg-popover text-popover-foreground min-w-32 rounded-md border p-1 shadow-lg duration-100;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
.spartan-context-menu-subcontent {
|
|
484
|
-
@apply shadow-lg;
|
|
485
|
-
}
|
|
435
|
+
/* uses dropdown menu styles */
|
|
486
436
|
|
|
487
437
|
/* MARK: Date Picker */
|
|
488
438
|
.spartan-date-picker-trigger {
|
|
@@ -550,27 +500,23 @@
|
|
|
550
500
|
|
|
551
501
|
/* MARK: Dropdown Menu */
|
|
552
502
|
.spartan-dropdown-menu-content {
|
|
553
|
-
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 bg-popover text-popover-foreground min-w-48 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
554
|
-
}
|
|
555
|
-
|
|
556
|
-
.spartan-dropdown-menu-content-logical {
|
|
557
|
-
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
503
|
+
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 bg-popover text-popover-foreground dark:ring-foreground/10 min-w-48 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
558
504
|
}
|
|
559
505
|
|
|
560
506
|
.spartan-dropdown-menu-item {
|
|
561
|
-
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[ng-icon]:text-destructive not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2.5 rounded-xl px-3 py-2 text-sm data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
507
|
+
@apply hover:bg-accent focus:bg-accent hover:text-accent-foreground focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:hover:bg-destructive/10 data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:hover:bg-destructive/20 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:hover:text-destructive data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[ng-icon]:text-destructive not-data-[variant=destructive]:hover:**:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2.5 rounded-xl px-3 py-2 text-sm data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
562
508
|
}
|
|
563
509
|
|
|
564
510
|
.spartan-dropdown-menu-checkbox-item {
|
|
565
|
-
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-xl py-2 ps-3 pe-8 text-sm data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
511
|
+
@apply hover:bg-accent focus:bg-accent hover:text-accent-foreground focus:text-accent-foreground hover:**:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-xl py-2 ps-3 pe-8 text-sm data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
566
512
|
}
|
|
567
513
|
|
|
568
514
|
.spartan-dropdown-menu-radio-item {
|
|
569
|
-
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-xl py-2 ps-3 pe-8 text-sm data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
515
|
+
@apply hover:bg-accent focus:bg-accent hover:text-accent-foreground focus:text-accent-foreground hover:**:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-xl py-2 ps-3 pe-8 text-sm data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
570
516
|
}
|
|
571
517
|
|
|
572
518
|
.spartan-dropdown-menu-item-indicator {
|
|
573
|
-
@apply absolute end-2 flex items-center justify-center;
|
|
519
|
+
@apply absolute end-2 flex items-center justify-center [&_ng-icon]:text-[calc(var(--spacing)*4)];
|
|
574
520
|
}
|
|
575
521
|
|
|
576
522
|
.spartan-dropdown-menu-label {
|
|
@@ -582,21 +528,13 @@
|
|
|
582
528
|
}
|
|
583
529
|
|
|
584
530
|
.spartan-dropdown-menu-shortcut {
|
|
585
|
-
@apply text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
.spartan-dropdown-menu-sub-trigger {
|
|
589
|
-
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2 rounded-xl px-3 py-2 text-sm data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
531
|
+
@apply text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ms-auto text-xs tracking-widest;
|
|
590
532
|
}
|
|
591
533
|
|
|
592
534
|
.spartan-dropdown-menu-sub-content {
|
|
593
535
|
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 bg-popover text-popover-foreground min-w-36 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
594
536
|
}
|
|
595
537
|
|
|
596
|
-
.spartan-dropdown-menu-subcontent {
|
|
597
|
-
@apply shadow-lg;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
538
|
/* MARK: Empty */
|
|
601
539
|
.spartan-empty {
|
|
602
540
|
@apply gap-4 rounded-lg border-dashed p-12;
|
|
@@ -680,10 +618,6 @@
|
|
|
680
618
|
@apply data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 bg-popover text-popover-foreground w-72 rounded-2xl p-4 text-sm shadow-2xl ring-1 duration-100;
|
|
681
619
|
}
|
|
682
620
|
|
|
683
|
-
.spartan-hover-card-content-logical {
|
|
684
|
-
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
685
|
-
}
|
|
686
|
-
|
|
687
621
|
/* MARK: Input */
|
|
688
622
|
.spartan-input {
|
|
689
623
|
@apply bg-input/30 border-input focus-visible:border-ring focus-visible:ring-ring/50 data-[matches-spartan-invalid=true]:ring-destructive/20 dark:data-[matches-spartan-invalid=true]:ring-destructive/40 data-[matches-spartan-invalid=true]:border-destructive dark:data-[matches-spartan-invalid=true]:border-destructive/50 h-9 rounded-4xl border px-3 py-1 text-base transition-colors file:h-7 file:text-sm file:font-medium focus-visible:ring-3 data-[matches-spartan-invalid=true]:ring-3 md:text-sm;
|
|
@@ -810,54 +744,6 @@
|
|
|
810
744
|
@apply hover:bg-muted aria-expanded:bg-muted rounded-xl px-2.5 py-1 text-sm font-medium;
|
|
811
745
|
}
|
|
812
746
|
|
|
813
|
-
.spartan-menubar-content {
|
|
814
|
-
@apply bg-popover text-popover-foreground data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 min-w-48 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
.spartan-menubar-content-logical {
|
|
818
|
-
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
.spartan-menubar-item {
|
|
822
|
-
@apply focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[ng-icon]:text-destructive! not-data-[variant=destructive]:focus:**:text-accent-foreground gap-2.5 rounded-xl px-3 py-2 text-sm data-disabled:opacity-50 data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
823
|
-
}
|
|
824
|
-
|
|
825
|
-
.spartan-menubar-checkbox-item {
|
|
826
|
-
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-xl py-2 ps-9.5 pe-3 text-sm data-inset:ps-9.5;
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
.spartan-menubar-checkbox-item-indicator {
|
|
830
|
-
@apply start-3 size-4 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
831
|
-
}
|
|
832
|
-
|
|
833
|
-
.spartan-menubar-radio-item {
|
|
834
|
-
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-xl py-2 ps-9.5 pe-3 text-sm data-disabled:opacity-50 data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
.spartan-menubar-radio-item-indicator {
|
|
838
|
-
@apply start-3 size-4 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
.spartan-menubar-label {
|
|
842
|
-
@apply text-muted-foreground px-3.5 py-2.5 text-xs data-inset:ps-9.5;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
.spartan-menubar-separator {
|
|
846
|
-
@apply bg-border/50;
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
.spartan-menubar-shortcut {
|
|
850
|
-
@apply text-muted-foreground group-focus/menubar-item:text-accent-foreground text-xs tracking-widest;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
.spartan-menubar-sub-trigger {
|
|
854
|
-
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground gap-2 rounded-xl px-3 py-2 text-sm data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
.spartan-menubar-sub-content {
|
|
858
|
-
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 min-w-32 rounded-2xl p-1 shadow-2xl ring-1 duration-100;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
747
|
/* MARK: Navigation Menu */
|
|
862
748
|
.spartan-navigation-menu {
|
|
863
749
|
@apply max-w-max;
|
|
@@ -868,37 +754,17 @@
|
|
|
868
754
|
}
|
|
869
755
|
|
|
870
756
|
.spartan-navigation-menu-trigger {
|
|
871
|
-
@apply bg-background hover:bg-muted focus:bg-muted data-open:hover:bg-muted data-open:focus:bg-muted data-open:bg-muted/50 focus-visible:ring-ring/50
|
|
757
|
+
@apply bg-background hover:bg-muted focus:bg-muted data-open:hover:bg-muted data-open:focus:bg-muted data-open:bg-muted/50 focus-visible:ring-ring/50 rounded-2xl px-4.5 py-2.5 text-sm font-medium transition-all focus-visible:ring-[3px] focus-visible:outline-1 disabled:opacity-50;
|
|
872
758
|
}
|
|
873
759
|
|
|
874
760
|
.spartan-navigation-menu-trigger-icon {
|
|
875
|
-
@apply relative top-px ml-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
.spartan-navigation-menu-content {
|
|
879
|
-
@apply data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 group-data-[viewport=false]/navigation-menu:bg-popover group-data-[viewport=false]/navigation-menu:text-popover-foreground group-data-[viewport=false]/navigation-menu:data-open:animate-in group-data-[viewport=false]/navigation-menu:data-closed:animate-out group-data-[viewport=false]/navigation-menu:data-closed:zoom-out-95 group-data-[viewport=false]/navigation-menu:data-open:zoom-in-95 group-data-[viewport=false]/navigation-menu:data-open:fade-in-0 group-data-[viewport=false]/navigation-menu:data-closed:fade-out-0 group-data-[viewport=false]/navigation-menu:ring-foreground/5 p-2.5 pe-3 ease-[cubic-bezier(0.22,1,0.36,1)] group-data-[viewport=false]/navigation-menu:rounded-2xl group-data-[viewport=false]/navigation-menu:shadow-2xl group-data-[viewport=false]/navigation-menu:ring-1 group-data-[viewport=false]/navigation-menu:duration-300;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
.spartan-navigation-menu-viewport {
|
|
883
|
-
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:zoom-out-95 data-open:zoom-in-90 ring-foreground/5 rounded-2xl shadow-2xl ring-1 duration-100;
|
|
761
|
+
@apply relative top-px ml-1 size-3 transition duration-300 group-data-open/navigation-menu-trigger:rotate-180;
|
|
884
762
|
}
|
|
885
763
|
|
|
886
764
|
.spartan-navigation-menu-link {
|
|
887
765
|
@apply data-[active=true]:focus:bg-muted data-[active=true]:hover:bg-muted data-[active=true]:bg-muted/50 focus-visible:ring-ring/50 hover:bg-muted focus:bg-muted flex items-center gap-1.5 rounded-xl p-3 text-sm transition-all outline-none focus-visible:ring-[3px] focus-visible:outline-1 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
888
766
|
}
|
|
889
767
|
|
|
890
|
-
.spartan-navigation-menu-indicator {
|
|
891
|
-
@apply data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
.spartan-navigation-menu-indicator-arrow {
|
|
895
|
-
@apply bg-border rounded-tl-sm shadow-md;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
.spartan-navigation-menu-positioner {
|
|
899
|
-
@apply transition-[top,left,right,bottom] duration-300 ease-[cubic-bezier(0.22,1,0.36,1)] data-[side=bottom]:before:top-[-10px] data-[side=bottom]:before:right-0 data-[side=bottom]:before:left-0;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
768
|
.spartan-navigation-menu-popup {
|
|
903
769
|
@apply bg-popover text-popover-foreground ring-foreground/5 rounded-2xl shadow ring-1 transition-all ease-[cubic-bezier(0.22,1,0.36,1)] outline-none data-ending-style:scale-90 data-ending-style:opacity-0 data-ending-style:duration-150 data-starting-style:scale-90 data-starting-style:opacity-0;
|
|
904
770
|
}
|
|
@@ -934,10 +800,6 @@
|
|
|
934
800
|
@apply bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 flex flex-col gap-4 rounded-2xl p-4 text-sm shadow-2xl ring-1 duration-100;
|
|
935
801
|
}
|
|
936
802
|
|
|
937
|
-
.spartan-popover-content-logical {
|
|
938
|
-
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
939
|
-
}
|
|
940
|
-
|
|
941
803
|
.spartan-popover-header {
|
|
942
804
|
@apply flex flex-col gap-1 text-sm;
|
|
943
805
|
}
|
|
@@ -968,7 +830,7 @@
|
|
|
968
830
|
}
|
|
969
831
|
|
|
970
832
|
.spartan-progress-value {
|
|
971
|
-
@apply text-muted-foreground
|
|
833
|
+
@apply text-muted-foreground ms-auto text-sm tabular-nums;
|
|
972
834
|
}
|
|
973
835
|
|
|
974
836
|
/* MARK: Radio Group */
|
|
@@ -1336,18 +1198,6 @@
|
|
|
1336
1198
|
@apply data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 rounded-2xl px-3 py-1.5 text-xs **:data-[slot=kbd]:rounded-4xl;
|
|
1337
1199
|
}
|
|
1338
1200
|
|
|
1339
|
-
.spartan-tooltip-content-logical {
|
|
1340
|
-
@apply data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2;
|
|
1341
|
-
}
|
|
1342
|
-
|
|
1343
|
-
.spartan-tooltip-arrow {
|
|
1344
|
-
@apply size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=left]:translate-x-[-1.5px] data-[side=right]:translate-x-[1.5px];
|
|
1345
|
-
}
|
|
1346
|
-
|
|
1347
|
-
.spartan-tooltip-arrow-logical {
|
|
1348
|
-
@apply data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:translate-x-[1.5px] data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:translate-x-[-1.5px] data-[side=inline-start]:-translate-y-1/2;
|
|
1349
|
-
}
|
|
1350
|
-
|
|
1351
1201
|
/* MARK: Input Group */
|
|
1352
1202
|
.spartan-input-group {
|
|
1353
1203
|
@apply border-input bg-input/30 has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][data-matches-spartan-invalid=true]]:ring-destructive/20 has-[[data-slot][data-matches-spartan-invalid=true]]:border-destructive dark:has-[[data-slot][data-matches-spartan-invalid=true]]:ring-destructive/40 h-9 rounded-4xl border transition-colors in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-data-[align=block-end]:rounded-2xl has-data-[align=block-start]:rounded-2xl has-[[data-slot=input-group-control]:focus-visible]:ring-3 has-[[data-slot][data-matches-spartan-invalid=true]]:ring-3 has-[textarea]:rounded-xl has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pe-1.5 has-[>[data-align=inline-start]]:[&>input]:ps-1.5;
|