@webority/tokens 0.163.0 → 0.164.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.
@@ -2,7 +2,7 @@
2
2
  "format": "webority-theme-tokens/2",
3
3
  "source": {
4
4
  "package": "@webority/tokens",
5
- "version": "0.163.0",
5
+ "version": "0.164.0",
6
6
  "brand": null,
7
7
  "platform": "phone",
8
8
  "width": null
@@ -2,7 +2,7 @@
2
2
  "format": "webority-theme-tokens/2",
3
3
  "source": {
4
4
  "package": "@webority/tokens",
5
- "version": "0.163.0",
5
+ "version": "0.164.0",
6
6
  "brand": null,
7
7
  "platform": "web",
8
8
  "width": 390
@@ -2,7 +2,7 @@
2
2
  "format": "webority-theme-tokens/2",
3
3
  "source": {
4
4
  "package": "@webority/tokens",
5
- "version": "0.163.0",
5
+ "version": "0.164.0",
6
6
  "brand": null,
7
7
  "platform": "web",
8
8
  "width": 1440
package/dist/emit/web.js CHANGED
@@ -7,18 +7,24 @@ import{isObjectLike as e}from"../guards.js";import{BREAKPOINT_PX as t,TOUCH_MEDI
7
7
  :root[data-theme="auto"] [data-bs-theme="light"]`,x=`[data-theme="dark"]:not(:root) [data-theme="light"],
8
8
  [data-theme="dark"]:not(:root) [data-bs-theme="light"],
9
9
  [data-bs-theme="dark"]:not(:root) [data-theme="light"],
10
- [data-bs-theme="dark"]:not(:root) [data-bs-theme="light"]`,S=`// var() resolves where a name is declared, so the html copies keep the light values for a light box.`,C=`/* var() resolves where a name is declared, so the html copies keep the light values for a light box. */`,w=`// Zero specificity, so a component's own class on a themed section or inside it keeps its colour.`,T=`/* Zero specificity, so a component's own class on a themed section or inside it keeps its colour. */`,E=`// A light box under a dark page root takes literal light values: var() would resolve against the dark root.`,D=`/* A light box under a dark page root takes literal light values: var() would resolve against the dark root. */`;function O(e){return String(Number(e.toFixed(4)))}function k(e,t){return s(e.tokens.get(t),`token ${t}`)}function ae(e){if(e==null)return 1440;if(typeof e==`number`)return e;throw Error(`emitWeb: fluidUntil must be a number`)}function A(t,n){if(typeof n==`string`)return n.replace(d,(e,t)=>`var(${o(t)})`);if(typeof n==`number`)return O(n);if(Array.isArray(n)){if(t.type===`cubicBezier`&&n.length===4&&n.every(e=>typeof e==`number`))return`cubic-bezier(${n.map(e=>O(e)).join(`, `)})`;if(t.type===`fontFamily`&&n.every(e=>typeof e==`string`))return n.map(e=>/\s/.test(e)?`"${e}"`:e).join(`, `)}else if(e(n)){if(`unit`in n&&typeof n.value==`number`)return`${O(n.value)}${String(n.unit)}`;if(`color`in n)return[n.offsetX,n.offsetY,n.blur,n.spread,n.color].map(e=>A(t,e)).join(` `)}throw Error(`emitWeb: ${t.path}: cannot write a ${t.type} value as CSS.`)}function j(e,t,n){return A(k(e,t),e.valueIn(t,n))}function M(t,n){if(e(n)&&n.unit===`px`&&typeof n.value==`number`)return n.value;throw Error(`emitWeb: ${t}: a text size must be a px dimension.`)}function N(e,t){let n=k(e,t),a=o(t);if(n.group===`text`){if(r(n).length>0)throw Error(`emitWeb: ${t}: a text size cannot carry breakpoints.`);let o=M(t,e.valueIn(t,u)),s=M(t,e.valueIn(t,c)),l=n.extensions?.fluidUntil;if(o!==s&&l===void 0)throw Error(`emitWeb: ${t}: the 390 and 1440 sizes differ but no fluidUntil is recorded.`);return{path:t,name:a,root:i(o,s,ae(l)),tiers:[]}}let s=r(n);return s.length>0?{path:t,name:a,root:j(e,t,u),tiers:s.map(e=>({tier:e.tier,text:A(n,e.value)}))}:{path:t,name:a,root:j(e,t,c),tiers:[]}}function P(e){let t=[];for(let n of e.tokens.keys())e.existsIn(n,c)&&t.push(N(e,n));return t}function F(e,t){let n=[];for(let[i,a]of e.tokens){if(!e.existsIn(i,l)||!e.existsIn(i,c)||r(a).length>0)continue;let s=j(e,i,l);if(a.group===`text`){if(s!==j(e,i,c))throw Error(`emitWeb: ${i}: a text size cannot change with the mode.`)}else t(i,s)&&n.push({path:i,name:o(i),text:s,light:j(e,i,c)})}return n}function I(e){let t=Number.parseInt(e.slice(1),16);return`${t>>16&255}, ${t>>8&255}, ${t&255}`}function L(e,t){let n=[],r=(r,i)=>{for(let[a,o]of r){let r=`color.${o}`,s=U(e,r,l);if(t(r,s)){let t=i?I(U(e,r,c)):null;n.push({name:a,text:I(s),light:t})}}};return r(p,!0),r(ne,!1),n}function R(e,t,n){return!e.tokens.has(`color.primary`)||!t.tokens.has(`color.primary`)||e.resolvedIn(`color.primary`,n)===t.resolvedIn(`color.primary`,n)?[]:z(e,n)}function z(e,t){let n=U(e,`color.primary`,t);return[{name:`--bs-primary`,text:n},{name:`--bs-primary-rgb`,text:I(n)}]}function B(e,t,n){return!_.every(n=>e.tokens.has(n)&&t.tokens.has(n))||_.every(r=>e.resolvedIn(r,n)===t.resolvedIn(r,n))?[]:V(e,n)}function V(e,t){let n=U(e,`color.link`,t),r=U(e,`color.link-hover`,t);return[{name:`--bs-link-color`,text:n},{name:`--bs-link-color-rgb`,text:I(n)},{name:`--bs-link-hover-color`,text:r},{name:`--bs-link-hover-color-rgb`,text:I(r)}]}function H(e){return _.every(t=>e.tokens.has(t))?[{name:`--bs-link-color`,text:`var(--color-link)`,light:`var(--color-link)`},{name:`--bs-link-color-rgb`,text:I(U(e,`color.link`,l)),light:I(U(e,`color.link`,c))},{name:`--bs-link-hover-color`,text:`var(--color-link-hover)`,light:`var(--color-link-hover)`},{name:`--bs-link-hover-color-rgb`,text:I(U(e,`color.link-hover`,l)),light:I(U(e,`color.link-hover`,c))}]:[]}function U(e,t,n){let r=e.resolvedIn(t,n);if(typeof r!=`string`||!te.test(r))throw Error(`emitWeb: ${t}: a Bootstrap rgb triplet needs an opaque colour.`);return r}function W(e,t){let n=F(e,t?(e,n)=>!t.tokens.has(e)||!t.existsIn(e,l)||n!==j(t,e,l):(t,n)=>n!==j(e,t,c)),r=L(e,t?(e,n)=>n!==t.resolvedIn(e,l):()=>!0);if(t){let i=B(e,t,c).length>0?V(e,l):B(e,t,l);return[...n,...r,...i]}let i=f.map(([e,t])=>{let n=`var(${o(`color.${t}`)})`;return{name:e,text:n,light:n}});return[...n,...i,...r,...H(e)]}function G(e,t,n){return e.tokens.has(n)&&t.tokens.has(n)&&e.resolvedIn(n,c)!==t.resolvedIn(n,c)}function K(e,t){let n=f.filter(([n,r])=>n!==`--bs-primary`&&G(e,t,`color.${r}`)).map(([e,t])=>({name:e,text:`var(${o(`color.${t}`)})`})),r=p.filter(([n,r])=>n!==`--bs-primary-rgb`&&G(e,t,`color.${r}`)).map(([t,n])=>({name:t,text:I(U(e,`color.${n}`,c))}));return[...n,...r]}function q(e,t){return`${e} {\n${t.join(`
10
+ [data-bs-theme="dark"]:not(:root) [data-bs-theme="light"]`,S=`// var() resolves where a name is declared, so the html copies keep the light values for a light box.`,C=`/* var() resolves where a name is declared, so the html copies keep the light values for a light box. */`,w=`// Zero specificity, so a component's own class on a themed section or inside it keeps its colour.`,T=`/* Zero specificity, so a component's own class on a themed section or inside it keeps its colour. */`,E=`// A light box under a dark page root takes literal light values: var() would resolve against the dark root.`,ae=`/* A light box under a dark page root takes literal light values: var() would resolve against the dark root. */`;function D(e){return String(Number(e.toFixed(4)))}function O(e,t){return s(e.tokens.get(t),`token ${t}`)}function oe(e){if(e==null)return 1440;if(typeof e==`number`)return e;throw Error(`emitWeb: fluidUntil must be a number`)}function k(t,n){if(typeof n==`string`)return n.replace(d,(e,t)=>`var(${o(t)})`);if(typeof n==`number`)return D(n);if(Array.isArray(n)){if(t.type===`cubicBezier`&&n.length===4&&n.every(e=>typeof e==`number`))return`cubic-bezier(${n.map(e=>D(e)).join(`, `)})`;if(t.type===`fontFamily`&&n.every(e=>typeof e==`string`))return n.map(e=>/\s/.test(e)?`"${e}"`:e).join(`, `)}else if(e(n)){if(`unit`in n&&typeof n.value==`number`)return`${D(n.value)}${String(n.unit)}`;if(`color`in n)return[n.offsetX,n.offsetY,n.blur,n.spread,n.color].map(e=>k(t,e)).join(` `)}throw Error(`emitWeb: ${t.path}: cannot write a ${t.type} value as CSS.`)}function A(e,t,n){return k(O(e,t),e.valueIn(t,n))}function j(t,n){if(e(n)&&n.unit===`px`&&typeof n.value==`number`)return n.value;throw Error(`emitWeb: ${t}: a text size must be a px dimension.`)}function M(e,t){let n=O(e,t),a=o(t);if(n.group===`text`){if(r(n).length>0)throw Error(`emitWeb: ${t}: a text size cannot carry breakpoints.`);let o=j(t,e.valueIn(t,u)),s=j(t,e.valueIn(t,c)),l=n.extensions?.fluidUntil;if(o!==s&&l===void 0)throw Error(`emitWeb: ${t}: the 390 and 1440 sizes differ but no fluidUntil is recorded.`);return{path:t,name:a,root:i(o,s,oe(l)),tiers:[]}}let s=r(n);return s.length>0?{path:t,name:a,root:A(e,t,u),tiers:s.map(e=>({tier:e.tier,text:k(n,e.value)}))}:{path:t,name:a,root:A(e,t,c),tiers:[]}}function N(e){let t=[];for(let n of e.tokens.keys())e.existsIn(n,c)&&t.push(M(e,n));return t}function P(e,t){let n=[];for(let[i,a]of e.tokens){if(!e.existsIn(i,l)||!e.existsIn(i,c)||r(a).length>0)continue;let s=A(e,i,l);if(a.group===`text`){if(s!==A(e,i,c))throw Error(`emitWeb: ${i}: a text size cannot change with the mode.`)}else t(i,s)&&n.push({path:i,name:o(i),text:s,light:A(e,i,c)})}return n}function F(e){let t=Number.parseInt(e.slice(1),16);return`${t>>16&255}, ${t>>8&255}, ${t&255}`}function I(e,t){let n=[],r=(r,i)=>{for(let[a,o]of r){let r=`color.${o}`,s=U(e,r,l);if(t(r,s)){let t=i?F(U(e,r,c)):null;n.push({name:a,text:F(s),light:t})}}};return r(p,!0),r(ne,!1),n}function L(e,t,n){return!e.tokens.has(`color.primary`)||!t.tokens.has(`color.primary`)||e.resolvedIn(`color.primary`,n)===t.resolvedIn(`color.primary`,n)?[]:R(e,n)}function R(e,t){let n=U(e,`color.primary`,t);return[{name:`--bs-primary`,text:n},{name:`--bs-primary-rgb`,text:F(n)}]}function z(e){return!e.tokens.has(`color.primary-text`)||!e.tokens.has(`color.primary`)?!1:[c,l].some(t=>U(e,`color.primary-text`,t)!==U(e,`color.primary`,t))}function B(e,t,n){return!_.every(n=>e.tokens.has(n)&&t.tokens.has(n))||_.every(r=>e.resolvedIn(r,n)===t.resolvedIn(r,n))?[]:V(e,n)}function V(e,t){let n=U(e,`color.link`,t),r=U(e,`color.link-hover`,t);return[{name:`--bs-link-color`,text:n},{name:`--bs-link-color-rgb`,text:F(n)},{name:`--bs-link-hover-color`,text:r},{name:`--bs-link-hover-color-rgb`,text:F(r)}]}function H(e){return _.every(t=>e.tokens.has(t))?[{name:`--bs-link-color`,text:`var(--color-link)`,light:`var(--color-link)`},{name:`--bs-link-color-rgb`,text:F(U(e,`color.link`,l)),light:F(U(e,`color.link`,c))},{name:`--bs-link-hover-color`,text:`var(--color-link-hover)`,light:`var(--color-link-hover)`},{name:`--bs-link-hover-color-rgb`,text:F(U(e,`color.link-hover`,l)),light:F(U(e,`color.link-hover`,c))}]:[]}function U(e,t,n){let r=e.resolvedIn(t,n);if(typeof r!=`string`||!te.test(r))throw Error(`emitWeb: ${t}: a Bootstrap rgb triplet needs an opaque colour.`);return r}function W(e,t){let n=P(e,t?(e,n)=>!t.tokens.has(e)||!t.existsIn(e,l)||n!==A(t,e,l):(t,n)=>n!==A(e,t,c)),r=I(e,t?(e,n)=>n!==t.resolvedIn(e,l):()=>!0);if(t){let i=B(e,t,c).length>0?V(e,l):B(e,t,l);return[...n,...r,...i]}let i=f.map(([e,t])=>{let n=`var(${o(`color.${t}`)})`;return{name:e,text:n,light:n}});return[...n,...i,...r,...H(e)]}function G(e,t,n){return e.tokens.has(n)&&t.tokens.has(n)&&e.resolvedIn(n,c)!==t.resolvedIn(n,c)}function K(e,t){let n=f.filter(([n,r])=>n!==`--bs-primary`&&G(e,t,`color.${r}`)).map(([e,t])=>({name:e,text:`var(${o(`color.${t}`)})`})),r=p.filter(([n,r])=>n!==`--bs-primary-rgb`&&G(e,t,`color.${r}`)).map(([t,n])=>({name:t,text:F(U(e,`color.${n}`,c))}));return[...n,...r]}function q(e,t){return`${e} {\n${t.join(`
11
11
  `).split(`
12
12
  `).map(e=>e===``?e:` ${e}`).join(`
13
- `)}\n}`}function J(e){return e.split(`,
13
+ `)}\n}`}var se=`/* Bootstrap's text and link helpers read --bs-primary-rgb, the fill; these read the primary text token. */`,ce=[q(`.text-primary`,[`color: color-mix(in srgb, var(--color-primary-text) calc(var(--bs-text-opacity, 1) * 100%), transparent) !important;`]),q(`.link-primary`,[`color: color-mix(in srgb, var(--color-primary-text) calc(var(--bs-link-opacity, 1) * 100%), transparent) !important;`,`text-decoration-color: color-mix(
14
+ in srgb,
15
+ var(--color-primary-text) calc(var(--bs-link-underline-opacity, 1) * 100%),
16
+ transparent
17
+ ) !important;`])].join(`
18
+
19
+ `);function J(e){return e.split(`,
14
20
  `).map(e=>`:where(${e})`).join(`,
15
- `)}function oe(e,t){let n=W(e,null).filter(e=>e.light!=null);if(!t)return n;let r=new Map(W(t,null).filter(e=>e.light!=null).map(e=>[e.name,e.light]));return n.filter(e=>r.get(e.name)!==e.light)}function se(e,t){if(e.length===0)return[];let n=e.map(e=>`${e.name}: ${String(e.light)};`);return[t?D:E,q(y,n),q(J(y),[`color-scheme: light;`,`color: var(--color-text);`]),q(`@media (prefers-color-scheme: dark)`,[q(b,n),q(J(b),[`color-scheme: light;`,`color: var(--color-text);`])])]}function ce(e){let t=[];for(let n=0;n<e.length;n+=6)t.push(e.slice(n,n+6).join(`, `));return[`$wui-dark-layer-names: (\n${t.map((e,n)=>` ${e}${n<t.length-1?`,`:``}`).join(`
21
+ `)}function le(e,t){let n=W(e,null).filter(e=>e.light!=null);if(!t)return n;let r=new Map(W(t,null).filter(e=>e.light!=null).map(e=>[e.name,e.light]));return n.filter(e=>r.get(e.name)!==e.light)}function ue(e,t){if(e.length===0)return[];let n=e.map(e=>`${e.name}: ${String(e.light)};`);return[t?ae:E,q(y,n),q(J(y),[`color-scheme: light;`,`color: var(--color-text);`]),q(`@media (prefers-color-scheme: dark)`,[q(b,n),q(J(b),[`color-scheme: light;`,`color: var(--color-text);`])])]}function Y(e){let t=[];for(let n=0;n<e.length;n+=6)t.push(e.slice(n,n+6).join(`, `));return[`$wui-dark-layer-names: (\n${t.map((e,n)=>` ${e}${n<t.length-1?`,`:``}`).join(`
16
22
  `)}\n);`,S,q(`html`,[`@each $name in $wui-dark-layer-names {`,` --wui-light-#{$name}: var(--#{$name});`,`}`]),q(x,[`@each $name in $wui-dark-layer-names {`,` --#{$name}: var(--wui-light-#{$name});`,`}`]),q(J(x),[`color-scheme: light;`,`color: var(--color-text);`])].join(`
17
23
 
18
- `)}function le(e){return[C,q(`html`,e.map(e=>`--wui-light-${e}: var(--${e});`)),q(x,e.map(e=>`--${e}: var(--wui-light-${e});`)),q(J(x),[`color-scheme: light;`,`color: var(--color-text);`])].join(`
24
+ `)}function de(e){return[C,q(`html`,e.map(e=>`--wui-light-${e}: var(--${e});`)),q(x,e.map(e=>`--${e}: var(--wui-light-${e});`)),q(J(x),[`color-scheme: light;`,`color: var(--color-text);`])].join(`
19
25
 
20
- `)}function Y(e,t,n=!1){let{package:r,version:i,brand:a}=e.source,o=t?`Generated by ${r} ${i} for the ${a} brand. Do not edit; run webority brand.`:`Generated by ${r} ${i} from its token source. Do not edit; run webority brand --library.`;return n?`/* ${o} */`:`// ${o}`}function X(e,r){let i=P(e),o=new Map((r?P(r):[]).map(e=>[e.path,e])),s=[],l=i.filter(e=>o.get(e.path)?.root!==e.root).map(e=>`${e.name}: ${e.root};`);r&&(l.push(...R(e,r,c).map(e=>`${e.name}: ${e.text};`)),l.push(...B(e,r,c).map(e=>`${e.name}: ${e.text};`)),l.push(...K(e,r).map(e=>`${e.name}: ${e.text};`))),l.length>0&&s.push(q(`:root`,l));for(let[e,n]of Object.entries(t)){let t=[];for(let n of i)for(let r of n.tiers)r.tier===e&&o.get(n.path)?.tiers.find(t=>t.tier===e)?.text!==r.text&&t.push(`${n.name}: ${r.text};`);t.length>0&&s.push(q(`@media (min-width: ${n}px)`,[q(`:root`,t)]))}let u=[];for(let t of i){let n=k(e,t.path),i=a(n);if(i===null)continue;let o=A(n,i),s=r?.tokens.get(t.path),c=s?a(s):null;s&&c!==null&&A(s,c)===o||u.push(`${t.name}: ${o};`)}u.length>0&&s.push(q(`@media ${n}`,[q(`:root`,u)]));let d=W(e,r);if(d.length>0){let t=d.map(e=>`${e.name}: ${e.text};`),n=r?T:w;s.push(q(re,[...t,`color-scheme: dark;`]),q(v,t),`${n}\n${q(J(v),[`color-scheme: dark;`,`color: var(--color-text);`])}`);let i=d.map(e=>e.name.slice(2));if(r){let e=new Set(W(r,null).map(e=>e.name.slice(2))),t=i.filter(t=>!e.has(t));t.length>0&&s.push(le(t))}else s.push(ce(i));s.push(q(`@media (prefers-color-scheme: dark)`,[q(ie,[...t,`color-scheme: dark;`])])),s.push(...se(oe(e,r),r!==null))}return`${[Y(e,r!==null,r!==null),...s].join(`
26
+ `)}function X(e,t,n=!1){let{package:r,version:i,brand:a}=e.source,o=t?`Generated by ${r} ${i} for the ${a} brand. Do not edit; run webority brand.`:`Generated by ${r} ${i} from its token source. Do not edit; run webority brand --library.`;return n?`/* ${o} */`:`// ${o}`}function Z(e,r){let i=N(e),o=new Map((r?N(r):[]).map(e=>[e.path,e])),s=[],l=i.filter(e=>o.get(e.path)?.root!==e.root).map(e=>`${e.name}: ${e.root};`);r&&(l.push(...L(e,r,c).map(e=>`${e.name}: ${e.text};`)),l.push(...B(e,r,c).map(e=>`${e.name}: ${e.text};`)),l.push(...K(e,r).map(e=>`${e.name}: ${e.text};`))),l.length>0&&s.push(q(`:root`,l));for(let[e,n]of Object.entries(t)){let t=[];for(let n of i)for(let r of n.tiers)r.tier===e&&o.get(n.path)?.tiers.find(t=>t.tier===e)?.text!==r.text&&t.push(`${n.name}: ${r.text};`);t.length>0&&s.push(q(`@media (min-width: ${n}px)`,[q(`:root`,t)]))}let u=[];for(let t of i){let n=O(e,t.path),i=a(n);if(i===null)continue;let o=k(n,i),s=r?.tokens.get(t.path),c=s?a(s):null;s&&c!==null&&k(s,c)===o||u.push(`${t.name}: ${o};`)}u.length>0&&s.push(q(`@media ${n}`,[q(`:root`,u)]));let d=W(e,r);if(d.length>0){let t=d.map(e=>`${e.name}: ${e.text};`),n=r?T:w;s.push(q(re,[...t,`color-scheme: dark;`]),q(v,t),`${n}\n${q(J(v),[`color-scheme: dark;`,`color: var(--color-text);`])}`);let i=d.map(e=>e.name.slice(2));if(r){let e=new Set(W(r,null).map(e=>e.name.slice(2))),t=i.filter(t=>!e.has(t));t.length>0&&s.push(de(t))}else s.push(Y(i));s.push(q(`@media (prefers-color-scheme: dark)`,[q(ie,[...t,`color-scheme: dark;`])])),s.push(...ue(le(e,r),r!==null))}return r!==null&&z(e)&&s.push(`${se}\n${ce}`),`${[X(e,r!==null,r!==null),...s].join(`
21
27
 
22
- `)}\n`}function Z(e,t){let n=k(e,t);if(n.type===`color`)return String(e.resolvedIn(t,c));let r=e.valueIn(t,c),i=(typeof r==`string`?ee.exec(r):null)?.[1];if(i!==void 0)return Z(e,i);let a=A(n,r);if(a.includes(`var(`))throw Error(`emitWeb: ${t}: a Bootstrap variable needs a literal.`);return a}function Q(e,t,n){return n===null?g[t]:Z(e,n)}function $(e){let t=m.map(([t,n])=>`${t}: ${String(Q(e,t,n))} !default;`);return`${[Y(e,!1),...t].join(`
23
- `)}\n`}function ue(e,t){let n=[...h,...m].filter(([n,r])=>Q(e,n,r)!==Q(t,n,r)),r=n.map(([t,n])=>`${t}: ${String(Q(e,t,n))};`),i=n.map(([e])=>e),a=i.length===0?[]:[`@use "@webority/theme/scss/config" with (`,...i.map((e,t)=>` ${e}: ${e}${t<i.length-1?`,`:``}`),`);`];return`${[Y(e,!0),...r,...a].join(`
24
- `)}\n`}function de(e,t){return t===void 0?{tokens:X(e,null),bootstrap:$(e)}:{css:X(e,t.library),variables:ue(e,t.library)}}export{de as emitWeb};
28
+ `)}\n`}function Q(e,t){let n=O(e,t);if(n.type===`color`)return String(e.resolvedIn(t,c));let r=e.valueIn(t,c),i=(typeof r==`string`?ee.exec(r):null)?.[1];if(i!==void 0)return Q(e,i);let a=k(n,r);if(a.includes(`var(`))throw Error(`emitWeb: ${t}: a Bootstrap variable needs a literal.`);return a}function $(e,t,n){return n===null?g[t]:Q(e,n)}function fe(e){let t=m.map(([t,n])=>`${t}: ${String($(e,t,n))} !default;`);return`${[X(e,!1),...t].join(`
29
+ `)}\n`}function pe(e,t){let n=[...h,...m].filter(([n,r])=>$(e,n,r)!==$(t,n,r)),r=n.map(([t,n])=>`${t}: ${String($(e,t,n))};`),i=n.map(([e])=>e),a=i.length===0?[]:[`@use "@webority/theme/scss/config" with (`,...i.map((e,t)=>` ${e}: ${e}${t<i.length-1?`,`:``}`),`);`];return`${[X(e,!0),...r,...a].join(`
30
+ `)}\n`}function me(e,t){return t===void 0?{tokens:Z(e,null),bootstrap:fe(e)}:{css:Z(e,t.library),variables:pe(e,t.library)}}export{me as emitWeb};
@@ -2,7 +2,7 @@
2
2
  "format": "webority-meanings/1",
3
3
  "source": {
4
4
  "package": "@webority/tokens",
5
- "version": "0.163.0"
5
+ "version": "0.164.0"
6
6
  },
7
7
  "color": {
8
8
  "bg": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/tokens",
3
- "version": "0.163.0",
3
+ "version": "0.164.0",
4
4
  "description": "The Webority design tokens in one W3C Design Tokens source (palette, scale, meaning and component tiers, with light and dark, web and phone, and 390 and 1440 widths), and the webority command that brands a product, upgrades it between releases and checks it against the token source.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -41,7 +41,7 @@
41
41
  "devDependencies": {
42
42
  "@babel/types": "7.29.8",
43
43
  "@types/node": "25.6.0",
44
- "@webority/biome-config": "0.163.0",
44
+ "@webority/biome-config": "0.164.0",
45
45
  "ajv": "8.20.0",
46
46
  "typescript": "^7.0.2",
47
47
  "vite": "^8.3.6"
@@ -0,0 +1,32 @@
1
+ {
2
+ "version": "0.164.0",
3
+ "css": {
4
+ "rename": [],
5
+ "reads": [],
6
+ "choose": {},
7
+ "checkRole": []
8
+ },
9
+ "classes": [],
10
+ "themeReads": [],
11
+ "props": [],
12
+ "propValues": [],
13
+ "propSplits": [],
14
+ "razorAttributes": [],
15
+ "componentProps": [],
16
+ "valueSplits": [],
17
+ "components": [],
18
+ "razorValueSplits": [],
19
+ "razorTags": [
20
+ {
21
+ "from": "app-check",
22
+ "to": "app-checkbox",
23
+ "addAttributes": {},
24
+ "renameAttributes": {},
25
+ "valueMaps": {},
26
+ "removeAttributes": {}
27
+ }
28
+ ],
29
+ "razorEnumAttributes": [],
30
+ "razorListAttributes": [],
31
+ "csharpEnumArguments": []
32
+ }