@spartan-ng/cli 0.0.1-alpha.551 → 0.0.1-alpha.552

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.
Files changed (25) hide show
  1. package/package.json +1 -1
  2. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-content.ts.template +2 -3
  3. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-footer.ts.template +2 -3
  4. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-group-action.ts.template +1 -2
  5. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-group-content.ts.template +1 -2
  6. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-group-label.ts.template +1 -2
  7. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-group.ts.template +2 -3
  8. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-header.ts.template +2 -3
  9. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-input.ts.template +1 -1
  10. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-inset.ts.template +3 -11
  11. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-action.ts.template +1 -2
  12. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-badge.ts.template +2 -3
  13. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-button.ts.template +2 -4
  14. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-item.ts.template +1 -2
  15. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-skeleton.ts.template +2 -2
  16. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-sub-button.ts.template +1 -2
  17. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-sub-item.ts.template +1 -2
  18. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu-sub.ts.template +1 -2
  19. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-menu.ts.template +1 -2
  20. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-rail.ts.template +4 -5
  21. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-separator.ts.template +3 -5
  22. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-trigger.ts.template +3 -6
  23. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar-wrapper.ts.template +1 -1
  24. package/src/generators/ui/libs/sidebar/files/lib/hlm-sidebar.ts.template +8 -10
  25. package/src/generators/ui/supported-ui-libraries.json +35 -35
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spartan-ng/cli",
3
- "version": "0.0.1-alpha.551",
3
+ "version": "0.0.1-alpha.552",
4
4
  "type": "commonjs",
