@seatlayer/core 0.71.5 → 0.72.1

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.
Files changed (74) hide show
  1. package/dist/{categoryInventory-r3OfIEQn.d.cts → categoryInventory-BU1j8Q70.d.cts} +1 -1
  2. package/dist/{categoryInventory-B8CDQtH4.d.ts → categoryInventory-Bt-0psga.d.ts} +1 -1
  3. package/dist/chunk-5U25QLSS.js +1 -0
  4. package/dist/{chunk-LR7WIR5Z.js → chunk-ALE2T36W.js} +1 -1
  5. package/dist/chunk-BLPBTW6I.js +1 -0
  6. package/dist/{chunk-GXMGOWKB.js → chunk-FMZ6HLDH.js} +1 -1
  7. package/dist/chunk-HXYWP6NX.js +1 -0
  8. package/dist/chunk-JBOTRSMY.js +1 -0
  9. package/dist/{chunk-MR2O5WC7.js → chunk-O5UWBFUT.js} +1 -1
  10. package/dist/chunk-XLGYWT5G.js +1 -0
  11. package/dist/chunk-YW2WGLRM.js +1 -0
  12. package/dist/core/chart-ops/index.cjs +1 -1
  13. package/dist/core/chart-ops/index.d.cts +38 -9
  14. package/dist/core/chart-ops/index.d.ts +38 -9
  15. package/dist/core/chart-ops/index.js +1 -1
  16. package/dist/core/color.cjs +1 -1
  17. package/dist/core/color.d.cts +4 -1
  18. package/dist/core/color.d.ts +4 -1
  19. package/dist/core/color.js +1 -1
  20. package/dist/core/inventory/index.cjs +1 -1
  21. package/dist/core/inventory/index.d.cts +15 -5
  22. package/dist/core/inventory/index.d.ts +15 -5
  23. package/dist/core/inventory/index.js +1 -1
  24. package/dist/core/layout/index.d.cts +6 -6
  25. package/dist/core/layout/index.d.ts +6 -6
  26. package/dist/core/quality/index.cjs +1 -1
  27. package/dist/core/quality/index.d.cts +3 -3
  28. package/dist/core/quality/index.d.ts +3 -3
  29. package/dist/core/quality/index.js +1 -1
  30. package/dist/core/render-assets/index.cjs +1 -1
  31. package/dist/core/render-assets/index.d.cts +1 -1
  32. package/dist/core/render-assets/index.d.ts +1 -1
  33. package/dist/core/render-assets/index.js +1 -1
  34. package/dist/core/seatConfidence.d.cts +1 -1
  35. package/dist/core/seatConfidence.d.ts +1 -1
  36. package/dist/core/sections/index.d.cts +7 -7
  37. package/dist/core/sections/index.d.ts +7 -7
  38. package/dist/{eventConfigurations-ByU_uPeS.d.cts → eventConfigurations-3uSorYVC.d.cts} +1 -1
  39. package/dist/{eventConfigurations-0OC43JJY.d.ts → eventConfigurations-DfVUGyCg.d.ts} +1 -1
  40. package/dist/index.cjs +1 -1
  41. package/dist/index.d.cts +12 -12
  42. package/dist/index.d.ts +12 -12
  43. package/dist/index.js +1 -1
  44. package/dist/{labeling-DAGq3u0z.d.cts → labeling-9RWWmJhZ.d.cts} +1 -1
  45. package/dist/{labeling-B05IJwd2.d.ts → labeling-BiWB-8aq.d.ts} +1 -1
  46. package/dist/{layout-e0Qe7jmM.d.cts → layout-B6iOoPOv.d.cts} +3 -3
  47. package/dist/{layout-DkDRcXvu.d.ts → layout-B7URbtDR.d.ts} +3 -3
  48. package/dist/{renderedQuality-BaejczsK.d.cts → renderedQuality-BZsq3wDe.d.cts} +1 -1
  49. package/dist/{renderedQuality-BwwrqYzX.d.ts → renderedQuality-C5dQiq97.d.ts} +1 -1
  50. package/dist/{renderer-BNicx5sw.d.ts → renderer-6sFRupj0.d.ts} +2 -2
  51. package/dist/{renderer-Duv1HhQg.d.cts → renderer-CBOo1OZk.d.cts} +2 -2
  52. package/dist/{sections-CrX4vq-m.d.ts → sections-Cn_sk1Sx.d.ts} +1 -1
  53. package/dist/{sections-BjGjR21N.d.cts → sections-DU6YDYoZ.d.cts} +1 -1
  54. package/dist/{segmentedRowModel-UO_YIQRB.d.cts → segmentedRowModel-CKmyHvKv.d.cts} +1 -1
  55. package/dist/{segmentedRowModel-BOO8w9Ng.d.ts → segmentedRowModel-DbP7pWUk.d.ts} +1 -1
  56. package/dist/{ticketRestrictions-dvlNTwem.d.ts → ticketRestrictions-CvS2oQ8v.d.ts} +2 -2
  57. package/dist/{ticketRestrictions-DUQrKTpS.d.cts → ticketRestrictions-DkenahW2.d.cts} +2 -2
  58. package/dist/{types-0yruRsAj.d.cts → types-D6-wLa-m.d.cts} +200 -20
  59. package/dist/{types-0yruRsAj.d.ts → types-D6-wLa-m.d.ts} +200 -20
  60. package/dist/view3d/crossfade/panorama.d.cts +1 -1
  61. package/dist/view3d/crossfade/panorama.d.ts +1 -1
  62. package/dist/view3d/index.cjs +27 -27
  63. package/dist/view3d/index.d.cts +3 -3
  64. package/dist/view3d/index.d.ts +3 -3
  65. package/dist/view3d/index.js +1 -1
  66. package/dist/view3d/scene/scene.worker.cjs +1 -1
  67. package/dist/view3d/scene/scene.worker.js +1 -1
  68. package/package.json +1 -1
  69. package/dist/chunk-7KS6TAYH.js +0 -1
  70. package/dist/chunk-CXF32VPG.js +0 -1
  71. package/dist/chunk-JBGLFOJO.js +0 -1
  72. package/dist/chunk-NXFDYBZY.js +0 -1
  73. package/dist/chunk-SKO3DCVB.js +0 -1
  74. package/dist/chunk-T2LWVOQ3.js +0 -1
@@ -1 +1 @@
1
- "use strict";var R=Object.defineProperty;var L=Object.getOwnPropertyDescriptor;var _=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var I=(n,r)=>{for(var t in r)R(n,t,{get:r[t],enumerable:!0})},S=(n,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of _(r))!y.call(n,o)&&o!==t&&R(n,o,{get:()=>r[o],enumerable:!(e=L(r,o))||e.enumerable});return n};var j=n=>S(R({},"__esModule",{value:!0}),n);var rn={};I(rn,{AA_LARGE:()=>w,AA_TEXT:()=>P,colorLuma:()=>M,contrastRatio:()=>f,contrastRatioOrNull:()=>O,darken:()=>D,desaturate:()=>Q,desaturateRgb01:()=>Z,hexToRgb:()=>N,hexToRgb01:()=>G,hexToRgb255:()=>c,hslToRgb:()=>v,inkFor:()=>tn,isHexColor:()=>d,isLightColor:()=>Y,judgeAccent:()=>nn,lerpColor:()=>J,lighten:()=>z,luma01:()=>C,mixColors:()=>K,mixRgb01:()=>E,opaqueColorHex:()=>W,passes:()=>U,relativeLuminance:()=>h,relativeLuminance01:()=>B,relativeLuminance255:()=>x,rgb01ToHex:()=>V,rgb255ToHex:()=>l,rgbToHex:()=>$,rgbToHsl:()=>k,rgba:()=>q,withAlpha:()=>H});module.exports=j(rn);var F=/^#[0-9a-fA-F]{6}$/,T=/^#?([\da-f]{3}|[\da-f]{6})$/i,X=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*([\d.]+))?\s*\)$/i;function d(n){return typeof n=="string"&&F.test(n)}function N(n){let r=n.replace("#","");return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16)}}function c(n){let r=T.exec((n??"").trim());if(!r)return null;let t=r[1].length===3?r[1].split("").map(o=>o+o).join(""):r[1],e=parseInt(t,16);return[e>>16&255,e>>8&255,e&255]}function G(n){let r=c(n);return r?[r[0]/255,r[1]/255,r[2]/255]:null}function $({r:n,g:r,b:t}){let e=o=>Math.max(0,Math.min(255,Math.round(o))).toString(16).padStart(2,"0");return`#${e(n)}${e(r)}${e(t)}`}function l(n,r,t){return $({r:n,g:r,b:t})}function V(n){return l(n[0]*255,n[1]*255,n[2]*255)}function W(n){let r=n.trim(),t=T.exec(r);if(t&&r.startsWith("#"))return`#${(t[1].length===3?t[1].split("").map(s=>s+s).join(""):t[1]).toLowerCase()}`;let e=X.exec(r);if(!e||e[4]!=null&&Number(e[4])<.999)return null;let o=[Number(e[1]),Number(e[2]),Number(e[3])];return o.some(i=>!Number.isInteger(i)||i<0||i>255)?null:`#${o.map(i=>i.toString(16).padStart(2,"0")).join("")}`}function m(n){let r=n/255;return r<=.04045?r/12.92:((r+.055)/1.055)**2.4}function h(n){let{r,g:t,b:e}=N(n);return .2126*m(r)+.7152*m(t)+.0722*m(e)}function x(n){return .2126*m(n[0])+.7152*m(n[1])+.0722*m(n[2])}function B(n){return x([n[0]*255,n[1]*255,n[2]*255])}function f(n,r){let t=h(n),e=h(r);return(Math.max(t,e)+.05)/(Math.min(t,e)+.05)}function O(n,r){let t=c(n),e=c(r);if(!t||!e)return null;let o=x(t),i=x(e);return(Math.max(o,i)+.05)/(Math.min(o,i)+.05)}var P=4.5,w=3;function U(n,r,t){return f(n,r)>=t}function M(n){let r=n.trim();if(r.startsWith("#")){let e=c(r);return e?(.2126*e[0]+.7152*e[1]+.0722*e[2])/255:NaN}let t=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/.exec(r);return t?(.2126*+t[1]+.7152*+t[2]+.0722*+t[3])/255:NaN}function C(n){return .2126*n[0]+.7152*n[1]+.0722*n[2]}function Y(n,r=.6){let t=M(n);return!Number.isNaN(t)&&t>r}function z(n,r){let t=c(n);return t?l(...t.map(e=>e+(255-e)*r)):n}function D(n,r){let t=c(n);return t?l(...t.map(e=>e*(1-r))):n}function J(n,r,t){let e=c(n),o=c(r);return!e||!o?n:l(e[0]+(o[0]-e[0])*t,e[1]+(o[1]-e[1])*t,e[2]+(o[2]-e[2])*t)}function K(n,r){let t=0,e=0,o=0,i=0;for(let s of n){let u=c(s.hex);!u||s.w<=0||(t+=u[0]*s.w,e+=u[1]*s.w,o+=u[2]*s.w,i+=s.w)}return i>0?l(t/i,e/i,o/i):r}function E(n,r,t){return[n[0]+(r[0]-n[0])*t,n[1]+(r[1]-n[1])*t,n[2]+(r[2]-n[2])*t]}function Q(n,r){let t=c(n);if(!t)return n;let e=.2126*t[0]+.7152*t[1]+.0722*t[2];return l(...t.map(o=>o+(e-o)*r))}function Z(n,r){let t=C(n);return E(n,[t,t,t],r)}function H(n,r){let t=c(n);return t?`rgba(${t[0]},${t[1]},${t[2]},${r})`:n}var q=H;function k({r:n,g:r,b:t}){let e=n/255,o=r/255,i=t/255,s=Math.max(e,o,i),u=Math.min(e,o,i),a=(s+u)/2;if(s===u)return{h:0,s:0,l:a};let g=s-u,p=a>.5?g/(2-s-u):g/(s+u),b;return s===e?b=((o-i)/g+(o<i?6:0))/6:s===o?b=((i-e)/g+2)/6:b=((e-o)/g+4)/6,{h:b,s:p,l:a}}function v(n,r,t){if(r===0)return{r:t*255,g:t*255,b:t*255};let e=t<.5?t*(1+r):t+r-t*r,o=2*t-e,i=s=>{let u=s;return u<0&&(u+=1),u>1&&(u-=1),u<1/6?o+(e-o)*6*u:u<1/2?e:u<2/3?o+(e-o)*(2/3-u)*6:o};return{r:i(n+1/3)*255,g:i(n)*255,b:i(n-1/3)*255}}function nn(n,r,t=w){if(!d(n)||!d(r))return{requested:n,ratio:0,ok:!1,suggestion:null,suggestionRatio:0};let e=f(n,r);if(e>=t)return{requested:n,ratio:e,ok:!0,suggestion:null,suggestionRatio:e};let{h:o,s:i,l:s}=k(N(n)),u=.01,a=null;for(let g=u;g<=1;g+=u){for(let p of[s+g,s-g]){if(p<0||p>1)continue;let b=$(v(o,i,p)),A=f(b,r);if(A>=t){a={hex:b,ratio:A};break}}if(a)break}return{requested:n,ratio:e,ok:!1,suggestion:a?.hex??null,suggestionRatio:a?.ratio??0}}function tn(n,r,t){return f(r,n)>=f(t,n)?r:t}0&&(module.exports={AA_LARGE,AA_TEXT,colorLuma,contrastRatio,contrastRatioOrNull,darken,desaturate,desaturateRgb01,hexToRgb,hexToRgb01,hexToRgb255,hslToRgb,inkFor,isHexColor,isLightColor,judgeAccent,lerpColor,lighten,luma01,mixColors,mixRgb01,opaqueColorHex,passes,relativeLuminance,relativeLuminance01,relativeLuminance255,rgb01ToHex,rgb255ToHex,rgbToHex,rgbToHsl,rgba,withAlpha});
1
+ "use strict";var A=Object.defineProperty;var X=Object.getOwnPropertyDescriptor;var z=Object.getOwnPropertyNames;var G=Object.prototype.hasOwnProperty;var V=(n,r)=>{for(var t in r)A(n,t,{get:r[t],enumerable:!0})},W=(n,r,t,e)=>{if(r&&typeof r=="object"||typeof r=="function")for(let o of z(r))!G.call(n,o)&&o!==t&&A(n,o,{get:()=>r[o],enumerable:!(e=X(r,o))||e.enumerable});return n};var B=n=>W(A({},"__esModule",{value:!0}),n);var an={};V(an,{AA_LARGE:()=>C,AA_TEXT:()=>Z,colorLuma:()=>H,contrastRatio:()=>p,contrastRatioOrNull:()=>Q,darken:()=>rn,deltaE:()=>J,desaturate:()=>sn,desaturateRgb01:()=>un,hexToRgb:()=>w,hexToRgb01:()=>U,hexToRgb255:()=>g,hslToRgb:()=>I,inkFor:()=>bn,isHexColor:()=>M,isLightColor:()=>nn,judgeAccent:()=>gn,lerpColor:()=>en,lighten:()=>tn,luma01:()=>L,mixColors:()=>on,mixRgb01:()=>k,opaqueColorHex:()=>D,passes:()=>q,relativeLuminance:()=>T,relativeLuminance01:()=>K,relativeLuminance255:()=>h,rgb01ToHex:()=>Y,rgb255ToHex:()=>m,rgbToHex:()=>y,rgbToHsl:()=>v,rgba:()=>cn,withAlpha:()=>_});module.exports=B(an);var O=/^#[0-9a-fA-F]{6}$/,E=/^#?([\da-f]{3}|[\da-f]{6})$/i,P=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*([\d.]+))?\s*\)$/i;function M(n){return typeof n=="string"&&O.test(n)}function w(n){let r=n.replace("#","");return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16)}}function g(n){let r=E.exec((n??"").trim());if(!r)return null;let t=r[1].length===3?r[1].split("").map(o=>o+o).join(""):r[1],e=parseInt(t,16);return[e>>16&255,e>>8&255,e&255]}function U(n){let r=g(n);return r?[r[0]/255,r[1]/255,r[2]/255]:null}function y({r:n,g:r,b:t}){let e=o=>Math.max(0,Math.min(255,Math.round(o))).toString(16).padStart(2,"0");return`#${e(n)}${e(r)}${e(t)}`}function m(n,r,t){return y({r:n,g:r,b:t})}function Y(n){return m(n[0]*255,n[1]*255,n[2]*255)}function D(n){let r=n.trim(),t=E.exec(r);if(t&&r.startsWith("#"))return`#${(t[1].length===3?t[1].split("").map(u=>u+u).join(""):t[1]).toLowerCase()}`;let e=P.exec(r);if(!e||e[4]!=null&&Number(e[4])<.999)return null;let o=[Number(e[1]),Number(e[2]),Number(e[3])];return o.some(s=>!Number.isInteger(s)||s<0||s>255)?null:`#${o.map(s=>s.toString(16).padStart(2,"0")).join("")}`}function J(n,r){let t=s=>{let u=g(s);if(!u)return null;let i=x=>{let $=x/255;return $<=.04045?$/12.92:(($+.055)/1.055)**2.4},b=i(u[0]),c=i(u[1]),a=i(u[2]),l=(.4124*b+.3576*c+.1805*a)/.95047,R=.2126*b+.7152*c+.0722*a,S=(.0193*b+.1192*c+.9505*a)/1.08883,d=x=>x>.008856?Math.cbrt(x):7.787*x+16/116,j=d(l),N=d(R),F=d(S);return[116*N-16,500*(j-N),200*(N-F)]},e=t(n),o=t(r);return e&&o?Math.hypot(e[0]-o[0],e[1]-o[1],e[2]-o[2]):null}function f(n){let r=n/255;return r<=.04045?r/12.92:((r+.055)/1.055)**2.4}function T(n){let{r,g:t,b:e}=w(n);return .2126*f(r)+.7152*f(t)+.0722*f(e)}function h(n){return .2126*f(n[0])+.7152*f(n[1])+.0722*f(n[2])}function K(n){return h([n[0]*255,n[1]*255,n[2]*255])}function p(n,r){let t=T(n),e=T(r);return(Math.max(t,e)+.05)/(Math.min(t,e)+.05)}function Q(n,r){let t=g(n),e=g(r);if(!t||!e)return null;let o=h(t),s=h(e);return(Math.max(o,s)+.05)/(Math.min(o,s)+.05)}var Z=4.5,C=3;function q(n,r,t){return p(n,r)>=t}function H(n){let r=n.trim();if(r.startsWith("#")){let e=g(r);return e?(.2126*e[0]+.7152*e[1]+.0722*e[2])/255:NaN}let t=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/.exec(r);return t?(.2126*+t[1]+.7152*+t[2]+.0722*+t[3])/255:NaN}function L(n){return .2126*n[0]+.7152*n[1]+.0722*n[2]}function nn(n,r=.6){let t=H(n);return!Number.isNaN(t)&&t>r}function tn(n,r){let t=g(n);return t?m(...t.map(e=>e+(255-e)*r)):n}function rn(n,r){let t=g(n);return t?m(...t.map(e=>e*(1-r))):n}function en(n,r,t){let e=g(n),o=g(r);return!e||!o?n:m(e[0]+(o[0]-e[0])*t,e[1]+(o[1]-e[1])*t,e[2]+(o[2]-e[2])*t)}function on(n,r){let t=0,e=0,o=0,s=0;for(let u of n){let i=g(u.hex);!i||u.w<=0||(t+=i[0]*u.w,e+=i[1]*u.w,o+=i[2]*u.w,s+=u.w)}return s>0?m(t/s,e/s,o/s):r}function k(n,r,t){return[n[0]+(r[0]-n[0])*t,n[1]+(r[1]-n[1])*t,n[2]+(r[2]-n[2])*t]}function sn(n,r){let t=g(n);if(!t)return n;let e=.2126*t[0]+.7152*t[1]+.0722*t[2];return m(...t.map(o=>o+(e-o)*r))}function un(n,r){let t=L(n);return k(n,[t,t,t],r)}function _(n,r){let t=g(n);return t?`rgba(${t[0]},${t[1]},${t[2]},${r})`:n}var cn=_;function v({r:n,g:r,b:t}){let e=n/255,o=r/255,s=t/255,u=Math.max(e,o,s),i=Math.min(e,o,s),b=(u+i)/2;if(u===i)return{h:0,s:0,l:b};let c=u-i,a=b>.5?c/(2-u-i):c/(u+i),l;return u===e?l=((o-s)/c+(o<s?6:0))/6:u===o?l=((s-e)/c+2)/6:l=((e-o)/c+4)/6,{h:l,s:a,l:b}}function I(n,r,t){if(r===0)return{r:t*255,g:t*255,b:t*255};let e=t<.5?t*(1+r):t+r-t*r,o=2*t-e,s=u=>{let i=u;return i<0&&(i+=1),i>1&&(i-=1),i<1/6?o+(e-o)*6*i:i<1/2?e:i<2/3?o+(e-o)*(2/3-i)*6:o};return{r:s(n+1/3)*255,g:s(n)*255,b:s(n-1/3)*255}}function gn(n,r,t=C){if(!M(n)||!M(r))return{requested:n,ratio:0,ok:!1,suggestion:null,suggestionRatio:0};let e=p(n,r);if(e>=t)return{requested:n,ratio:e,ok:!0,suggestion:null,suggestionRatio:e};let{h:o,s,l:u}=v(w(n)),i=.01,b=null;for(let c=i;c<=1;c+=i){for(let a of[u+c,u-c]){if(a<0||a>1)continue;let l=y(I(o,s,a)),R=p(l,r);if(R>=t){b={hex:l,ratio:R};break}}if(b)break}return{requested:n,ratio:e,ok:!1,suggestion:b?.hex??null,suggestionRatio:b?.ratio??0}}function bn(n,r,t){return p(r,n)>=p(t,n)?r:t}0&&(module.exports={AA_LARGE,AA_TEXT,colorLuma,contrastRatio,contrastRatioOrNull,darken,deltaE,desaturate,desaturateRgb01,hexToRgb,hexToRgb01,hexToRgb255,hslToRgb,inkFor,isHexColor,isLightColor,judgeAccent,lerpColor,lighten,luma01,mixColors,mixRgb01,opaqueColorHex,passes,relativeLuminance,relativeLuminance01,relativeLuminance255,rgb01ToHex,rgb255ToHex,rgbToHex,rgbToHsl,rgba,withAlpha});
@@ -66,6 +66,9 @@ declare function rgb01ToHex(rgb: Rgb01): string;
66
66
  * a translucent paint being REFUSED rather than silently flattened.
67
67
  */
68
68
  declare function opaqueColorHex(color: string): string | null;
69
+ /** Perceptual CIE76 distance for two opaque hex colours. `null` means either
70
+ * input is not a supported colour, so callers never silently group bad input. */
71
+ declare function deltaE(a: string, b: string): number | null;
69
72
  /** WCAG relative luminance of a strict `#rrggbb`. `NaN` for an invalid hex. */
70
73
  declare function relativeLuminance(hex: string): number;
71
74
  /** WCAG relative luminance from 0–255 channels. */
@@ -189,4 +192,4 @@ declare function judgeAccent(requested: string, ground: string, floor?: number):
189
192
  */
190
193
  declare function inkFor(background: string, dark: string, light: string): string;
191
194
 
192
- export { AA_LARGE, AA_TEXT, type AccentVerdict, type Rgb, type Rgb01, type Rgb255, colorLuma, contrastRatio, contrastRatioOrNull, darken, desaturate, desaturateRgb01, hexToRgb, hexToRgb01, hexToRgb255, hslToRgb, inkFor, isHexColor, isLightColor, judgeAccent, lerpColor, lighten, luma01, mixColors, mixRgb01, opaqueColorHex, passes, relativeLuminance, relativeLuminance01, relativeLuminance255, rgb01ToHex, rgb255ToHex, rgbToHex, rgbToHsl, rgba, withAlpha };
195
+ export { AA_LARGE, AA_TEXT, type AccentVerdict, type Rgb, type Rgb01, type Rgb255, colorLuma, contrastRatio, contrastRatioOrNull, darken, deltaE, desaturate, desaturateRgb01, hexToRgb, hexToRgb01, hexToRgb255, hslToRgb, inkFor, isHexColor, isLightColor, judgeAccent, lerpColor, lighten, luma01, mixColors, mixRgb01, opaqueColorHex, passes, relativeLuminance, relativeLuminance01, relativeLuminance255, rgb01ToHex, rgb255ToHex, rgbToHex, rgbToHsl, rgba, withAlpha };
@@ -66,6 +66,9 @@ declare function rgb01ToHex(rgb: Rgb01): string;
66
66
  * a translucent paint being REFUSED rather than silently flattened.
67
67
  */
68
68
  declare function opaqueColorHex(color: string): string | null;
69
+ /** Perceptual CIE76 distance for two opaque hex colours. `null` means either
70
+ * input is not a supported colour, so callers never silently group bad input. */
71
+ declare function deltaE(a: string, b: string): number | null;
69
72
  /** WCAG relative luminance of a strict `#rrggbb`. `NaN` for an invalid hex. */
70
73
  declare function relativeLuminance(hex: string): number;
71
74
  /** WCAG relative luminance from 0–255 channels. */
@@ -189,4 +192,4 @@ declare function judgeAccent(requested: string, ground: string, floor?: number):
189
192
  */
190
193
  declare function inkFor(background: string, dark: string, light: string): string;
191
194
 
192
- export { AA_LARGE, AA_TEXT, type AccentVerdict, type Rgb, type Rgb01, type Rgb255, colorLuma, contrastRatio, contrastRatioOrNull, darken, desaturate, desaturateRgb01, hexToRgb, hexToRgb01, hexToRgb255, hslToRgb, inkFor, isHexColor, isLightColor, judgeAccent, lerpColor, lighten, luma01, mixColors, mixRgb01, opaqueColorHex, passes, relativeLuminance, relativeLuminance01, relativeLuminance255, rgb01ToHex, rgb255ToHex, rgbToHex, rgbToHsl, rgba, withAlpha };
195
+ export { AA_LARGE, AA_TEXT, type AccentVerdict, type Rgb, type Rgb01, type Rgb255, colorLuma, contrastRatio, contrastRatioOrNull, darken, deltaE, desaturate, desaturateRgb01, hexToRgb, hexToRgb01, hexToRgb255, hslToRgb, inkFor, isHexColor, isLightColor, judgeAccent, lerpColor, lighten, luma01, mixColors, mixRgb01, opaqueColorHex, passes, relativeLuminance, relativeLuminance01, relativeLuminance255, rgb01ToHex, rgb255ToHex, rgbToHex, rgbToHsl, rgba, withAlpha };
@@ -1 +1 @@
1
- import{A,B,C,D,E,F,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-CXF32VPG.js";export{o as AA_LARGE,n as AA_TEXT,q as colorLuma,l as contrastRatio,m as contrastRatioOrNull,u as darken,y as desaturate,z as desaturateRgb01,b as hexToRgb,d as hexToRgb01,c as hexToRgb255,D as hslToRgb,F as inkFor,a as isHexColor,s as isLightColor,E as judgeAccent,v as lerpColor,t as lighten,r as luma01,w as mixColors,x as mixRgb01,h as opaqueColorHex,p as passes,i as relativeLuminance,k as relativeLuminance01,j as relativeLuminance255,g as rgb01ToHex,f as rgb255ToHex,e as rgbToHex,C as rgbToHsl,B as rgba,A as withAlpha};
1
+ import{A,B,C,D,E,F,G,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-JBOTRSMY.js";export{p as AA_LARGE,o as AA_TEXT,r as colorLuma,m as contrastRatio,n as contrastRatioOrNull,v as darken,i as deltaE,z as desaturate,A as desaturateRgb01,b as hexToRgb,d as hexToRgb01,c as hexToRgb255,E as hslToRgb,G as inkFor,a as isHexColor,t as isLightColor,F as judgeAccent,w as lerpColor,u as lighten,s as luma01,x as mixColors,y as mixRgb01,h as opaqueColorHex,q as passes,j as relativeLuminance,l as relativeLuminance01,k as relativeLuminance255,g as rgb01ToHex,f as rgb255ToHex,e as rgbToHex,D as rgbToHsl,C as rgba,B as withAlpha};