unnestcss
Version:
A library for un-nesting CSS
1 lines • 1.22 kB
Source Map (JSON)
{"mappings":"AAAA,cAAc,SAAS,aAAa,QAAQ,WAAW,OAAO,WAAW,eAAe;AAExF,YAAY,UAAU;CACpB,QAAQ;CACR,MAAM;CACN;CACA;CACA;CACA;CACA;CACA,UAAU;KAER;CACE,aAAa,iBAAiB;CAC9B;CACA;IAEF;CACE,aAAa,iBAAiB,mBAAmB;CACjD,UAAU;CACV;IAEF;CACE,aAAa,gBAAgB;CAC7B;CACA;;AAIN,YAAY,cACV,SAAS,SACT,eACA,UAAU,WACV,UAAU;AAGZ","names":[],"sources":["../../../../src/lib/stylis/types.ts"],"sourcesContent":["import type { COMMENT, DECLARATION, IMPORT, KEYFRAMES, LAYER, NAMESPACE, RULESET } from \"./enum.ts\";\n\nexport type Element = {\n parent: Element | null;\n root: Element | null;\n value: string;\n length: number;\n return: string;\n line: number;\n column: number;\n siblings: Element[];\n} & (\n | {\n type: typeof COMMENT | typeof DECLARATION;\n children: string;\n props: string;\n }\n | {\n type: typeof RULESET | typeof KEYFRAMES | typeof LAYER;\n children: Element[];\n props: string[];\n }\n | {\n type: typeof IMPORT | typeof NAMESPACE;\n children: [];\n props: [];\n }\n);\n\nexport type Middleware = (\n element: Element,\n index: number,\n children: Element[],\n callback: Middleware,\n) => string | void;\n\nexport default {};\n"],"version":3,"file":"types.d.ts"}