@spartan-ng/cli 0.0.1-alpha.715 → 0.0.1-alpha.716
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/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/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/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/popover/files/lib/hlm-popover-content.ts.template +1 -0
- package/src/generators/ui/libs/popover/files/lib/hlm-popover.ts.template +1 -0
- 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/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 +13 -123
- package/src/generators/ui/style-lyra.css +11 -121
- package/src/generators/ui/style-maia.css +12 -122
- package/src/generators/ui/style-mira.css +11 -121
- package/src/generators/ui/style-nova.css +13 -123
- package/src/generators/ui/style-vega.css +14 -124
- package/src/generators/ui/supported-ui-libraries.json +42 -42
|
@@ -5,6 +5,7 @@ import { classes } from '<%- importAlias %>/utils';
|
|
|
5
5
|
@Directive({
|
|
6
6
|
selector: 'hlm-progress,[hlmProgress]',
|
|
7
7
|
hostDirectives: [{ directive: BrnProgress, inputs: ['value', 'max', 'getValueLabel'] }],
|
|
8
|
+
host: { 'data-slot': 'progress' },
|
|
8
9
|
})
|
|
9
10
|
export class HlmProgress {
|
|
10
11
|
constructor() {
|
|
@@ -28,6 +28,7 @@ export const HLM_SWITCH_VALUE_ACCESSOR = {
|
|
|
28
28
|
providers: [HLM_SWITCH_VALUE_ACCESSOR],
|
|
29
29
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
30
|
host: {
|
|
31
|
+
'data-slot': 'switch',
|
|
31
32
|
class: 'contents',
|
|
32
33
|
'[attr.aria-label]': 'null',
|
|
33
34
|
'[attr.aria-labelledby]': 'null',
|
|
@@ -22,6 +22,7 @@ exports.primitiveDependencies = {
|
|
|
22
22
|
'context-menu': ['utils', 'dropdown-menu'],
|
|
23
23
|
'date-picker': ['utils', 'calendar', 'icon', 'popover'],
|
|
24
24
|
dialog: ['utils', 'icon'],
|
|
25
|
+
drawer: ['utils'],
|
|
25
26
|
'dropdown-menu': ['utils', 'icon'],
|
|
26
27
|
empty: ['utils'],
|
|
27
28
|
field: ['utils', 'label', 'separator'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitive-deps.js","sourceRoot":"","sources":["../../../../../../libs/cli/src/generators/ui/primitive-deps.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAmC;IACpE,SAAS,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IAC5B,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,CAAC,OAAO,EAAE,Q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ACrB,KAAK,EAAE,EAAE;CACT,CAAC;AAEK,MAAM,sBAAsB,GAAG,CAAC,UAAuB,EAAe,EAAE;IAC9E,MAAM,mBAAmB,GAAG,IAAI,GAAG,EAAa,CAAC;IAEjD,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACpC,MAAM,IAAI,GAAG,6BAAqB,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC;QACpD,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACxB,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC/B,2FAA2F;gBAC3F,mBAAmB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBAC7B,IAAA,8BAAsB,EAAC,CAAC,GAAG,CAAC,CAAC;qBAC3B,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,mBAAmB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;qBAC7F,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,mBAAmB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9C,CAAC;QACF,CAAC;IACF,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;AACxC,CAAC,CAAC;AAjBW,QAAA,sBAAsB,0BAiBjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type Primitive = 'accordion' | 'alert' | 'alert-dialog' | 'aspect-ratio' | 'autocomplete' | 'avatar' | 'badge' | 'breadcrumb' | 'button' | 'button-group' | 'calendar' | 'card' | 'carousel' | 'checkbox' | 'collapsible' | 'combobox' | 'command' | 'context-menu' | 'date-picker' | 'dialog' | 'dropdown-menu' | 'empty' | 'field' | 'hover-card' | 'icon' | 'input' | 'input-group' | 'input-otp' | 'item' | 'kbd' | 'label' | 'menubar' | 'native-select' | 'navigation-menu' | 'pagination' | 'popover' | 'progress' | 'radio-group' | 'resizable' | 'scroll-area' | 'select' | 'separator' | 'sheet' | 'sidebar' | 'skeleton' | 'slider' | 'sonner' | 'spinner' | 'switch' | 'table' | 'tabs' | 'textarea' | 'toggle' | 'toggle-group' | 'tooltip' | 'typography' | 'utils';
|
|
1
|
+
export type Primitive = 'accordion' | 'alert' | 'alert-dialog' | 'aspect-ratio' | 'autocomplete' | 'avatar' | 'badge' | 'breadcrumb' | 'button' | 'button-group' | 'calendar' | 'card' | 'carousel' | 'checkbox' | 'collapsible' | 'combobox' | 'command' | 'context-menu' | 'date-picker' | 'dialog' | 'drawer' | 'dropdown-menu' | 'empty' | 'field' | 'hover-card' | 'icon' | 'input' | 'input-group' | 'input-otp' | 'item' | 'kbd' | 'label' | 'menubar' | 'native-select' | 'navigation-menu' | 'pagination' | 'popover' | 'progress' | 'radio-group' | 'resizable' | 'scroll-area' | 'select' | 'separator' | 'sheet' | 'sidebar' | 'skeleton' | 'slider' | 'sonner' | 'spinner' | 'switch' | 'table' | 'tabs' | 'textarea' | 'toggle' | 'toggle-group' | 'tooltip' | 'typography' | 'utils';
|
|
@@ -615,10 +615,6 @@
|
|
|
615
615
|
@apply bg-popover text-popover-foreground rounded-4xl p-1;
|
|
616
616
|
}
|
|
617
617
|
|
|
618
|
-
.spartan-command-dialog {
|
|
619
|
-
@apply rounded-4xl! p-0;
|
|
620
|
-
}
|
|
621
|
-
|
|
622
618
|
.spartan-command-input-wrapper {
|
|
623
619
|
@apply p-1 pb-0;
|
|
624
620
|
}
|
|
@@ -628,7 +624,7 @@
|
|
|
628
624
|
}
|
|
629
625
|
|
|
630
626
|
.spartan-command-input-icon {
|
|
631
|
-
@apply
|
|
627
|
+
@apply shrink-0 text-[calc(var(--spacing)*4)] opacity-50;
|
|
632
628
|
}
|
|
633
629
|
|
|
634
630
|
.spartan-command-input {
|
|
@@ -644,7 +640,7 @@
|
|
|
644
640
|
}
|
|
645
641
|
|
|
646
642
|
.spartan-command-group {
|
|
647
|
-
@apply text-foreground **:[
|
|
643
|
+
@apply text-foreground **:data-[slot=command-group-label]:text-muted-foreground overflow-hidden p-1.5 **: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;
|
|
648
644
|
}
|
|
649
645
|
|
|
650
646
|
.spartan-command-separator {
|
|
@@ -652,61 +648,15 @@
|
|
|
652
648
|
}
|
|
653
649
|
|
|
654
650
|
.spartan-command-item {
|
|
655
|
-
@apply data-selected:bg-muted data-selected:text-foreground data-selected:*:[ng-icon]:text-foreground relative flex cursor-default items-center gap-2 rounded-2xl px-3 py-2 text-sm font-medium outline-hidden select-none in-data-[slot=dialog-content]:rounded-3xl [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
651
|
+
@apply data-selected:bg-muted data-selected:text-foreground data-selected:*:[&>ng-icon]:text-foreground relative flex cursor-default items-center gap-2 rounded-2xl px-3 py-2 text-sm font-medium outline-hidden select-none in-data-[slot=dialog-content]:rounded-3xl [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
656
652
|
}
|
|
657
653
|
|
|
658
654
|
.spartan-command-shortcut {
|
|
659
|
-
@apply text-muted-foreground group-data-selected/command-item:text-foreground
|
|
655
|
+
@apply text-muted-foreground group-data-[selected]/command-item:text-foreground ms-auto text-xs tracking-widest;
|
|
660
656
|
}
|
|
661
657
|
|
|
662
658
|
/* MARK: Context Menu */
|
|
663
|
-
|
|
664
|
-
@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-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 bg-popover text-popover-foreground min-w-48 rounded-3xl p-1.5 shadow-lg ring-1 duration-100;
|
|
665
|
-
}
|
|
666
|
-
|
|
667
|
-
.spartan-context-menu-content-logical {
|
|
668
|
-
@apply data-[side=inline-start]:slide-in-from-end-2 data-[side=inline-end]:slide-in-from-start-2;
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
.spartan-context-menu-item {
|
|
672
|
-
@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-2xl px-3 py-2 text-sm font-medium data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
673
|
-
}
|
|
674
|
-
|
|
675
|
-
.spartan-context-menu-checkbox-item {
|
|
676
|
-
@apply focus:bg-accent focus:text-accent-foreground gap-2.5 rounded-2xl py-2 ps-3 pe-8 text-sm font-medium data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
.spartan-context-menu-radio-item {
|
|
680
|
-
@apply focus:bg-accent focus:text-accent-foreground gap-2.5 rounded-2xl py-2 ps-3 pe-8 text-sm font-medium data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
681
|
-
}
|
|
682
|
-
|
|
683
|
-
.spartan-context-menu-item-indicator {
|
|
684
|
-
@apply absolute end-2;
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
.spartan-context-menu-label {
|
|
688
|
-
@apply text-muted-foreground px-3 py-2.5 text-xs data-inset:ps-9.5;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
.spartan-context-menu-separator {
|
|
692
|
-
@apply bg-border/50 -mx-1.5 my-1.5 h-px;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
.spartan-context-menu-shortcut {
|
|
696
|
-
@apply text-muted-foreground group-focus/context-menu-item:text-accent-foreground ml-auto text-xs tracking-widest;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
.spartan-context-menu-sub-trigger {
|
|
700
|
-
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground rounded-2xl px-3 py-2 text-sm font-medium data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
.spartan-context-menu-sub-content {
|
|
704
|
-
@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-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 bg-popover text-popover-foreground min-w-32 rounded-3xl p-1.5 shadow-lg ring-1 duration-100;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
.spartan-context-menu-subcontent {
|
|
708
|
-
@apply shadow-lg;
|
|
709
|
-
}
|
|
659
|
+
/* uses dropdown menu styles */
|
|
710
660
|
|
|
711
661
|
/* MARK: Date Picker */
|
|
712
662
|
.spartan-date-picker-trigger {
|
|
@@ -774,27 +724,23 @@
|
|
|
774
724
|
|
|
775
725
|
/* MARK: Dropdown Menu */
|
|
776
726
|
.spartan-dropdown-menu-content {
|
|
777
|
-
@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-
|
|
778
|
-
}
|
|
779
|
-
|
|
780
|
-
.spartan-dropdown-menu-content-logical {
|
|
781
|
-
@apply data-[side=inline-start]:slide-in-from-end-2 data-[side=inline-end]:slide-in-from-start-2;
|
|
727
|
+
@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 dark:ring-foreground/10 bg-popover text-popover-foreground min-w-48 rounded-3xl p-1.5 shadow-lg ring-1 duration-100;
|
|
782
728
|
}
|
|
783
729
|
|
|
784
730
|
.spartan-dropdown-menu-item {
|
|
785
|
-
@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-2xl px-3 py-2 text-sm font-medium data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
731
|
+
@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-2xl px-3 py-2 text-sm font-medium data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
786
732
|
}
|
|
787
733
|
|
|
788
734
|
.spartan-dropdown-menu-checkbox-item {
|
|
789
|
-
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-2xl py-2 ps-3 pe-8 text-sm font-medium data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
735
|
+
@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-2xl py-2 ps-3 pe-8 text-sm font-medium data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
790
736
|
}
|
|
791
737
|
|
|
792
738
|
.spartan-dropdown-menu-radio-item {
|
|
793
|
-
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-2xl py-2 ps-3 pe-8 text-sm font-medium data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
739
|
+
@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-2xl py-2 ps-3 pe-8 text-sm font-medium data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
794
740
|
}
|
|
795
741
|
|
|
796
742
|
.spartan-dropdown-menu-item-indicator {
|
|
797
|
-
@apply absolute end-2 flex items-center justify-center;
|
|
743
|
+
@apply absolute end-2 flex items-center justify-center [&_ng-icon]:text-[calc(var(--spacing)*4)];
|
|
798
744
|
}
|
|
799
745
|
|
|
800
746
|
.spartan-dropdown-menu-label {
|
|
@@ -806,19 +752,11 @@
|
|
|
806
752
|
}
|
|
807
753
|
|
|
808
754
|
.spartan-dropdown-menu-shortcut {
|
|
809
|
-
@apply text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground
|
|
810
|
-
}
|
|
811
|
-
|
|
812
|
-
.spartan-dropdown-menu-sub-trigger {
|
|
813
|
-
@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-2xl px-3 py-2 text-sm font-medium data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
755
|
+
@apply text-muted-foreground group-focus/dropdown-menu-item:text-accent-foreground ms-auto text-xs tracking-widest;
|
|
814
756
|
}
|
|
815
757
|
|
|
816
758
|
.spartan-dropdown-menu-sub-content {
|
|
817
|
-
@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-
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
.spartan-dropdown-menu-subcontent {
|
|
821
|
-
@apply shadow-lg;
|
|
759
|
+
@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 dark:ring-foreground/10 bg-popover text-popover-foreground min-w-36 rounded-3xl p-1.5 shadow-lg ring-1 duration-100;
|
|
822
760
|
}
|
|
823
761
|
|
|
824
762
|
/* MARK: Item */
|
|
@@ -921,54 +859,6 @@
|
|
|
921
859
|
@apply hover:bg-muted aria-expanded:bg-muted rounded-2xl px-2 py-0.75 text-sm font-medium;
|
|
922
860
|
}
|
|
923
861
|
|
|
924
|
-
.spartan-menubar-content {
|
|
925
|
-
@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-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 min-w-48 rounded-3xl p-1.5 shadow-lg ring-1 duration-100;
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
.spartan-menubar-content-logical {
|
|
929
|
-
@apply data-[side=inline-start]:slide-in-from-end-2 data-[side=inline-end]:slide-in-from-start-2;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
.spartan-menubar-item {
|
|
933
|
-
@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-2xl px-3 py-2 text-sm font-medium data-disabled:opacity-50 data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
.spartan-menubar-checkbox-item {
|
|
937
|
-
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-2xl py-2 ps-9.5 pe-3 text-sm font-medium data-inset:ps-9.5;
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
.spartan-menubar-checkbox-item-indicator {
|
|
941
|
-
@apply start-3 size-4 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
942
|
-
}
|
|
943
|
-
|
|
944
|
-
.spartan-menubar-radio-item {
|
|
945
|
-
@apply focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground gap-2.5 rounded-2xl py-2 ps-9.5 pe-3 text-sm font-medium data-disabled:opacity-50 data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
946
|
-
}
|
|
947
|
-
|
|
948
|
-
.spartan-menubar-radio-item-indicator {
|
|
949
|
-
@apply start-3 size-4 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
.spartan-menubar-label {
|
|
953
|
-
@apply text-muted-foreground px-3.5 py-2.5 text-xs data-inset:ps-9.5;
|
|
954
|
-
}
|
|
955
|
-
|
|
956
|
-
.spartan-menubar-separator {
|
|
957
|
-
@apply bg-border/50;
|
|
958
|
-
}
|
|
959
|
-
|
|
960
|
-
.spartan-menubar-shortcut {
|
|
961
|
-
@apply text-muted-foreground group-focus/menubar-item:text-accent-foreground text-xs tracking-widest;
|
|
962
|
-
}
|
|
963
|
-
|
|
964
|
-
.spartan-menubar-sub-trigger {
|
|
965
|
-
@apply focus:bg-accent focus:text-accent-foreground data-open:bg-accent data-open:text-accent-foreground gap-2 rounded-2xl px-3 py-2 text-sm font-medium data-inset:ps-9.5 [&_ng-icon:not([class*='text-'])]:text-[calc(var(--spacing)*4)];
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
.spartan-menubar-sub-content {
|
|
969
|
-
@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-end-2 data-[side=right]:slide-in-from-start-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/5 dark:ring-foreground/10 min-w-32 rounded-3xl p-1.5 shadow-lg ring-1 duration-100;
|
|
970
|
-
}
|
|
971
|
-
|
|
972
862
|
/* MARK: Navigation Menu */
|
|
973
863
|
.spartan-navigation-menu {
|
|
974
864
|
@apply max-w-max;
|
|
@@ -1179,7 +1069,7 @@
|
|
|
1179
1069
|
}
|
|
1180
1070
|
|
|
1181
1071
|
.spartan-progress-value {
|
|
1182
|
-
@apply text-muted-foreground
|
|
1072
|
+
@apply text-muted-foreground ms-auto text-sm tabular-nums;
|
|
1183
1073
|
}
|
|
1184
1074
|
|
|
1185
1075
|
/* MARK: Resizable */
|
|
@@ -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;
|
|
@@ -788,54 +726,6 @@
|
|
|
788
726
|
@apply hover:bg-muted aria-expanded:bg-muted rounded-none px-1.5 py-[calc(--spacing(0.8))] text-xs font-medium;
|
|
789
727
|
}
|
|
790
728
|
|
|
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
729
|
/* MARK: Navigation Menu */
|
|
840
730
|
.spartan-navigation-menu {
|
|
841
731
|
@apply max-w-max;
|
|
@@ -946,7 +836,7 @@
|
|
|
946
836
|
}
|
|
947
837
|
|
|
948
838
|
.spartan-progress-value {
|
|
949
|
-
@apply text-muted-foreground
|
|
839
|
+
@apply text-muted-foreground ms-auto text-xs tabular-nums;
|
|
950
840
|
}
|
|
951
841
|
|
|
952
842
|
/* MARK: Radio Group */
|