All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.prod.theming.getStylesString.js.map Maven / Gradle / Ivy

{
  "version": 3,
  "sources": ["../../../src/theming/getStylesString.ts"],
  "sourcesContent": ["import type { ComponentStylesData, StyleData } from \"../types.js\";\n\nconst MAX_DEPTH_INHERITED_CLASSES = 10; // TypeScript complains about Infinity and big numbers\n\nconst getStylesString = (styles: ComponentStylesData) => {\n\tif (Array.isArray(styles)) {\n\t\treturn (styles.filter(style => !!style).flat(MAX_DEPTH_INHERITED_CLASSES) as Array).map((style: StyleData) => {\n\t\t\treturn typeof style === \"string\" ? style : style.content;\n\t\t}).join(\" \");\n\t}\n\n\treturn typeof styles === \"string\" ? styles : styles.content;\n};\n\nexport default getStylesString;\n"],
  "mappings": "aAEA,MAAMA,EAA8B,GAE9BC,EAAmBC,GACpB,MAAM,QAAQA,CAAM,EACfA,EAAO,OAAOC,GAAS,CAAC,CAACA,CAAK,EAAE,KAAK,EAA2B,EAAuB,IAAKA,GAC5F,OAAOA,GAAU,SAAWA,EAAQA,EAAM,OACjD,EAAE,KAAK,GAAG,EAGL,OAAOD,GAAW,SAAWA,EAASA,EAAO,QAGrD,eAAeD",
  "names": ["MAX_DEPTH_INHERITED_CLASSES", "getStylesString", "styles", "style"]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy