@tolle_/tolle-ui 0.0.31-beta → 0.0.32-beta

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.
@@ -1,7 +1,7 @@
1
1
  import { OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { cn } from './utils/cn';
3
3
  import * as i0 from "@angular/core";
4
- export interface SidebarItem {
4
+ export type SidebarItem = {
5
5
  title: string;
6
6
  url?: string;
7
7
  icon?: string;
@@ -9,19 +9,28 @@ export interface SidebarItem {
9
9
  items?: SidebarItem[];
10
10
  id?: string;
11
11
  expanded?: boolean;
12
- }
13
- export interface SidebarGroup {
12
+ };
13
+ export type SidebarGroup = {
14
14
  title: string;
15
15
  items: SidebarItem[];
16
16
  id?: string;
17
- }
17
+ };
18
18
  export declare class SidebarComponent implements OnChanges {
19
19
  items: SidebarGroup[];
20
20
  collapsed: boolean;
21
21
  class: string;
22
+ /**
23
+ * Styling variant for active items.
24
+ * - default: Solid primary background, light text (Matches Badge Default)
25
+ * - secondary: Solid secondary background
26
+ * - ghost: Transparent background, accent text (Shadcn standard)
27
+ * - outline: Bordered
28
+ */
29
+ variant: 'default' | 'secondary' | 'ghost' | 'outline';
22
30
  expandedParents: Set<string>;
23
31
  expandedChildren: Set<string>;
24
32
  protected readonly cn: typeof cn;
33
+ get activeClasses(): string;
25
34
  ngOnChanges(changes: SimpleChanges): void;
26
35
  private initializeState;
27
36
  getGroupId(group: SidebarGroup, index: number): string;
@@ -33,5 +42,5 @@ export declare class SidebarComponent implements OnChanges {
33
42
  isParentExpanded(group: SidebarGroup, item: SidebarItem, gIndex: number, iIndex: number): boolean;
34
43
  isChildExpanded(group: SidebarGroup, parent: SidebarItem, subItem: SidebarItem, gIndex: number, iIndex: number, sIndex: number): boolean;
35
44
  static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "tolle-sidebar", never, { "items": { "alias": "items"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["[header]", "[footer]"], true, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "tolle-sidebar", never, { "items": { "alias": "items"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "class": { "alias": "class"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, ["[header]", "[footer]"], true, never>;
37
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tolle_/tolle-ui",
3
- "version": "0.0.31-beta",
3
+ "version": "0.0.32-beta",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },