Skip to content

Commit f50bd8f

Browse files
author
Marko Petzold
committed
chore: regenerate types
1 parent ad9b31d commit f50bd8f

File tree

1 file changed

+34
-7
lines changed

1 file changed

+34
-7
lines changed

src/definition-schema.d.ts

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,53 @@
55
* and run json-schema-to-typescript to regenerate this file.
66
*/
77

8+
/**
9+
* The header text displayed at the top of the side navigation, typically used for branding or section identification.
10+
*/
811
export type TitleSettings = string;
912
/**
10-
* Navigation to perform on title click. Example: If you are at route /my/route/asset then 'settings/profile' routes to '/my/route/settings/profile'.
13+
* The destination path when the title/header is clicked. Use for navigating to a home or main page. Use relative paths or enable leadingSlash for absolute routing.
1114
*/
1215
export type TitleNavigation = string;
1316
/**
14-
* Whether to add a leading slash to the navigation route.
17+
* When enabled, prepends '/' to the title's navigation route making it absolute from the root. When disabled, routes are relative to the current location.
1518
*/
1619
export type AddLeadingSlash = boolean;
1720
/**
18-
* Whether to add a trailing slash to the navigation route.
21+
* When enabled, appends '/' to the end of the title's navigation route. Required by some routing configurations.
1922
*/
2023
export type AddTraillingSlash = boolean;
24+
/**
25+
* Font size in pixels for navigation item labels.
26+
*/
2127
export type FontSize = number;
28+
/**
29+
* Font weight for navigation items (100=thin, 400=normal, 700=bold, 900=black).
30+
*/
2231
export type FontWeight = number;
32+
/**
33+
* The text displayed for this navigation item. Should clearly describe the destination section.
34+
*/
2335
export type Label = string;
2436
/**
25-
* Name of the icon from https://fonts.google.com/icons
37+
* Material icon name displayed alongside the label. Find icon names at https://fonts.google.com/icons (e.g., 'dashboard', 'settings', 'analytics', 'people').
2638
*/
2739
export type IconName = string;
2840
/**
29-
* Navigation to perform on click. Example: If you are at route /my/route/asset then 'settings/profile' routes to '/my/route/settings/profile'.
41+
* The destination path when this item is clicked. Use relative paths that append to the current URL, or enable leadingSlash for absolute routing.
3042
*/
3143
export type NavigationRoute = string;
3244
/**
33-
* Whether to add a leading slash to the navigation route.
45+
* When enabled, prepends '/' to this item's route making it absolute from the root.
3446
*/
3547
export type AddLeadingSlash1 = boolean;
3648
/**
37-
* Whether to add a trailing slash to the navigation route.
49+
* When enabled, appends '/' to the end of this item's route.
3850
*/
3951
export type AddTraillingSlash1 = boolean;
52+
/**
53+
* Array of navigation links displayed vertically in the sidebar. Each item can have a label, icon, and destination route.
54+
*/
4055
export type NavigationItems = {
4156
label?: Label;
4257
iconName?: IconName;
@@ -46,6 +61,9 @@ export type NavigationItems = {
4661
[k: string]: unknown;
4762
}[];
4863

64+
/**
65+
* A vertical side navigation widget for creating sidebar menus in dashboards. Use this widget to provide hierarchical or list-based navigation along the side of the dashboard. Features a clickable title/header and multiple navigation items with icons. Supports customizable styling for fonts and colors to match your dashboard theme. Ideal for applications with multiple sections, settings pages, or when you need persistent navigation that doesn't take up header space.
66+
*/
4967
export interface InputData {
5068
title?: TitleSettings;
5169
route?: TitleNavigation;
@@ -55,16 +73,25 @@ export interface InputData {
5573
navItems?: NavigationItems;
5674
[k: string]: unknown;
5775
}
76+
/**
77+
* Global styling options applied to all navigation items in the sidebar.
78+
*/
5879
export interface ItemStyle {
5980
fontSize?: FontSize;
6081
fontWeight?: FontWeight;
6182
color?: FontColor;
6283
backgroundColor?: BackgroundColor;
6384
[k: string]: unknown;
6485
}
86+
/**
87+
* Text color for navigation item labels and icons.
88+
*/
6589
export interface FontColor {
6690
[k: string]: unknown;
6791
}
92+
/**
93+
* Background color of the side navigation panel.
94+
*/
6895
export interface BackgroundColor {
6996
[k: string]: unknown;
7097
}

0 commit comments

Comments
 (0)