@volvo-cars/css 3.0.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +47 -5
- package/README.md +1 -0
- package/dist/css/v3/styles.1402b7b1.css +1 -0
- package/dist/css/v3/styles_hover.29212670.css +1 -0
- package/dist/css/v3/styles_md.1d74bed0.css +1 -0
- package/dist/css/v3-compat/font-face.ae406374.css +1 -0
- package/dist/css/v3-compat/styles.1402b7b1.css +1 -0
- package/dist/css/v3-compat/styles_hover.29212670.css +1 -0
- package/dist/css/v3-compat/styles_md.1d74bed0.css +1 -0
- package/dist/css/v3-compat/styles_xl.d04eed36.css +1 -0
- package/dist/css/v3-compat/tokens.5288b0b2.css +1 -0
- package/dist/debug.css +1 -1
- package/dist/{get-media-query-DO52S6QV.cjs → get-media-query-B4Zo5731.cjs} +2 -2
- package/dist/get-media-query-B4Zo5731.cjs.map +1 -0
- package/dist/{get-media-query-ByBypMhM.js → get-media-query-yjQ1nNk4.js} +2 -2
- package/dist/get-media-query-yjQ1nNk4.js.map +1 -0
- package/dist/imports.json +3 -3
- package/dist/links.cjs +1 -1
- package/dist/links.cjs.map +1 -1
- package/dist/links.d.ts +2 -2
- package/dist/links.js +1 -1
- package/dist/links.js.map +1 -1
- package/dist/links.server.cjs +1 -1
- package/dist/links.server.cjs.map +1 -1
- package/dist/links.server.d.ts +2 -2
- package/dist/links.server.js +1 -1
- package/dist/links.server.js.map +1 -1
- package/dist/llm/meta.md +18 -0
- package/dist/media-queries.cjs.map +1 -1
- package/dist/media-queries.js.map +1 -1
- package/dist/meta.json +249 -17
- package/dist/meta.json.d.ts +4 -4
- package/dist/styles.css +1 -1
- package/dist/styles.d.ts +208 -14
- package/dist/styles_all-media.css +1 -1
- package/dist/styles_hover.css +1 -1
- package/dist/styles_lg.css +1 -1
- package/dist/styles_md.css +1 -1
- package/dist/tokens.cjs.map +1 -1
- package/dist/tokens.js.map +1 -1
- package/dist/utils.cjs +1 -1
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.ts +3 -3
- package/dist/utils.js +1 -1
- package/dist/utils.js.map +1 -1
- package/package.json +19 -19
- package/dist/css/v3/styles.71ee96da.css +0 -1
- package/dist/css/v3/styles_hover.81980e05.css +0 -1
- package/dist/css/v3/styles_md.7179b0ee.css +0 -1
- package/dist/get-media-query-ByBypMhM.js.map +0 -1
- package/dist/get-media-query-DO52S6QV.cjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.server.cjs","names":["defaultBase","cssImports","createFilter","getMediaQuery"],"sources":["../src/links.server.ts"],"sourcesContent":["import cssImports from './imports.json' with { type: 'json' };\nimport { defaultBase } from './links/constants';\nimport { createFilter } from './links/create-filter';\nimport { getMediaQuery } from './links/get-media-query';\nimport type { LinkProps, LinkPropsList, LinksFunction } from './links/types';\n\nconst fontPreloadUrls = [\n 'https://www.volvocars.com/static/shared/fonts/volvo-centum/v1/volvo-centum.woff2',\n];\n\nexport const links: LinksFunction = ({ base = defaultBase, filter } = {}) => {\n const baseHref = typeof base === 'string' ? base : base?.href;\n const normalizedBase =\n baseHref && !baseHref.endsWith('/') ? `${baseHref}/` : baseHref;\n const cssLinkProps = Object.entries(cssImports)\n .filter(createFilter(filter))\n .flatMap<LinkProps>(([name, filename]) => {\n const props: LinkProps = {\n href: normalizedBase + filename,\n rel: 'stylesheet',\n crossOrigin: 'anonymous',\n };\n const media = getMediaQuery(name);\n if (media) {\n props.media = media;\n }\n\n const preloadProps: LinkProps = {\n ...props,\n rel: 'preload',\n as: 'style',\n };\n\n props['data-volvo-css-name'] = name;\n\n if (filter?.preload === false) {\n return props;\n }\n return [preloadProps, props] as const;\n })\n .sort((a, b) =>\n a.rel === 'preload' && b.rel === 'preload'\n ? 0\n : a.rel === 'preload'\n ? -1\n : 1,\n );\n\n const fontPreloads: LinkProps[] =\n filter?.fonts === false || filter?.preload === false\n ? []\n : fontPreloadUrls.map((href) => ({\n rel: 'preload',\n href,\n as: 'font',\n type: 'font/woff2',\n crossOrigin: 'anonymous',\n }));\n const linkProps: LinkPropsList = [...fontPreloads, ...cssLinkProps];\n\n linkProps.toString = function () {\n let html = '';\n for (const link of this) {\n const attrs = Object.entries(link)\n .map(([key, value]) => `${key}=\"${value}\"`)\n .join(' ');\n html += `<link ${attrs} />\\n`;\n }\n return html;\n };\n\n return linkProps;\n};\n\nexport type { LinkProps, LinksFunction };\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"links.server.cjs","names":["defaultBase","cssImports","createFilter","getMediaQuery","require_get_media_query","fontPreloadUrls","links","baseHref","base","normalizedBase","cssLinkProps","filter","name","filename","props","media","preloadProps","a","b","linkProps","html","link","attrs","key","value"],"sources":["../src/links.server.ts"],"sourcesContent":["import cssImports from './imports.json' with { type: 'json' };\nimport { defaultBase } from './links/constants';\nimport { createFilter } from './links/create-filter';\nimport { getMediaQuery } from './links/get-media-query';\nimport type { LinkProps, LinkPropsList, LinksFunction } from './links/types';\n\nconst fontPreloadUrls = [\n 'https://www.volvocars.com/static/shared/fonts/volvo-centum/v1/volvo-centum.woff2',\n];\n\nexport const links: LinksFunction = ({ base = defaultBase, filter } = {}) => {\n const baseHref = typeof base === 'string' ? base : base?.href;\n const normalizedBase =\n baseHref && !baseHref.endsWith('/') ? `${baseHref}/` : baseHref;\n const cssLinkProps = Object.entries(cssImports)\n .filter(createFilter(filter))\n .flatMap<LinkProps>(([name, filename]) => {\n const props: LinkProps = {\n href: normalizedBase + filename,\n rel: 'stylesheet',\n crossOrigin: 'anonymous',\n };\n const media = getMediaQuery(name);\n if (media) {\n props.media = media;\n }\n\n const preloadProps: LinkProps = {\n ...props,\n rel: 'preload',\n as: 'style',\n };\n\n props['data-volvo-css-name'] = name;\n\n if (filter?.preload === false) {\n return props;\n }\n return [preloadProps, props] as const;\n })\n .sort((a, b) =>\n a.rel === 'preload' && b.rel === 'preload'\n ? 0\n : a.rel === 'preload'\n ? -1\n : 1,\n );\n\n const fontPreloads: LinkProps[] =\n filter?.fonts === false || filter?.preload === false\n ? []\n : fontPreloadUrls.map((href) => ({\n rel: 'preload',\n href,\n as: 'font',\n type: 'font/woff2',\n crossOrigin: 'anonymous',\n }));\n const linkProps: LinkPropsList = [...fontPreloads, ...cssLinkProps];\n\n linkProps.toString = function () {\n let html = '';\n for (const link of this) {\n const attrs = Object.entries(link)\n .map(([key, value]) => `${key}=\"${value}\"`)\n .join(' ');\n html += `<link ${attrs} />\\n`;\n }\n return html;\n };\n\n return linkProps;\n};\n\nexport type { LinkProps, LinksFunction };\n"],"mappings":"A,qHAMMK,EAAkB,CACtB,kFACF,EAEaC,GAAwB,CAAE,OAAON,EAAAA,EAAa,UAAW,CAAC,IAAM,CAC3E,IAAMO,EAAW,OAAOC,GAAS,SAAWA,EAAAA,GAAA,KAAA,IAAA,GAAOA,EAAM,KACnDC,EACJF,GAAY,CAACA,EAAS,SAAS,GAAG,EAAI,GAAGA,EAAS,GAAKA,EACnDG,EAAe,OAAO,QAAQT,EAAAA,CAAU,CAAC,CAC5C,OAAOC,EAAAA,EAAaS,CAAM,CAAC,CAAC,CAC5B,SAAoB,CAACC,EAAMC,KAAc,CACxC,IAAMC,EAAmB,CACvB,KAAML,EAAiBI,EACvB,IAAK,aACL,YAAa,WACf,EACME,EAAQZ,EAAAA,EAAcS,CAAI,EAC5BG,IACF,EAAM,MAAQA,GAGhB,IAAMC,EAA0B,CAC9B,GAAGF,EACH,IAAK,UACL,GAAI,OACN,EAOA,MALA,GAAM,uBAAyBF,GAE/BD,GAAA,KAAA,IAAA,GAAIA,EAAQ,WAAY,GACfG,EAEF,CAACE,EAAcF,CAAK,CAC7B,CAAC,CAAC,CACD,MAAM,EAAG,IACRG,EAAE,MAAQ,WAAaC,EAAE,MAAQ,UAC7B,EACAD,EAAE,MAAQ,UACR,GACA,CACR,EAYIE,EAA2B,CAAC,IAAAR,GAAA,KAAA,IAAA,GAThCA,EAAQ,SAAU,KAAAA,GAAA,KAAA,IAAA,GAASA,EAAQ,WAAY,GAC3C,CAAC,EACDN,EAAgB,IAAK,IAAU,CAC7B,IAAK,UACL,OACA,GAAI,OACJ,KAAM,aACN,YAAa,WACf,EAAE,EAC2C,GAAGK,CAAY,EAalE,MAXA,GAAU,SAAW,UAAY,CAC/B,IAAIU,EAAO,GACX,IAAK,IAAMC,KAAQ,KAAM,CACvB,IAAMC,EAAQ,OAAO,QAAQD,CAAI,CAAC,CAC/B,KAAK,CAACE,EAAKC,KAAW,GAAGD,EAAI,IAAIC,EAAM,EAAE,CAAC,CAC1C,KAAK,GAAG,EACX,GAAQ,SAASF,EAAM,MACzB,CACA,OAAOF,CACT,EAEOD,CACT,E"}
|
package/dist/links.server.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as LinksFunction, t as LinkProps } from "./types-lTMF4rCm.js";
|
|
2
2
|
//#region src/links.server.d.ts
|
|
3
|
-
declare const links: LinksFunction;
|
|
3
|
+
export declare const links: LinksFunction;
|
|
4
4
|
//#endregion
|
|
5
|
-
export {
|
|
5
|
+
export type { LinkProps, LinksFunction };
|
package/dist/links.server.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{i as e,n as t,r as n,t as r}from"./get-media-query-
|
|
1
|
+
import{i as e,n as t,r as n,t as r}from"./get-media-query-yjQ1nNk4.js";const i=[`https://www.volvocars.com/static/shared/fonts/volvo-centum/v1/volvo-centum.woff2`],a=({base:a=n,filter:o}={})=>{let s=typeof a==`string`?a:a==null?void 0:a.href,c=s&&!s.endsWith(`/`)?`${s}/`:s,l=Object.entries(e).filter(t(o)).flatMap(([e,t])=>{let n={href:c+t,rel:`stylesheet`,crossOrigin:`anonymous`},i=r(e);i&&(n.media=i);let a={...n,rel:`preload`,as:`style`};return n[`data-volvo-css-name`]=e,(o==null?void 0:o.preload)===!1?n:[a,n]}).sort((e,t)=>e.rel===`preload`&&t.rel===`preload`?0:e.rel===`preload`?-1:1),u=[...(o==null?void 0:o.fonts)===!1||(o==null?void 0:o.preload)===!1?[]:i.map(e=>({rel:`preload`,href:e,as:`font`,type:`font/woff2`,crossOrigin:`anonymous`})),...l];return u.toString=function(){let e=``;for(let t of this){let n=Object.entries(t).map(([e,t])=>`${e}="${t}"`).join(` `);e+=`<link ${n} />\n`}return e},u};export{a as links};
|
|
2
2
|
//# sourceMappingURL=links.server.js.map
|
package/dist/links.server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"links.server.js","names":["cssImports"],"sources":["../src/links.server.ts"],"sourcesContent":["import cssImports from './imports.json' with { type: 'json' };\nimport { defaultBase } from './links/constants';\nimport { createFilter } from './links/create-filter';\nimport { getMediaQuery } from './links/get-media-query';\nimport type { LinkProps, LinkPropsList, LinksFunction } from './links/types';\n\nconst fontPreloadUrls = [\n 'https://www.volvocars.com/static/shared/fonts/volvo-centum/v1/volvo-centum.woff2',\n];\n\nexport const links: LinksFunction = ({ base = defaultBase, filter } = {}) => {\n const baseHref = typeof base === 'string' ? base : base?.href;\n const normalizedBase =\n baseHref && !baseHref.endsWith('/') ? `${baseHref}/` : baseHref;\n const cssLinkProps = Object.entries(cssImports)\n .filter(createFilter(filter))\n .flatMap<LinkProps>(([name, filename]) => {\n const props: LinkProps = {\n href: normalizedBase + filename,\n rel: 'stylesheet',\n crossOrigin: 'anonymous',\n };\n const media = getMediaQuery(name);\n if (media) {\n props.media = media;\n }\n\n const preloadProps: LinkProps = {\n ...props,\n rel: 'preload',\n as: 'style',\n };\n\n props['data-volvo-css-name'] = name;\n\n if (filter?.preload === false) {\n return props;\n }\n return [preloadProps, props] as const;\n })\n .sort((a, b) =>\n a.rel === 'preload' && b.rel === 'preload'\n ? 0\n : a.rel === 'preload'\n ? -1\n : 1,\n );\n\n const fontPreloads: LinkProps[] =\n filter?.fonts === false || filter?.preload === false\n ? []\n : fontPreloadUrls.map((href) => ({\n rel: 'preload',\n href,\n as: 'font',\n type: 'font/woff2',\n crossOrigin: 'anonymous',\n }));\n const linkProps: LinkPropsList = [...fontPreloads, ...cssLinkProps];\n\n linkProps.toString = function () {\n let html = '';\n for (const link of this) {\n const attrs = Object.entries(link)\n .map(([key, value]) => `${key}=\"${value}\"`)\n .join(' ');\n html += `<link ${attrs} />\\n`;\n }\n return html;\n };\n\n return linkProps;\n};\n\nexport type { LinkProps, LinksFunction };\n"],"mappings":"uEAMA,
|
|
1
|
+
{"version":3,"file":"links.server.js","names":["cssImports","imports_default","createFilter","defaultBase","getMediaQuery","fontPreloadUrls","links","baseHref","base","normalizedBase","cssLinkProps","filter","name","filename","props","media","preloadProps","a","b","linkProps","html","link","attrs","key","value"],"sources":["../src/links.server.ts"],"sourcesContent":["import cssImports from './imports.json' with { type: 'json' };\nimport { defaultBase } from './links/constants';\nimport { createFilter } from './links/create-filter';\nimport { getMediaQuery } from './links/get-media-query';\nimport type { LinkProps, LinkPropsList, LinksFunction } from './links/types';\n\nconst fontPreloadUrls = [\n 'https://www.volvocars.com/static/shared/fonts/volvo-centum/v1/volvo-centum.woff2',\n];\n\nexport const links: LinksFunction = ({ base = defaultBase, filter } = {}) => {\n const baseHref = typeof base === 'string' ? base : base?.href;\n const normalizedBase =\n baseHref && !baseHref.endsWith('/') ? `${baseHref}/` : baseHref;\n const cssLinkProps = Object.entries(cssImports)\n .filter(createFilter(filter))\n .flatMap<LinkProps>(([name, filename]) => {\n const props: LinkProps = {\n href: normalizedBase + filename,\n rel: 'stylesheet',\n crossOrigin: 'anonymous',\n };\n const media = getMediaQuery(name);\n if (media) {\n props.media = media;\n }\n\n const preloadProps: LinkProps = {\n ...props,\n rel: 'preload',\n as: 'style',\n };\n\n props['data-volvo-css-name'] = name;\n\n if (filter?.preload === false) {\n return props;\n }\n return [preloadProps, props] as const;\n })\n .sort((a, b) =>\n a.rel === 'preload' && b.rel === 'preload'\n ? 0\n : a.rel === 'preload'\n ? -1\n : 1,\n );\n\n const fontPreloads: LinkProps[] =\n filter?.fonts === false || filter?.preload === false\n ? []\n : fontPreloadUrls.map((href) => ({\n rel: 'preload',\n href,\n as: 'font',\n type: 'font/woff2',\n crossOrigin: 'anonymous',\n }));\n const linkProps: LinkPropsList = [...fontPreloads, ...cssLinkProps];\n\n linkProps.toString = function () {\n let html = '';\n for (const link of this) {\n const attrs = Object.entries(link)\n .map(([key, value]) => `${key}=\"${value}\"`)\n .join(' ');\n html += `<link ${attrs} />\\n`;\n }\n return html;\n };\n\n return linkProps;\n};\n\nexport type { LinkProps, LinksFunction };\n"],"mappings":"A,uEAMA,MAAMK,EAAkB,CACtB,kFACF,EAEaC,GAAwB,CAAE,OAAOH,EAAa,UAAW,CAAC,IAAM,CAC3E,IAAMI,EAAW,OAAOC,GAAS,SAAWA,EAAAA,GAAA,KAAA,IAAA,GAAOA,EAAM,KACnDC,EACJF,GAAY,CAACA,EAAS,SAAS,GAAG,EAAI,GAAGA,EAAS,GAAKA,EACnDG,EAAe,OAAO,QAAQV,CAAU,CAAC,CAC5C,OAAOE,EAAaS,CAAM,CAAC,CAAC,CAC5B,SAAoB,CAACC,EAAMC,KAAc,CACxC,IAAMC,EAAmB,CACvB,KAAML,EAAiBI,EACvB,IAAK,aACL,YAAa,WACf,EACME,EAAQX,EAAcQ,CAAI,EAC5BG,IACF,EAAM,MAAQA,GAGhB,IAAMC,EAA0B,CAC9B,GAAGF,EACH,IAAK,UACL,GAAI,OACN,EAOA,MALA,GAAM,uBAAyBF,GAE/BD,GAAA,KAAA,IAAA,GAAIA,EAAQ,WAAY,GACfG,EAEF,CAACE,EAAcF,CAAK,CAC7B,CAAC,CAAC,CACD,MAAM,EAAG,IACRG,EAAE,MAAQ,WAAaC,EAAE,MAAQ,UAC7B,EACAD,EAAE,MAAQ,UACR,GACA,CACR,EAYIE,EAA2B,CAAC,IAAAR,GAAA,KAAA,IAAA,GAThCA,EAAQ,SAAU,KAAAA,GAAA,KAAA,IAAA,GAASA,EAAQ,WAAY,GAC3C,CAAC,EACDN,EAAgB,IAAK,IAAU,CAC7B,IAAK,UACL,OACA,GAAI,OACJ,KAAM,aACN,YAAa,WACf,EAAE,EAC2C,GAAGK,CAAY,EAalE,MAXA,GAAU,SAAW,UAAY,CAC/B,IAAIU,EAAO,GACX,IAAK,IAAMC,KAAQ,KAAM,CACvB,IAAMC,EAAQ,OAAO,QAAQD,CAAI,CAAC,CAC/B,KAAK,CAACE,EAAKC,KAAW,GAAGD,EAAI,IAAIC,EAAM,EAAE,CAAC,CAC1C,KAAK,GAAG,EACX,GAAQ,SAASF,EAAM,MACzB,CACA,OAAOF,CACT,EAEOD,CACT,E"}
|
package/dist/llm/meta.md
CHANGED
|
@@ -7,6 +7,10 @@ Utility classes may be combined with other classes and include the CSS rules the
|
|
|
7
7
|
|
|
8
8
|
### Layer: blocks
|
|
9
9
|
|
|
10
|
+
.action-bar
|
|
11
|
+
|
|
12
|
+
.action-bar-menu
|
|
13
|
+
|
|
10
14
|
.backdrop
|
|
11
15
|
|
|
12
16
|
.backdrop:opacity-0
|
|
@@ -43,6 +47,12 @@ Utility classes may be combined with other classes and include the CSS rules the
|
|
|
43
47
|
|
|
44
48
|
.custom-select
|
|
45
49
|
|
|
50
|
+
.custom-option
|
|
51
|
+
|
|
52
|
+
.listbox
|
|
53
|
+
|
|
54
|
+
.option-group-name
|
|
55
|
+
|
|
46
56
|
.chip-selectable
|
|
47
57
|
|
|
48
58
|
.chip-dismissible
|
|
@@ -105,6 +115,14 @@ Utility classes may be combined with other classes and include the CSS rules the
|
|
|
105
115
|
|
|
106
116
|
.pill-soft
|
|
107
117
|
|
|
118
|
+
.toggle-button
|
|
119
|
+
|
|
120
|
+
.toggle-button-clear
|
|
121
|
+
|
|
122
|
+
.icon-toggle-button
|
|
123
|
+
|
|
124
|
+
.icon-toggle-button-clear
|
|
125
|
+
|
|
108
126
|
.tablist
|
|
109
127
|
|
|
110
128
|
.tablist-stretched
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-queries.cjs","names":[],"sources":["../src/media-queries.ts"],"sourcesContent":["const queries = {\n hover: '(hover: hover)',\n md: '(min-width: 30rem)',\n lg: '(min-width: 64rem)',\n xl: '(min-width: 100rem)',\n} as const;\n\nexport default queries;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"media-queries.cjs","names":["queries"],"sources":["../src/media-queries.ts"],"sourcesContent":["const queries = {\n hover: '(hover: hover)',\n md: '(min-width: 30rem)',\n lg: '(min-width: 64rem)',\n xl: '(min-width: 100rem)',\n} as const;\n\nexport default queries;\n"],"mappings":"A,+FAAA,MAAMA,EAAU,CACd,MAAO,iBACP,GAAI,qBACJ,GAAI,qBACJ,GAAI,qBACN,E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-queries.js","names":[],"sources":["../src/media-queries.ts"],"sourcesContent":["const queries = {\n hover: '(hover: hover)',\n md: '(min-width: 30rem)',\n lg: '(min-width: 64rem)',\n xl: '(min-width: 100rem)',\n} as const;\n\nexport default queries;\n"],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"media-queries.js","names":["queries"],"sources":["../src/media-queries.ts"],"sourcesContent":["const queries = {\n hover: '(hover: hover)',\n md: '(min-width: 30rem)',\n lg: '(min-width: 64rem)',\n xl: '(min-width: 100rem)',\n} as const;\n\nexport default queries;\n"],"mappings":"AAAA,MAAMA,EAAU,CACd,MAAO,iBACP,GAAI,qBACJ,GAAI,qBACJ,GAAI,qBACN,E"}
|