5
5
  "dependencies": {
6
6
  "@nx/angular": ">=20.0.0",
@@ -1,12 +1,11 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
- selector: 'div[hlmSidebarContent]',
8
-
6
+ selector: '[hlmSidebarContent],hlm-sidebar-content',
9
7
  host: {
8
+ 'data-slot': 'sidebar-content',
10
9
  'data-sidebar': 'content',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -1,12 +1,11 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
- selector: 'div[hlmSidebarFooter]',
8
-
6
+ selector: '[hlmSidebarFooter],hlm-sidebar-footer',
9
7
  host: {
8
+ 'data-slot': 'sidebar-footer',
10
9
  'data-sidebar': 'footer',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -1,12 +1,11 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
6
  selector: 'button[hlmSidebarGroupAction]',
8
-
9
7
  host: {
8
+ 'data-slot': 'sidebar-group-action',
10
9
  'data-sidebar': 'group-action',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -1,12 +1,11 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
6
  selector: 'div[hlmSidebarGroupContent]',
8
-
9
7
  host: {
8
+ 'data-slot': 'sidebar-group-content',
10
9
  'data-sidebar': 'group-content',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -1,12 +1,11 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
6
  selector: 'div[hlmSidebarGroupLabel], button[hlmSidebarGroupLabel]',
8
-
9
7
  host: {
8
+ 'data-slot': 'sidebar-group-label',
10
9
  'data-sidebar': 'group-label',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -1,12 +1,11 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
- selector: 'div[hlmSidebarGroup]',
8
-
6
+ selector: '[hlmSidebarGroup],hlm-sidebar-group',
9
7
  host: {
8
+ 'data-slot': 'sidebar-group',
10
9
  'data-sidebar': 'group',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -1,12 +1,11 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
- selector: 'div[hlmSidebarHeader]',
8
-
6
+ selector: '[hlmSidebarHeader],hlm-sidebar-header',
9
7
  host: {
8
+ 'data-slot': 'sidebar-header',
10
9
  'data-sidebar': 'header',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -4,8 +4,8 @@ import { hlm } from '<%- importAlias %>/utils';
4
4
 
5
5
  @Directive({
6
6
  selector: 'input[hlmSidebarInput]',
7
-
8
7
  host: {
8
+ 'data-slot': 'sidebar-input',
9
9
  'data-sidebar': 'input',
10
10
  '[class]': '_computedClass()',
11
11
  },
@@ -1,28 +1,20 @@
1
- import { computed, Directive, inject, input } from '@angular/core';
1
+ import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
- import { HlmSidebarService } from './hlm-sidebar.service';
5
-
6
3
  import type { ClassValue } from 'clsx';
7
4
 
8
5
  @Directive({
9
- selector: 'main[hlmSidebarInset]', // Restrict to main elements only
10
-
6
+ selector: 'main[hlmSidebarInset]',
11
7
  host: {
12
8
  'data-slot': 'sidebar-inset',
13
9
  '[class]': '_computedClass()',
14
10
  },
15
11
  })
16
12
  export class HlmSidebarInset {
17
- private readonly _sidebarService = inject(HlmSidebarService);
18
-
19
13
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
20
14
  protected readonly _computedClass = computed(() =>
21
15
  hlm(
22
16
  'bg-background relative flex w-full flex-1 flex-col',
23
- this._sidebarService.variant() === 'inset' &&
24
- 'min-h-[calc(100svh-theme(spacing.4)))] md:m-2 md:rounded-xl md:shadow-sm',
25
- this._sidebarService.open() ? 'md:ml-0' : 'md:ml-2',
17
+ 'md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2',
26
18
  this.userClass(),
27
19
  ),
28
20
  );
@@ -1,12 +1,11 @@
1
1
  import { booleanAttribute, computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
6
  selector: 'button[hlmSidebarMenuAction]',
8
-
9
7
  host: {
8
+ 'data-slot': 'sidebar-menu-action',
10
9
  'data-sidebar': 'menu-action',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -1,12 +1,11 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
- selector: 'div[hlmSidebarMenuBadge]',
8
-
6
+ selector: '[hlmSidebarMenuBadge],hlm-sidebar-menu-badge',
9
7
  host: {
8
+ 'data-slot': 'sidebar-menu-badge',
10
9
  'data-sidebar': 'menu-badge',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -3,10 +3,8 @@ import { BrnTooltipTrigger, provideBrnTooltipDefaultOptions } from '@spartan-ng/
3
3
  import { DEFAULT_TOOLTIP_CONTENT_CLASSES } from '<%- importAlias %>/tooltip';
4
4
  import { hlm } from '<%- importAlias %>/utils';
5
5
  import { cva } from 'class-variance-authority';
6
-
7
- import { HlmSidebarService } from './hlm-sidebar.service';
8
-
9
6
  import type { ClassValue } from 'clsx';
7
+ import { HlmSidebarService } from './hlm-sidebar.service';
10
8
 
11
9
  const sidebarMenuButtonVariants = cva(
12
10
  'peer/menu-button ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground flex w-full items-center justify-start gap-2 overflow-hidden rounded-md p-2 text-left text-sm transition-[width,height,padding] outline-none group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 hover:cursor-pointer focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 disabled:hover:cursor-default aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:font-medium [&>_ng-icon]:size-4 [&>_ng-icon]:shrink-0 group-data-[collapsible=icon]:[&>span]:hidden [&>span:last-child]:truncate',
@@ -32,7 +30,6 @@ const sidebarMenuButtonVariants = cva(
32
30
 
33
31
  @Directive({
34
32
  selector: 'button[hlmSidebarMenuButton], a[hlmSidebarMenuButton]',
35
-
36
33
  providers: [
37
34
  provideBrnTooltipDefaultOptions({
38
35
  showDelay: 150,
@@ -49,6 +46,7 @@ const sidebarMenuButtonVariants = cva(
49
46
  },
50
47
  ],
51
48
  host: {
49
+ 'data-slot': 'sidebar-menu-button',
52
50
  'data-sidebar': 'menu-button',
53
51
  '[attr.data-size]': 'size()',
54
52
  '[attr.data-active]': 'isActive()',
@@ -1,12 +1,11 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
6
  selector: 'li[hlmSidebarMenuItem]',
8
-
9
7
  host: {
8
+ 'data-slot': 'sidebar-menu-item',
10
9
  'data-sidebar': 'menu-item',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -1,7 +1,6 @@
1
1
  import { booleanAttribute, ChangeDetectionStrategy, Component, computed, input } from '@angular/core';
2
- import { hlm } from '<%- importAlias %>/utils';
3
-
4
2
  import { HlmSkeletonImports } from '<%- importAlias %>/skeleton';
3
+ import { hlm } from '<%- importAlias %>/utils';
5
4
  import type { ClassValue } from 'clsx';
6
5
 
7
6
  @Component({
@@ -16,6 +15,7 @@ import type { ClassValue } from 'clsx';
16
15
  }
17
16
  `,
18
17
  host: {
18
+ 'data-slot': 'sidebar-menu-skeleton',
19
19
  'data-sidebar': 'menu-skeleton',
20
20
  '[class]': '_computedClass()',
21
21
  '[style.--skeleton-width]': '_width',
@@ -1,12 +1,11 @@
1
1
  import { booleanAttribute, computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
6
  selector: 'a[hlmSidebarMenuSubButton], button[hlmSidebarMenuSubButton]',
8
-
9
7
  host: {
8
+ 'data-slot': 'sidebar-menu-sub-button',
10
9
  'data-sidebar': 'menu-sub-button',
11
10
  '[attr.data-active]': 'isActive()',
12
11
  '[attr.data-size]': 'size()',
@@ -1,12 +1,11 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
6
  selector: 'li[hlmSidebarMenuSubItem]',
8
-
9
7
  host: {
8
+ 'data-slot': 'sidebar-menu-sub-item',
10
9
  'data-sidebar': 'menu-sub-item',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -1,12 +1,11 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
6
  selector: 'ul[hlmSidebarMenuSub]',
8
-
9
7
  host: {
8
+ 'data-slot': 'sidebar-menu-sub',
10
9
  'data-sidebar': 'menu-sub',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -1,12 +1,11 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
3
  import type { ClassValue } from 'clsx';
5
4
 
6
5
  @Directive({
7
6
  selector: 'ul[hlmSidebarMenu]',
8
-
9
7
  host: {
8
+ 'data-slot': 'sidebar-menu',
10
9
  'data-sidebar': 'menu',
11
10
  '[class]': '_computedClass()',
12
11
  },
@@ -1,17 +1,14 @@
1
1
  import { computed, Directive, inject, input } from '@angular/core';
2
2
  import { hlm } from '<%- importAlias %>/utils';
3
-
4
- import { HlmSidebarService } from './hlm-sidebar.service';
5
-
6
3
  import type { ClassValue } from 'clsx';
4
+ import { HlmSidebarService } from './hlm-sidebar.service';
7
5
 
8
6
  @Directive({
9
7
  selector: 'button[hlmSidebarRail]',
10
-
11
8
  host: {
12
9
  'data-sidebar': 'rail',
13
10
  'data-slot': 'sidebar-rail',
14
- 'aria-label': 'Toggle Sidebar',
11
+ '[attr.aria-label]': 'ariaLabel()',
15
12
  tabindex: '-1',
16
13
  '[class]': '_computedClass()',
17
14
  '(click)': 'onClick()',
@@ -20,6 +17,8 @@ import type { ClassValue } from 'clsx';
20
17
  export class HlmSidebarRail {
21
18
  private readonly _sidebarService = inject(HlmSidebarService);
22
19
 
20
+ public readonly ariaLabel = input<string>('Toggle Sidebar', { alias: 'aria-label' });
21
+
23
22
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
24
23
  protected readonly _computedClass = computed(() =>
25
24
  hlm(
@@ -1,20 +1,18 @@
1
1
  import { computed, Directive, input } from '@angular/core';
2
2
  import { HlmSeparator } from '<%- importAlias %>/separator';
3
3
  import { hlm } from '<%- importAlias %>/utils';
4
-
5
4
  import type { ClassValue } from 'clsx';
6
5
 
7
6
  @Directive({
8
- selector: 'div[hlmSidebarSeparator]',
9
-
7
+ selector: '[hlmSidebarSeparator],hlm-sidebar-separator',
10
8
  hostDirectives: [{ directive: HlmSeparator }],
11
9
  host: {
10
+ 'data-slot': 'sidebar-separator',
12
11
  'data-sidebar': 'separator',
13
12
  '[class]': '_computedClass()',
14
13
  },
15
14
  })
16
15
  export class HlmSidebarSeparator {
17
16
  public readonly userClass = input<ClassValue>('', { alias: 'class' });
18
-
19
- protected readonly _computedClass = computed(() => hlm('bg-sidebar-border w-auto', this.userClass()));
17
+ protected readonly _computedClass = computed(() => hlm('bg-sidebar-border mx-2 w-auto', this.userClass()));
20
18
  }
@@ -2,16 +2,13 @@ import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
2
2
  import { NgIcon, provideIcons } from '@ng-icons/core';
3
3
  import { lucidePanelLeft } from '@ng-icons/lucide';
4
4
  import { HlmButton, provideBrnButtonConfig } from '<%- importAlias %>/button';
5
-
6
- import { HlmSidebarService } from './hlm-sidebar.service';
7
-
8
5
  import { HlmIcon } from '<%- importAlias %>/icon';
6
+ import { HlmSidebarService } from './hlm-sidebar.service';
9
7
 
10
8
  @Component({
11
9
  // eslint-disable-next-line @angular-eslint/component-selector
12
10
  selector: 'button[hlmSidebarTrigger]',
13
11
  changeDetection: ChangeDetectionStrategy.OnPush,
14
-
15
12
  imports: [HlmIcon, NgIcon],
16
13
  providers: [provideIcons({ lucidePanelLeft }), provideBrnButtonConfig({ variant: 'ghost', size: 'icon' })],
17
14
  template: `
@@ -23,8 +20,8 @@ import { HlmIcon } from '<%- importAlias %>/icon';
23
20
  },
24
21
  ],
25
22
  host: {
26
- 'data-sidebar': 'trigger',
27
23
  'data-slot': 'sidebar-trigger',
24
+ 'data-sidebar': 'trigger',
28
25
  '(click)': '_onClick()',
29
26
  },
30
27
  })
@@ -33,7 +30,7 @@ export class HlmSidebarTrigger {
33
30
  private readonly _sidebarService = inject(HlmSidebarService);
34
31
 
35
32
  constructor() {
36
- this._hlmBtn.setClass('h-7 w-7');
33
+ this._hlmBtn.setClass('size-7');
37
34
  }
38
35
 
39
36
  protected _onClick(): void {
@@ -4,7 +4,7 @@ import type { ClassValue } from 'clsx';
4
4
  import { injectHlmSidebarConfig } from './hlm-sidebar.token';
5
5
 
6
6
  @Directive({
7
- selector: 'div[hlmSidebarWrapper]',
7
+ selector: '[hlmSidebarWrapper],hlm-sidebar-wrapper',
8
8
  host: {
9
9
  'data-slot': 'sidebar-wrapper',
10
10
  '[class]': '_computedClass()',
@@ -1,20 +1,15 @@
1
+ import { NgTemplateOutlet } from '@angular/common';
1
2
  import { ChangeDetectionStrategy, Component, computed, effect, inject, input } from '@angular/core';
2
3
  import { BrnSheetContent } from '@spartan-ng/brain/sheet';
3
4
  import { HlmSheet, HlmSheetContent } from '<%- importAlias %>/sheet';
4
5
  import { hlm } from '<%- importAlias %>/utils';
5
-
6
- import { HlmSidebarService, type SidebarVariant } from './hlm-sidebar.service';
7
-
8
- import { NgTemplateOutlet } from '@angular/common';
9
6
  import type { ClassValue } from 'clsx';
7
+ import { HlmSidebarService, type SidebarVariant } from './hlm-sidebar.service';
10
8
  import { injectHlmSidebarConfig } from './hlm-sidebar.token';
11
9
 
12
10
  @Component({
13
11
  selector: 'hlm-sidebar',
14
-
15
- changeDetection: ChangeDetectionStrategy.OnPush,
16
12
  imports: [HlmSheet, HlmSheetContent, NgTemplateOutlet, BrnSheetContent],
17
-
18
13
  template: `
19
14
  <ng-template #contentContainer>
20
15
  <ng-content></ng-content>
@@ -66,6 +61,7 @@ import { injectHlmSidebarConfig } from './hlm-sidebar.token';
66
61
  </div>
67
62
  }
68
63
  `,
64
+ changeDetection: ChangeDetectionStrategy.OnPush,
69
65
  })
70
66
  export class HlmSidebar {
71
67
  protected readonly _sidebarService = inject(HlmSidebarService);
@@ -76,11 +72,12 @@ export class HlmSidebar {
76
72
  public readonly side = input<'left' | 'right'>('left');
77
73
  public readonly variant = input<SidebarVariant>(this._sidebarService.variant());
78
74
  public readonly collapsible = input<'offcanvas' | 'icon' | 'none'>('offcanvas');
79
- public readonly userClass = input<ClassValue>('', { alias: 'class' });
80
75
 
76
+ public readonly nonCollapsibleClass = input<ClassValue>('');
81
77
  protected readonly _nonCollapsibleComputedClass = computed(() =>
82
- hlm('bg-sidebar text-sidebar-foreground flex h-full w-[var(--sidebar-width)] flex-col', this.userClass()),
78
+ hlm('bg-sidebar text-sidebar-foreground flex h-full w-[var(--sidebar-width)] flex-col', this.nonCollapsibleClass()),
83
79
  );
80
+
84
81
  protected readonly _sidebarGapComputedClass = computed(() =>
85
82
  hlm(
86
83
  'relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear',
@@ -92,6 +89,7 @@ export class HlmSidebar {
92
89
  ),
93
90
  );
94
91
 
92
+ public readonly sidebarContainerClass = input<ClassValue>('');
95
93
  protected readonly _sidebarContainerComputedClass = computed(() =>
96
94
  hlm(
97
95
  'fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] transition-[left,right,width] duration-200 ease-linear md:flex',
@@ -101,7 +99,7 @@ export class HlmSidebar {
101
99
  this.variant() === 'floating' || this.variant() === 'inset'
102
100
  ? 'p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]'
103
101
  : 'group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l',
104
- this.userClass(),
102
+ this.sidebarContainerClass(),
105
103
  ),
106
104
  );
107
105
 
@@ -3,7 +3,7 @@
3
3
  "name": "accordion",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^19.0.0",
6
- "@spartan-ng/brain": "0.0.1-alpha.551",
6
+ "@spartan-ng/brain": "0.0.1-alpha.552",
7
7
  "clsx": "^2.1.1",
8
8
  "@ng-icons/core": "^31.4.0",
9
9
  "@ng-icons/lucide": "^31.4.0"
@@ -21,7 +21,7 @@
21
21
  "name": "alert-dialog",
22
22
  "peerDependencies": {
23
23
  "@angular/core": "^19.0.0",
24
- "@spartan-ng/brain": "0.0.1-alpha.551",
24
+ "@spartan-ng/brain": "0.0.1-alpha.552",
25
25
  "clsx": "^2.1.1"
26
26
  }
27
27
  },
@@ -38,7 +38,7 @@
38
38
  "peerDependencies": {
39
39
  "@angular/core": "^19.0.0",
40
40
  "clsx": "^2.1.1",
41
- "@spartan-ng/brain": "0.0.1-alpha.551",
41
+ "@spartan-ng/brain": "0.0.1-alpha.552",
42
42
  "@angular/cdk": "^19.0.0",
43
43
  "@angular/common": "^19.0.0",
44
44
  "@angular/forms": "^19.0.0",
@@ -50,7 +50,7 @@
50
50
  "name": "avatar",
51
51
  "peerDependencies": {
52
52
  "@angular/core": "^19.0.0",
53
- "@spartan-ng/brain": "0.0.1-alpha.551",
53
+ "@spartan-ng/brain": "0.0.1-alpha.552",
54
54
  "clsx": "^2.1.1"
55
55
  }
56
56
  },
@@ -76,7 +76,7 @@
76
76
  "name": "button",
77
77
  "peerDependencies": {
78
78
  "@angular/core": "^19.0.0",
79
- "@spartan-ng/brain": "0.0.1-alpha.551",
79
+ "@spartan-ng/brain": "0.0.1-alpha.552",
80
80
  "class-variance-authority": "^0.7.0",
81
81
  "clsx": "^2.1.1"
82
82
  }
@@ -85,7 +85,7 @@
85
85
  "name": "button-group",
86
86
  "peerDependencies": {
87
87
  "@angular/core": "^19.0.0",
88
- "@spartan-ng/brain": "0.0.1-alpha.551",
88
+ "@spartan-ng/brain": "0.0.1-alpha.552",
89
89
  "clsx": "^2.1.1",
90
90
  "class-variance-authority": "^0.7.0"
91
91
  }
@@ -98,7 +98,7 @@
98
98
  "@angular/core": "^19.0.0",
99
99
  "@ng-icons/core": "^31.4.0",
100
100
  "@ng-icons/lucide": "^31.4.0",
101
- "@spartan-ng/brain": "0.0.1-alpha.551",
101
+ "@spartan-ng/brain": "0.0.1-alpha.552",
102
102
  "clsx": "^2.1.1"
103
103
  }
104
104
  },
@@ -128,7 +128,7 @@
128
128
  "@angular/cdk": "^19.0.0",
129
129
  "@ng-icons/core": "^31.4.0",
130
130
  "@ng-icons/lucide": "^31.4.0",
131
- "@spartan-ng/brain": "0.0.1-alpha.551",
131
+ "@spartan-ng/brain": "0.0.1-alpha.552",
132
132
  "clsx": "^2.1.1"
133
133
  }
134
134
  },
@@ -136,7 +136,7 @@
136
136
  "name": "command",
137
137
  "peerDependencies": {
138
138
  "@angular/core": "^19.0.0",
139
- "@spartan-ng/brain": "0.0.1-alpha.551",
139
+ "@spartan-ng/brain": "0.0.1-alpha.552",
140
140
  "clsx": "^2.1.1"
141
141
  }
142
142
  },
@@ -148,7 +148,7 @@
148
148
  "@angular/forms": "^19.0.0",
149
149
  "@ng-icons/core": "^31.4.0",
150
150
  "@ng-icons/lucide": "^31.4.0",
151
- "@spartan-ng/brain": "0.0.1-alpha.551",
151
+ "@spartan-ng/brain": "0.0.1-alpha.552",
152
152
  "clsx": "^2.1.1"
153
153
  }
154
154
  },
@@ -160,7 +160,7 @@
160
160
  "@angular/common": "^19.0.0",
161
161
  "@ng-icons/core": "^31.4.0",
162
162
  "@ng-icons/lucide": "^31.4.0",
163
- "@spartan-ng/brain": "0.0.1-alpha.551",
163
+ "@spartan-ng/brain": "0.0.1-alpha.552",
164
164
  "@angular/cdk": "^19.0.0"
165
165
  }
166
166
  },
@@ -185,7 +185,7 @@
185
185
  "peerDependencies": {
186
186
  "@angular/core": "^19.0.0",
187
187
  "@angular/forms": "^19.0.0",
188
- "@spartan-ng/brain": "0.0.1-alpha.551",
188
+ "@spartan-ng/brain": "0.0.1-alpha.552",
189
189
  "clsx": "^2.1.1"
190
190
  }
191
191
  },
@@ -193,7 +193,7 @@
193
193
  "name": "hover-card",
194
194
  "peerDependencies": {
195
195
  "@angular/core": "^19.0.0",
196
- "@spartan-ng/brain": "0.0.1-alpha.551",
196
+ "@spartan-ng/brain": "0.0.1-alpha.552",
197
197
  "clsx": "^2.1.1"
198
198
  }
199
199
  },
@@ -210,7 +210,7 @@
210
210
  "peerDependencies": {
211
211
  "@angular/core": "^19.0.0",
212
212
  "@angular/forms": "^19.0.0",
213
- "@spartan-ng/brain": "0.0.1-alpha.551",
213
+ "@spartan-ng/brain": "0.0.1-alpha.552",
214
214
  "class-variance-authority": "^0.7.0",
215
215
  "clsx": "^2.1.1"
216
216
  }
@@ -231,7 +231,7 @@
231
231
  "@ng-icons/core": "^31.4.0",
232
232
  "@ng-icons/lucide": "^31.4.0",
233
233
  "@angular/cdk": "^19.0.0",
234
- "@spartan-ng/brain": "0.0.1-alpha.551"
234
+ "@spartan-ng/brain": "0.0.1-alpha.552"
235
235
  }
236
236
  },
237
237
  "item": {
@@ -240,7 +240,7 @@
240
240
  "@angular/core": "^19.0.0",
241
241
  "clsx": "^2.1.1",
242
242
  "class-variance-authority": "^0.7.0",
243
- "@spartan-ng/brain": "0.0.1-alpha.551"
243
+ "@spartan-ng/brain": "0.0.1-alpha.552"
244
244
  }
245
245
  },
246
246
  "kbd": {
@@ -254,7 +254,7 @@
254
254
  "name": "label",
255
255
  "peerDependencies": {
256
256
  "@angular/core": "^19.0.0",
257
- "@spartan-ng/brain": "0.0.1-alpha.551",
257
+ "@spartan-ng/brain": "0.0.1-alpha.552",
258
258
  "clsx": "^2.1.1"
259
259
  }
260
260
  },
@@ -262,7 +262,7 @@
262
262
  "name": "menu",
263
263
  "peerDependencies": {
264
264
  "@angular/core": "^19.0.0",
265
- "@spartan-ng/brain": "0.0.1-alpha.551",
265
+ "@spartan-ng/brain": "0.0.1-alpha.552",
266
266
  "clsx": "^2.1.1",
267
267
  "@ng-icons/core": "^31.4.0",
268
268
  "@ng-icons/lucide": "^31.4.0",
@@ -275,7 +275,7 @@
275
275
  "peerDependencies": {
276
276
  "@angular/core": "^19.0.0",
277
277
  "clsx": "^2.1.1",
278
- "@spartan-ng/brain": "0.0.1-alpha.551"
278
+ "@spartan-ng/brain": "0.0.1-alpha.552"
279
279
  }
280
280
  },
281
281
  "pagination": {
@@ -284,7 +284,7 @@
284
284
  "@angular/cdk": "^19.0.0",
285
285
  "@angular/core": "^19.0.0",
286
286
  "@angular/forms": "^19.0.0",
287
- "@spartan-ng/brain": "0.0.1-alpha.551",
287
+ "@spartan-ng/brain": "0.0.1-alpha.552",
288
288
  "class-variance-authority": "^0.7.0",
289
289
  "clsx": "^2.1.1",
290
290
  "@ng-icons/core": "^31.4.0",
@@ -297,14 +297,14 @@
297
297
  "peerDependencies": {
298
298
  "@angular/core": "^19.0.0",
299
299
  "clsx": "^2.1.1",
300
- "@spartan-ng/brain": "0.0.1-alpha.551"
300
+ "@spartan-ng/brain": "0.0.1-alpha.552"
301
301
  }
302
302
  },
303
303
  "progress": {
304
304
  "name": "progress",
305
305
  "peerDependencies": {
306
306
  "@angular/core": "^19.0.0",
307
- "@spartan-ng/brain": "0.0.1-alpha.551",
307
+ "@spartan-ng/brain": "0.0.1-alpha.552",
308
308
  "clsx": "^2.1.1"
309
309
  }
310
310
  },
@@ -312,7 +312,7 @@
312
312
  "name": "radio-group",
313
313
  "peerDependencies": {
314
314
  "@angular/core": "^19.0.0",
315
- "@spartan-ng/brain": "0.0.1-alpha.551",
315
+ "@spartan-ng/brain": "0.0.1-alpha.552",
316
316
  "clsx": "^2.1.1",
317
317
  "@angular/common": "^19.0.0"
318
318
  }
@@ -321,7 +321,7 @@
321
321
  "name": "resizable",
322
322
  "peerDependencies": {
323
323
  "@angular/core": "^19.0.0",
324
- "@spartan-ng/brain": "0.0.1-alpha.551",
324
+ "@spartan-ng/brain": "0.0.1-alpha.552",
325
325
  "clsx": "^2.1.1",
326
326
  "@ng-icons/core": "^31.4.0",
327
327
  "@ng-icons/lucide": "^31.4.0"
@@ -339,7 +339,7 @@
339
339
  "peerDependencies": {
340
340
  "@angular/cdk": "^19.0.0",
341
341
  "@angular/core": "^19.0.0",
342
- "@spartan-ng/brain": "0.0.1-alpha.551",
342
+ "@spartan-ng/brain": "0.0.1-alpha.552",
343
343
  "clsx": "^2.1.1",
344
344
  "@ng-icons/core": "^31.4.0",
345
345
  "@ng-icons/lucide": "^31.4.0",
@@ -350,7 +350,7 @@
350
350
  "name": "separator",
351
351
  "peerDependencies": {
352
352
  "@angular/core": "^19.0.0",
353
- "@spartan-ng/brain": "0.0.1-alpha.551",
353
+ "@spartan-ng/brain": "0.0.1-alpha.552",
354
354
  "clsx": "^2.1.1"
355
355
  }
356
356
  },
@@ -361,7 +361,7 @@
361
361
  "clsx": "^2.1.1",
362
362
  "@ng-icons/core": "^31.4.0",
363
363
  "@ng-icons/lucide": "^31.4.0",
364
- "@spartan-ng/brain": "0.0.1-alpha.551",
364
+ "@spartan-ng/brain": "0.0.1-alpha.552",
365
365
  "class-variance-authority": "^0.7.0"
366
366
  }
367
367
  },
@@ -370,7 +370,7 @@
370
370
  "peerDependencies": {
371
371
  "@angular/core": "^19.0.0",
372
372
  "clsx": "^2.1.1",
373
- "@spartan-ng/brain": "0.0.1-alpha.551",
373
+ "@spartan-ng/brain": "0.0.1-alpha.552",
374
374
  "class-variance-authority": "^0.7.0",
375
375
  "@ng-icons/core": "^31.4.0",
376
376
  "@ng-icons/lucide": "^31.4.0",
@@ -388,7 +388,7 @@
388
388
  "name": "slider",
389
389
  "peerDependencies": {
390
390
  "@angular/core": "^19.0.0",
391
- "@spartan-ng/brain": "0.0.1-alpha.551",
391
+ "@spartan-ng/brain": "0.0.1-alpha.552",
392
392
  "clsx": "^2.1.1"
393
393
  }
394
394
  },
@@ -416,7 +416,7 @@
416
416
  "clsx": "^2.1.1",
417
417
  "@angular/cdk": "^19.0.0",
418
418
  "@angular/forms": "^19.0.0",
419
- "@spartan-ng/brain": "0.0.1-alpha.551"
419
+ "@spartan-ng/brain": "0.0.1-alpha.552"
420
420
  }
421
421
  },
422
422
  "table": {
@@ -430,7 +430,7 @@
430
430
  "name": "tabs",
431
431
  "peerDependencies": {
432
432
  "@angular/core": "^19.0.0",
433
- "@spartan-ng/brain": "0.0.1-alpha.551",
433
+ "@spartan-ng/brain": "0.0.1-alpha.552",
434
434
  "clsx": "^2.1.1",
435
435
  "class-variance-authority": "^0.7.0",
436
436
  "@angular/cdk": "^19.0.0",
@@ -444,7 +444,7 @@
444
444
  "peerDependencies": {
445
445
  "@angular/core": "^19.0.0",
446
446
  "@angular/forms": "^19.0.0",
447
- "@spartan-ng/brain": "0.0.1-alpha.551",
447
+ "@spartan-ng/brain": "0.0.1-alpha.552",
448
448
  "class-variance-authority": "^0.7.0",
449
449
  "clsx": "^2.1.1"
450
450
  }
@@ -453,7 +453,7 @@
453
453
  "name": "toggle",
454
454
  "peerDependencies": {
455
455
  "@angular/core": "^19.0.0",
456
- "@spartan-ng/brain": "0.0.1-alpha.551",
456
+ "@spartan-ng/brain": "0.0.1-alpha.552",
457
457
  "class-variance-authority": "^0.7.0",
458
458
  "clsx": "^2.1.1"
459
459
  }
@@ -462,7 +462,7 @@
462
462
  "name": "toggle-group",
463
463
  "peerDependencies": {
464
464
  "@angular/core": "^19.0.0",
465
- "@spartan-ng/brain": "0.0.1-alpha.551",
465
+ "@spartan-ng/brain": "0.0.1-alpha.552",
466
466
  "clsx": "^2.1.1",
467
467
  "@angular/cdk": "^19.0.0"
468
468
  }
@@ -471,7 +471,7 @@
471
471
  "name": "tooltip",
472
472
  "peerDependencies": {
473
473
  "@angular/core": "^19.0.0",
474
- "@spartan-ng/brain": "0.0.1-alpha.551"
474
+ "@spartan-ng/brain": "0.0.1-alpha.552"
475
475
  }
476
476
  },
477
477
  "typography": {