@volvo-cars/css
Version:
Volvo Cars shared CSS
1 lines • 1.71 kB
Source Map (JSON)
{"version":3,"sources":["../src/imports.json","../src/links/constants.ts","../src/links/create-filter.ts","../src/links/get-media-query.ts"],"sourcesContent":["{\n \"font-face.css\": \"css/v1/font-face.05a7ed4c.css\",\n \"tokens.css\": \"css/v1/tokens.a3299985.css\",\n \"styles.css\": \"css/v1/styles.831ef042.css\",\n \"styles_md.css\": \"css/v1/styles_md.ff85772e.css\",\n \"styles_xl.css\": \"css/v1/styles_xl.477cb2f4.css\",\n \"styles_hover.css\": \"css/v1/styles_hover.3fbd1ade.css\"\n}","export const defaultBase = 'https://www.volvocars.com/static/shared/pkg/';\n","export interface LinksFilter {\n preload?: boolean;\n fonts?: boolean;\n tokens?: boolean;\n}\n\nexport function createFilter({\n fonts = true,\n tokens = true,\n}: LinksFilter = {}) {\n return ([name]: [string, string]) => {\n if (name === 'font-face.css') return fonts;\n if (name.endsWith('tokens.css')) return tokens;\n return true;\n };\n}\n","import mediaQueries from '../media-queries';\n\nexport function getMediaQuery(name: string) {\n let suffix = name.split('_').pop()?.replace('.css', '');\n return mediaQueries[suffix as keyof typeof mediaQueries];\n}\n"],"mappings":"wCAAA,IAAAA,EAAA,CACE,gBAAiB,gCACjB,aAAc,6BACd,aAAc,6BACd,gBAAiB,gCACjB,gBAAiB,gCACjB,mBAAoB,kCACtB,ECPO,IAAMC,EAAc,+CCMpB,SAASC,EAAa,CAC3B,MAAAC,EAAQ,GACR,OAAAC,EAAS,EACX,EAAiB,CAAC,EAAG,CACnB,MAAO,CAAC,CAACC,CAAI,IACPA,IAAS,gBAAwBF,EACjCE,EAAK,SAAS,YAAY,EAAUD,EACjC,EAEX,CCbO,SAASE,EAAcC,EAAc,CAC1C,IAAIC,EAASD,EAAK,MAAM,GAAG,EAAE,IAAI,GAAG,QAAQ,OAAQ,EAAE,EACtD,OAAOE,EAAaD,CAAmC,CACzD","names":["imports_default","defaultBase","createFilter","fonts","tokens","name","getMediaQuery","name","suffix","media_queries_default"]}