add: settings page locales

This commit is contained in:
Mahyar Khanbolooki
2025-08-12 03:09:22 +03:30
parent 67f7ac35bf
commit 81bb8e9c14
9 changed files with 421 additions and 173 deletions
+69
View File
@@ -0,0 +1,69 @@
import { SmartIconType } from "../iconType";
export interface Item {
Label: string;
HtmlName: string;
Icon?: SmartIconType;
}
export interface Accordion {
Heading: string;
Icon?: SmartIconType;
Items: Item[];
}
export interface TabNotifications {
Title: string;
Heading: string;
Description?: string;
Accordions: Accordion[];
}
export interface InputField {
Label: string;
Placeholder?: string;
HtmlName?: string;
AutoComplete?: string;
}
export interface RuleGroup {
Heading: string;
Items: string[];
}
export interface TabPassword {
Title: string;
Heading: string;
Description?: string;
Inputs: InputField[];
Rules: RuleGroup[];
ButtonSubmit: string;
}
export interface GuideItem {
Label: string;
Mark: string;
}
export interface Guide {
Heading: string;
Description: string;
Items: GuideItem[];
Notes: string[];
}
export interface TabAuthenticator {
Title: string;
Heading: string;
Description?: string;
Tip: string;
Guides: Guide[];
ButtonSubmit: string;
}
export interface SettingsData {
Heading: string;
TabNotifications: TabNotifications;
TabPassword: TabPassword;
TabAuthenticator: TabAuthenticator;
}
+12
View File
@@ -0,0 +1,12 @@
export interface SmartIconType {
Name: string;
Size?: number;
Color?: string;
ClassName?: string;
Variant?: string;
}
export type IconType =
React.ElementType |
React.ReactNode |
SmartIconType;