@tolle_/tolle-ui 0.0.30-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.
- package/esm2022/lib/accordion-item.component.mjs +60 -17
- package/esm2022/lib/accordion.component.mjs +17 -12
- package/esm2022/lib/alert.component.mjs +36 -24
- package/esm2022/lib/badge.component.mjs +6 -8
- package/esm2022/lib/breadcrumb-item.component.mjs +1 -1
- package/esm2022/lib/button.component.mjs +2 -2
- package/esm2022/lib/segment.component.mjs +5 -5
- package/esm2022/lib/sidebar.component.mjs +460 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/tolle-ui.mjs +576 -62
- package/fesm2022/tolle-ui.mjs.map +1 -1
- package/lib/accordion.component.d.ts +1 -0
- package/lib/alert.component.d.ts +2 -3
- package/lib/button.component.d.ts +1 -1
- package/lib/sidebar.component.d.ts +46 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -7,6 +7,7 @@ export declare class AccordionComponent implements AfterContentInit {
|
|
|
7
7
|
class: string;
|
|
8
8
|
items: QueryList<AccordionItemComponent>;
|
|
9
9
|
ngAfterContentInit(): void;
|
|
10
|
+
private initItems;
|
|
10
11
|
private handleToggle;
|
|
11
12
|
protected readonly cn: typeof cn;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
package/lib/alert.component.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import { cn } from './utils/cn';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
declare const alertVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
|
|
6
|
+
variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
type AlertVariants = VariantProps<typeof alertVariants>;
|
|
9
9
|
export declare class AlertComponent {
|
|
@@ -13,9 +13,8 @@ export declare class AlertComponent {
|
|
|
13
13
|
dismissible: boolean;
|
|
14
14
|
onClose: EventEmitter<void>;
|
|
15
15
|
dismissed: boolean;
|
|
16
|
-
isDismissing: boolean;
|
|
17
16
|
protected alertVariants: (props?: ({
|
|
18
|
-
variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
|
|
17
|
+
variant?: "default" | "destructive" | "success" | "warning" | "info" | null | undefined;
|
|
19
18
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
20
19
|
protected cn: typeof cn;
|
|
21
20
|
dismiss(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" | "link" | null | undefined;
|
|
5
5
|
size?: "default" | "xs" | "sm" | "lg" | "icon-xs" | "icon-sm" | "icon" | "icon-lg" | null | undefined;
|
|
6
6
|
busy?: boolean | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { cn } from './utils/cn';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type SidebarItem = {
|
|
5
|
+
title: string;
|
|
6
|
+
url?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
isActive?: boolean;
|
|
9
|
+
items?: SidebarItem[];
|
|
10
|
+
id?: string;
|
|
11
|
+
expanded?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type SidebarGroup = {
|
|
14
|
+
title: string;
|
|
15
|
+
items: SidebarItem[];
|
|
16
|
+
id?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare class SidebarComponent implements OnChanges {
|
|
19
|
+
items: SidebarGroup[];
|
|
20
|
+
collapsed: boolean;
|
|
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';
|
|
30
|
+
expandedParents: Set<string>;
|
|
31
|
+
expandedChildren: Set<string>;
|
|
32
|
+
protected readonly cn: typeof cn;
|
|
33
|
+
get activeClasses(): string;
|
|
34
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
35
|
+
private initializeState;
|
|
36
|
+
getGroupId(group: SidebarGroup, index: number): string;
|
|
37
|
+
getParentId(group: SidebarGroup, item: SidebarItem, gIndex: number, iIndex: number): string;
|
|
38
|
+
getChildId(group: SidebarGroup, parent: SidebarItem, subItem: SidebarItem, gIndex: number, iIndex: number, sIndex: number): string;
|
|
39
|
+
toggleParent(group: SidebarGroup, item: SidebarItem, gIndex: number, iIndex: number): void;
|
|
40
|
+
toggleChild(group: SidebarGroup, parent: SidebarItem, subItem: SidebarItem, gIndex: number, iIndex: number, sIndex: number): void;
|
|
41
|
+
private collapseAll;
|
|
42
|
+
isParentExpanded(group: SidebarGroup, item: SidebarItem, gIndex: number, iIndex: number): boolean;
|
|
43
|
+
isChildExpanded(group: SidebarGroup, parent: SidebarItem, subItem: SidebarItem, gIndex: number, iIndex: number, sIndex: number): boolean;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, 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>;
|
|
46
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED