Spaces:
Sleeping
Sleeping
pythonic-rag-FastAPIReact / frontend /node_modules /@mui /utils /legacy /generateUtilityClass /generateUtilityClass.js
Download frontend/node_modules/@mui/utils/legacy/generateUtilityClass/generateUtilityClass.js from sepidnes/pythonic-rag-FastAPIReact: direct link, hf CLI and curl.
- Browser
- Download file 840 Bytes
-
https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40mui/utils/legacy/generateUtilityClass/generateUtilityClass.js
- Command line
-
hf download hf://spaces/sepidnes/pythonic-rag-FastAPIReact@56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/@mui/utils/legacy/generateUtilityClass/generateUtilityClass.js
-
curl -L -o generateUtilityClass.js https://huggingface.co/spaces/sepidnes/pythonic-rag-FastAPIReact/resolve/56fda741e84da791ee2e6198479f1d5630989f6c/frontend/node_modules/%40mui/utils/legacy/generateUtilityClass/generateUtilityClass.js
840 Bytes
| import ClassNameGenerator from '../ClassNameGenerator'; | |
| export var 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) { | |
| var globalStatePrefix = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'Mui'; | |
| var globalStateClass = globalStateClasses[slot]; | |
| return globalStateClass ? "".concat(globalStatePrefix, "-").concat(globalStateClass) : "".concat(ClassNameGenerator.generate(componentName), "-").concat(slot); | |
| } | |
| export function isGlobalState(slot) { | |
| return globalStateClasses[slot] !== undefined; | |
| } |