1
0
Fork 0

worked on GarageApp stuff

This commit is contained in:
Techognito 2025-08-25 17:46:11 +02:00
parent 60aaf17af3
commit eb606572b0
51919 changed files with 2168177 additions and 18 deletions

View file

@ -0,0 +1,17 @@
export type GlobalStateSlot = keyof typeof globalStateClasses;
export declare const globalStateClasses: {
active: string;
checked: string;
completed: string;
disabled: string;
error: string;
expanded: string;
focused: string;
focusVisible: string;
open: string;
readOnly: string;
required: string;
selected: string;
};
export default function generateUtilityClass(componentName: string, slot: string, globalStatePrefix?: string): string;
export declare function isGlobalState(slot: string): boolean;

View file

@ -0,0 +1,22 @@
import ClassNameGenerator from "../ClassNameGenerator/index.js";
export const globalStateClasses = {
active: 'active',
checked: 'checked',
completed: 'completed',
disabled: 'disabled',
error: 'error',
expanded: 'expanded',
focused: 'focused',
focusVisible: 'focusVisible',
open: 'open',
readOnly: 'readOnly',
required: 'required',
selected: 'selected'
};
export default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {
const globalStateClass = globalStateClasses[slot];
return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;
}
export function isGlobalState(slot) {
return globalStateClasses[slot] !== undefined;
}

View file

@ -0,0 +1,2 @@
export { default } from "./generateUtilityClass.js";
export * from "./generateUtilityClass.js";

View file

@ -0,0 +1,2 @@
export { default } from "./generateUtilityClass.js";
export * from "./generateUtilityClass.js";