Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
61 lines
2.0 KiB
TypeScript
61 lines
2.0 KiB
TypeScript
import { generateUtilityClass, generateUtilityClasses } from '../className';
|
|
|
|
export interface AutocompleteListboxClasses {
|
|
/** Class name applied to the root element. */
|
|
root: string;
|
|
/** Class name applied to the root element if `size="sm"`. */
|
|
sizeSm: string;
|
|
/** Class name applied to the root element if `size="md"`. */
|
|
sizeMd: string;
|
|
/** Class name applied to the root element if `size="lg"`. */
|
|
sizeLg: string;
|
|
/** Class name applied to the root element if `color="primary"`. */
|
|
colorPrimary: string;
|
|
/** Class name applied to the root element if `color="neutral"`. */
|
|
colorNeutral: string;
|
|
/** Class name applied to the root element if `color="danger"`. */
|
|
colorDanger: string;
|
|
/** Class name applied to the root element if `color="success"`. */
|
|
colorSuccess: string;
|
|
/** Class name applied to the root element if `color="warning"`. */
|
|
colorWarning: string;
|
|
/** Class name applied to the root element when color inversion is triggered. */
|
|
colorContext: string;
|
|
/** Class name applied to the root element if `variant="plain"`. */
|
|
variantPlain: string;
|
|
/** Class name applied to the root element if `variant="outlined"`. */
|
|
variantOutlined: string;
|
|
/** Class name applied to the root element if `variant="soft"`. */
|
|
variantSoft: string;
|
|
/** Class name applied to the root element if `variant="solid"`. */
|
|
variantSolid: string;
|
|
}
|
|
|
|
export type AutocompleteListboxClassKey = keyof AutocompleteListboxClasses;
|
|
|
|
export function getAutocompleteListboxUtilityClass(slot: string): string {
|
|
return generateUtilityClass('MuiAutocompleteListbox', slot);
|
|
}
|
|
|
|
const autocompleteListboxClasses: AutocompleteListboxClasses = generateUtilityClasses(
|
|
'MuiAutocompleteListbox',
|
|
[
|
|
'root',
|
|
'sizeSm',
|
|
'sizeMd',
|
|
'sizeLg',
|
|
'colorPrimary',
|
|
'colorNeutral',
|
|
'colorDanger',
|
|
'colorSuccess',
|
|
'colorWarning',
|
|
'colorContext',
|
|
'variantPlain',
|
|
'variantOutlined',
|
|
'variantSoft',
|
|
'variantSolid',
|
|
],
|
|
);
|
|
|
|
export default autocompleteListboxClasses;
|