@stylable/core
Version:
CSS for Components
49 lines (43 loc) • 1.04 kB
text/typescript
import { createFeature } from './feature';
import {
stateDiagnostics,
parsePseudoStates,
parseStateValue,
transformPseudoClassToCustomState,
booleanStateDelimiter,
stateMiddleDelimiter,
stateWithParamDelimiter,
createBooleanStateClassName,
createStateWithParamClassName,
systemValidators,
validationErrors as sysValidationErrors,
resolveStateParam,
isTemplateState,
MappedStates,
} from '../helpers/custom-state';
export interface HasStates {
'-st-states': MappedStates;
}
export const diagnostics = {
...stateDiagnostics,
};
// HOOKS
export const hooks = createFeature({});
const delimiters = {
booleanStateDelimiter,
stateMiddleDelimiter,
stateWithParamDelimiter,
};
export {
parsePseudoStates,
parseStateValue,
transformPseudoClassToCustomState,
delimiters,
createBooleanStateClassName,
createStateWithParamClassName,
systemValidators,
sysValidationErrors,
resolveStateParam,
isTemplateState,
MappedStates,
};