@adam-milo/ui 1.0.150 → 1.0.152

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/dist/index107.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("./index72.cjs"),l=require("./index106.cjs"),r=require("./index105.cjs"),s=require("./index109.cjs"),n=({data:n,ticks:c,yMax:i,isEmpty:d,formatValue:u,defaultActiveIndex:o,onActiveIndexChange:y,emptyState:x,animationKey:$,barsLabel:b,"data-cy":m,"data-testid":p})=>{const v=t.useRef(null),S=t.useRef(null),h=t.useRef(null),j=n.length,N=null===o?null:r.clampIndex(o,j),[f,g]=t.useState(null),[k,q]=t.useState(N??0),I=t.useRef(N);null!==f&&(d||f>=j)&&(S.current=null,h.current=null,I.current=N,g(null));const L=d?null:f??N,P=e=>{g(e);const t=e??N;t!==I.current&&(I.current=t,y?.(t))},A=e=>{v.current?.contains(e.relatedTarget)||(h.current=null,P(S.current))};return e.jsxs("div",{dir:"ltr",className:s.plotStyles,"data-cy":`${m}-plot`,"data-testid":`${p}-plot`,children:[e.jsxs("div",{className:s.plotAreaStyles,children:[c.map(t=>e.jsxs("div",{className:s.tickRowStyles,style:{bottom:`${r.toPercent(t,i)}%`},"aria-hidden":"true","data-cy":`${m}-y-tick-${t}`,"data-testid":`${p}-y-tick-${t}`,children:[e.jsx("span",{className:s.tickLabelStyles,children:t}),e.jsx("span",{className:s.tickLineStyles})]},t)),!d&&e.jsx("div",{ref:v,role:"group","aria-label":b,className:s.barsStyles,onPointerLeave:()=>{S.current=null,P(h.current)},children:n.map((t,n)=>{const c=l.readBarValue(t),d=u(c),o=n===L;return e.jsxs("button",{type:"button",className:s.barColumnStyles,tabIndex:n===r.clampIndex(k,j)?0:-1,"aria-label":`${l.getBarFullLabel(t)}: ${d}`,onPointerEnter:()=>{return e=n,S.current=e,void P(e);var e},onFocus:()=>{return e=n,h.current=e,q(e),void P(e);var e},onBlur:A,onKeyDown:e=>((e,t)=>{const a=r.getNavigationTarget(e.key,t,j);null!==a&&(e.preventDefault(),v.current?.querySelector(`[data-bar-index="${a}"]`)?.focus())})(e,n),"data-bar-index":n,"data-active":o?"true":"false","data-cy":`${m}-bar-${n}`,"data-testid":`${p}-bar-${n}`,children:[e.jsx("span",{className:a.cn(s.valueStyles,o?s.valueActiveStyles:s.valueIdleStyles),"aria-hidden":"true","data-cy":`${m}-value-${n}`,"data-testid":`${p}-value-${n}`,children:d}),e.jsx("span",{className:a.cn(s.barStyles,o?s.barActiveStyles:s.barIdleStyles),style:{height:`${r.toPercent(c,i)}%`},"aria-hidden":"true"})]},`${t.label}-${n}`)})},`bars-${$??"static"}`),d&&x&&e.jsx("div",{className:s.emptyOverlayStyles,"data-cy":`${m}-empty`,"data-testid":`${p}-empty`,children:x})]}),e.jsx("div",{className:s.xLabelsStyles,"aria-hidden":"true",children:n.map((t,a)=>e.jsx("span",{className:s.xLabelStyles,"data-cy":`${m}-x-label-${a}`,"data-testid":`${p}-x-label-${a}`,children:e.jsx("span",{children:t.label})},`${t.label}-${a}`))})]})};n.displayName="BarChartDesktopPlot",exports.BarChartDesktopPlot=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("./index72.cjs"),l=require("./index106.cjs"),r=require("./index105.cjs"),s=require("./index109.cjs"),n=({data:n,ticks:c,yMax:i,isEmpty:d,formatValue:u,defaultActiveIndex:o,onActiveIndexChange:y,emptyState:x,animationKey:p,barsLabel:$,"data-cy":b,"data-testid":m})=>{const v=t.useRef(null),S=t.useRef(null),h=t.useRef(null),j=n.length,N=null===o?null:r.clampIndex(o,j),[f,g]=t.useState(null),[k,q]=t.useState(N??0),I=t.useRef(N);null!==f&&(d||f>=j)&&(S.current=null,h.current=null,I.current=N,g(null));const L=d?null:f??N,P=e=>{g(e);const t=e??N;t!==I.current&&(I.current=t,y?.(t))},A=e=>{v.current?.contains(e.relatedTarget)||(h.current=null,P(S.current))};return e.jsxs("div",{dir:"ltr",className:s.plotStyles,"data-cy":`${b}-plot`,"data-testid":`${m}-plot`,children:[e.jsxs("div",{className:s.plotAreaStyles,children:[c.map(t=>e.jsxs("div",{className:s.tickRowStyles,style:{bottom:`${r.toPercent(t,i)}%`},"aria-hidden":"true","data-cy":`${b}-y-tick-${t}`,"data-testid":`${m}-y-tick-${t}`,children:[e.jsx("span",{className:s.tickLabelStyles,children:t}),e.jsx("span",{className:s.tickLineStyles})]},t)),!d&&e.jsx("div",{ref:v,role:"group","aria-label":$,className:s.barsStyles,onPointerLeave:()=>{S.current=null,P(h.current)},children:n.map((t,n)=>{const c=l.readBarValue(t),d=u(c),o=n===L;return e.jsxs("button",{type:"button",className:s.barColumnStyles,tabIndex:n===r.clampIndex(k,j)?0:-1,"aria-label":`${l.getBarFullLabel(t)}: ${d}`,onPointerEnter:()=>{return e=n,S.current=e,void P(e);var e},onFocus:()=>{return e=n,h.current=e,q(e),void P(e);var e},onBlur:A,onKeyDown:e=>((e,t)=>{const a=r.getNavigationTarget(e.key,t,j);null!==a&&(e.preventDefault(),v.current?.querySelector(`[data-bar-index="${a}"]`)?.focus())})(e,n),"data-bar-index":n,"data-active":o?"true":"false","data-cy":`${b}-bar-${n}`,"data-testid":`${m}-bar-${n}`,children:[e.jsx("span",{className:a.cn(s.valueStyles,o?s.valueActiveStyles:s.valueIdleStyles),"aria-hidden":"true","data-cy":`${b}-value-${n}`,"data-testid":`${m}-value-${n}`,children:d}),e.jsx("span",{className:a.cn(s.barStyles,o?s.barActiveStyles:s.barIdleStyles),style:{height:`${r.toPercent(c,i)}%`},"aria-hidden":"true"})]},`${t.label}-${n}`)})},`bars-${p??"static"}`)]}),e.jsx("div",{className:s.xLabelsStyles,"aria-hidden":"true",children:n.map((t,a)=>e.jsx("span",{className:s.xLabelStyles,"data-cy":`${b}-x-label-${a}`,"data-testid":`${m}-x-label-${a}`,children:e.jsx("span",{children:t.label})},`${t.label}-${a}`))}),d&&x&&e.jsx("div",{className:s.desktopEmptyOverlayStyles,"data-cy":`${b}-empty`,"data-testid":`${m}-empty`,children:x})]})};n.displayName="BarChartDesktopPlot",exports.BarChartDesktopPlot=n;
package/dist/index107.js CHANGED
@@ -1,9 +1,9 @@
1
- import{jsxs as a,jsx as e}from"react/jsx-runtime";import{useRef as t,useState as r}from"react";import{cn as n}from"./index72.js";import{readBarValue as l,getBarFullLabel as d}from"./index106.js";import{toPercent as i,clampIndex as c,getNavigationTarget as s}from"./index105.js";import{plotStyles as u,plotAreaStyles as o,tickRowStyles as m,tickLabelStyles as $,tickLineStyles as p,barsStyles as y,barColumnStyles as h,valueActiveStyles as b,valueIdleStyles as x,valueStyles as v,barActiveStyles as N,barIdleStyles as f,barStyles as g,emptyOverlayStyles as j,xLabelsStyles as k,xLabelStyles as D}from"./index109.js";const I=({data:I,ticks:P,yMax:A,isEmpty:B,formatValue:C,defaultActiveIndex:E,onActiveIndexChange:K,emptyState:L,animationKey:S,barsLabel:q,"data-cy":w,"data-testid":F})=>{const M=t(null),T=t(null),V=t(null),z=I.length,G=null===E?null:c(E,z),[H,J]=r(null),[O,Q]=r(G??0),R=t(G);null!==H&&(B||H>=z)&&(T.current=null,V.current=null,R.current=G,J(null));const U=B?null:H??G,W=a=>{J(a);const e=a??G;e!==R.current&&(R.current=e,K?.(e))},X=a=>{M.current?.contains(a.relatedTarget)||(V.current=null,W(T.current))};/* @__PURE__ */
1
+ import{jsxs as a,jsx as e}from"react/jsx-runtime";import{useRef as t,useState as r}from"react";import{cn as n}from"./index72.js";import{readBarValue as l,getBarFullLabel as d}from"./index106.js";import{toPercent as i,clampIndex as c,getNavigationTarget as s}from"./index105.js";import{plotStyles as u,plotAreaStyles as o,tickRowStyles as m,tickLabelStyles as $,tickLineStyles as p,barsStyles as y,barColumnStyles as h,valueActiveStyles as b,valueIdleStyles as x,valueStyles as v,barActiveStyles as N,barIdleStyles as f,barStyles as g,xLabelsStyles as j,xLabelStyles as k,desktopEmptyOverlayStyles as D}from"./index109.js";const I=({data:I,ticks:P,yMax:A,isEmpty:B,formatValue:C,defaultActiveIndex:E,onActiveIndexChange:K,emptyState:L,animationKey:S,barsLabel:q,"data-cy":w,"data-testid":F})=>{const M=t(null),T=t(null),V=t(null),z=I.length,G=null===E?null:c(E,z),[H,J]=r(null),[O,Q]=r(G??0),R=t(G);null!==H&&(B||H>=z)&&(T.current=null,V.current=null,R.current=G,J(null));const U=B?null:H??G,W=a=>{J(a);const e=a??G;e!==R.current&&(R.current=e,K?.(e))},X=a=>{M.current?.contains(a.relatedTarget)||(V.current=null,W(T.current))};/* @__PURE__ */
2
2
  return a("div",{dir:"ltr",className:u,"data-cy":`${w}-plot`,"data-testid":`${F}-plot`,children:[
3
3
  /* @__PURE__ */a("div",{className:o,children:[P.map(t=>/* @__PURE__ */a("div",{className:m,style:{bottom:`${i(t,A)}%`},"aria-hidden":"true","data-cy":`${w}-y-tick-${t}`,"data-testid":`${F}-y-tick-${t}`,children:[
4
4
  /* @__PURE__ */e("span",{className:$,children:t}),
5
5
  /* @__PURE__ */e("span",{className:p})]},t)),!B&&/* @__PURE__ */e("div",{ref:M,role:"group","aria-label":q,className:y,onPointerLeave:()=>{T.current=null,W(V.current)},children:I.map((t,r)=>{const u=l(t),o=C(u),m=r===U;/* @__PURE__ */
6
6
  return a("button",{type:"button",className:h,tabIndex:r===c(O,z)?0:-1,"aria-label":`${d(t)}: ${o}`,onPointerEnter:()=>(a=>{T.current=a,W(a)})(r),onFocus:()=>(a=>{V.current=a,Q(a),W(a)})(r),onBlur:X,onKeyDown:a=>((a,e)=>{const t=s(a.key,e,z);null!==t&&(a.preventDefault(),M.current?.querySelector(`[data-bar-index="${t}"]`)?.focus())})(a,r),"data-bar-index":r,"data-active":m?"true":"false","data-cy":`${w}-bar-${r}`,"data-testid":`${F}-bar-${r}`,children:[
7
7
  /* @__PURE__ */e("span",{className:n(v,m?b:x),"aria-hidden":"true","data-cy":`${w}-value-${r}`,"data-testid":`${F}-value-${r}`,children:o}),
8
- /* @__PURE__ */e("span",{className:n(g,m?N:f),style:{height:`${i(u,A)}%`},"aria-hidden":"true"})]},`${t.label}-${r}`)})},`bars-${S??"static"}`),B&&L&&/* @__PURE__ */e("div",{className:j,"data-cy":`${w}-empty`,"data-testid":`${F}-empty`,children:L})]}),
9
- /* @__PURE__ */e("div",{className:k,"aria-hidden":"true",children:I.map((a,t)=>/* @__PURE__ */e("span",{className:D,"data-cy":`${w}-x-label-${t}`,"data-testid":`${F}-x-label-${t}`,children:/* @__PURE__ */e("span",{children:a.label})},`${a.label}-${t}`))})]})};I.displayName="BarChartDesktopPlot";export{I as BarChartDesktopPlot};
8
+ /* @__PURE__ */e("span",{className:n(g,m?N:f),style:{height:`${i(u,A)}%`},"aria-hidden":"true"})]},`${t.label}-${r}`)})},`bars-${S??"static"}`)]}),
9
+ /* @__PURE__ */e("div",{className:j,"aria-hidden":"true",children:I.map((a,t)=>/* @__PURE__ */e("span",{className:k,"data-cy":`${w}-x-label-${t}`,"data-testid":`${F}-x-label-${t}`,children:/* @__PURE__ */e("span",{children:a.label})},`${a.label}-${t}`))}),B&&L&&/* @__PURE__ */e("div",{className:D,"data-cy":`${w}-empty`,"data-testid":`${F}-empty`,children:L})]})};I.displayName="BarChartDesktopPlot";export{I as BarChartDesktopPlot};
package/dist/index109.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["relative flex flex-col justify-end items-center flex-1 min-w-0 max-w-[2.25rem] h-full","p-0 m-0 border-0 bg-transparent cursor-default outline-none","focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--color-button-blue)] focus-visible:rounded-t-8"].join(" "),t=["shrink-0 mb-[0.5625rem]","text-24 leading-none whitespace-nowrap tabular-nums transition-colors duration-200","bar-chart-value-in"].join(" "),o=["w-full overflow-x-auto overflow-y-hidden","[-webkit-overflow-scrolling:touch] [overscroll-behavior-x:contain]","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),r=["inline-flex items-center justify-center h-10 m-0 p-0 border-0 rounded-8","text-20 leading-[1.012em] transition-colors duration-200 ease-out outline-none cursor-pointer","focus-visible:ring-2 focus-visible:ring-[var(--color-button-blue)] focus-visible:ring-offset-1","disabled:cursor-default"].join(" "),l=["absolute top-0 bottom-0 end-0 w-12 pointer-events-none","bg-linear-to-l from-[var(--color-card)] from-[17%] to-transparent"].join(" ");exports.barActiveStyles="bg-[var(--color-violet-medium)]",exports.barColumnStyles=e,exports.barIdleStyles="bg-[var(--color-violet-soft)]",exports.barStyles="shrink-0 w-full rounded-t-8 transition-colors duration-200 ease-out bar-chart-grow",exports.barsStyles="absolute inset-y-0 start-[2.1875rem] end-0 flex items-end justify-center gap-8",exports.descriptionStyles="m-0 text-16 leading-[1.012em] text-[var(--color-overlay-dark-75)]",exports.dividerStyles="shrink-0 self-stretch w-px bg-[var(--color-border)]",exports.emptyOverlayStyles="absolute inset-0 z-10 flex items-center justify-center",exports.errorOverlayStyles="absolute inset-0 z-40 rounded-[inherit]",exports.headerLayoutStyles={desktop:"gap-6",mobile:"gap-4"},exports.headerStyles="flex flex-row min-w-0",exports.headingGroupStyles="flex flex-col gap-2 flex-1 min-w-0",exports.mobileBarActiveStyles="bg-[var(--color-violet)]",exports.mobileBarHitStyles="flex items-end justify-center h-full m-0 p-0 border-0 bg-transparent cursor-pointer",exports.mobileBarStyles="w-12 rounded-t-12 transition-colors duration-200 ease-out bar-chart-grow",exports.mobileBarsStyles="flex items-end gap-1 h-[9.0625rem]",exports.mobileBodyStyles="flex flex-col gap-4 w-full min-w-0",exports.mobileColumnWidthStyles="shrink-0 w-[4.625rem]",exports.mobileGridStyles="absolute top-[0.3125rem] inset-x-0 h-[9.0625rem]",exports.mobilePlotStyles="relative w-full min-w-0 pt-[0.3125rem]",exports.mobileScrollerStyles=o,exports.mobileScrollerWrapperStyles="relative ms-5 overflow-hidden",exports.mobileStripStyles="mx-auto flex w-max flex-col gap-[1.0625rem]",exports.mobileTickLabelStyles="shrink-0 w-5 text-16 leading-none text-[var(--color-icon-secondary)] tabular-nums",exports.monthButtonIdleStyles="bg-transparent text-[var(--color-icon-secondary)] enabled:hover:text-[var(--color-system-text)]",exports.monthButtonSelectedStyles="bg-[var(--color-border)] text-[var(--color-system-text)]",exports.monthButtonStyles=r,exports.monthsStyles="flex gap-1",exports.panelLabelStyles="line-chart-fade-in text-trim-cap text-18 leading-[1.012em] text-[var(--color-system-text)]",exports.panelStyles="flex flex-col items-center justify-center gap-3 w-full p-4 rounded-t-8 bg-[var(--color-overlay-border-30)]",exports.panelValueStyles="text-trim-cap font-bold text-20 leading-[1.045em] text-[var(--color-text)] tabular-nums",exports.plotAreaStyles="relative w-full h-[10.4375rem]",exports.plotStyles="relative flex flex-col gap-2 w-full pt-1.5",exports.rootLayoutStyles={desktop:"rounded-16 px-8 pt-8 pb-[2.6875rem] gap-12",mobile:"rounded-12 px-5 pt-5 pb-7 gap-6"},exports.rootStyles="relative flex flex-col w-full min-w-0 bg-[var(--color-card)]",exports.scrollFadeStyles=l,exports.summaryLabelStyles="text-16 leading-[1.012em] text-[var(--color-system-text)]",exports.summaryLayoutStyles={desktop:"justify-between",mobile:"justify-start"},exports.summaryStyles="flex flex-col gap-1 shrink-0",exports.summaryValueStyles="font-bold text-18 leading-[1.045em] text-[var(--color-violet)]",exports.tickLabelStyles="shrink-0 w-[2.1875rem] text-20 leading-none text-[var(--color-icon-secondary)] tabular-nums",exports.tickLineStyles="flex-1 h-px bg-[var(--color-border)]",exports.tickRowStyles="absolute inset-x-0 flex items-center translate-y-1/2 pointer-events-none",exports.titleStyles="m-0 font-bold text-18 leading-[1.045em] text-[var(--color-text)]",exports.valueActiveStyles="font-bold text-[var(--color-text)]",exports.valueIdleStyles="font-normal text-[var(--color-system-text)]",exports.valueStyles=t,exports.xLabelStyles="flex justify-center flex-1 min-w-0 max-w-[2.25rem] whitespace-nowrap text-18 leading-none text-[var(--color-system-text)]",exports.xLabelsStyles="flex justify-center gap-8 ps-[2.1875rem]";
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["relative flex flex-col justify-end items-center flex-1 min-w-0 max-w-[2.25rem] h-full","p-0 m-0 border-0 bg-transparent cursor-default outline-none","focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--color-button-blue)] focus-visible:rounded-t-8"].join(" "),t=["shrink-0 mb-[0.5625rem]","text-24 leading-none whitespace-nowrap tabular-nums transition-colors duration-200","bar-chart-value-in"].join(" "),o=["w-full overflow-x-auto overflow-y-hidden","[-webkit-overflow-scrolling:touch] [overscroll-behavior-x:contain]","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),r=["inline-flex items-center justify-center h-10 m-0 p-0 border-0 rounded-8","text-20 leading-[1.012em] transition-colors duration-200 ease-out outline-none cursor-pointer","focus-visible:ring-2 focus-visible:ring-[var(--color-button-blue)] focus-visible:ring-offset-1","disabled:cursor-default"].join(" "),l=["absolute top-0 bottom-0 end-0 w-12 pointer-events-none","bg-linear-to-l from-[var(--color-card)] from-[17%] to-transparent"].join(" ");exports.barActiveStyles="bg-[var(--color-violet-medium)]",exports.barColumnStyles=e,exports.barIdleStyles="bg-[var(--color-violet-soft)]",exports.barStyles="shrink-0 w-full min-h-px rounded-t-8 transition-colors duration-200 ease-out bar-chart-grow",exports.barsStyles="absolute inset-y-0 start-[2.1875rem] end-0 flex items-end justify-center gap-8",exports.descriptionStyles="m-0 text-16 leading-[1.012em] text-[var(--color-overlay-dark-75)]",exports.desktopEmptyOverlayStyles="absolute -top-12 -inset-x-8 -bottom-[2.6875rem] z-10 flex items-center justify-center rounded-b-16",exports.dividerStyles="shrink-0 self-stretch w-px bg-[var(--color-border)]",exports.emptyOverlayStyles="absolute inset-0 z-10 flex items-center justify-center",exports.errorOverlayStyles="absolute inset-0 z-40 rounded-[inherit]",exports.headerLayoutStyles={desktop:"gap-6",mobile:"gap-4"},exports.headerStyles="flex flex-row min-w-0",exports.headingGroupStyles="flex flex-col gap-2 flex-1 min-w-0",exports.mobileBarActiveStyles="bg-[var(--color-violet)]",exports.mobileBarHitStyles="flex items-end justify-center h-full m-0 p-0 border-0 bg-transparent cursor-pointer",exports.mobileBarStyles="w-12 min-h-px rounded-t-12 transition-colors duration-200 ease-out bar-chart-grow",exports.mobileBarsStyles="flex items-end gap-1 h-[9.0625rem]",exports.mobileBodyStyles="flex flex-col gap-4 w-full min-w-0",exports.mobileColumnWidthStyles="shrink-0 w-[4.625rem]",exports.mobileGridStyles="absolute top-[0.3125rem] inset-x-0 h-[9.0625rem]",exports.mobilePlotStyles="relative w-full min-w-0 pt-[0.3125rem]",exports.mobileScrollerStyles=o,exports.mobileScrollerWrapperStyles="relative ms-5 overflow-hidden",exports.mobileStripStyles="mx-auto flex w-max flex-col gap-[1.0625rem]",exports.mobileTickLabelStyles="shrink-0 w-5 text-16 leading-none text-[var(--color-icon-secondary)] tabular-nums",exports.monthButtonIdleStyles="bg-transparent text-[var(--color-icon-secondary)] enabled:hover:text-[var(--color-system-text)]",exports.monthButtonSelectedStyles="bg-[var(--color-border)] text-[var(--color-system-text)]",exports.monthButtonStyles=r,exports.monthsStyles="flex gap-1",exports.panelLabelStyles="line-chart-fade-in text-trim-cap text-18 leading-[1.012em] text-[var(--color-system-text)]",exports.panelStyles="flex flex-col items-center justify-center gap-3 w-full p-4 rounded-t-8 bg-[var(--color-overlay-border-30)]",exports.panelValueStyles="text-trim-cap font-bold text-20 leading-[1.045em] text-[var(--color-text)] tabular-nums",exports.plotAreaStyles="relative w-full h-[10.4375rem]",exports.plotStyles="relative flex flex-1 flex-col gap-2 w-full pt-1.5",exports.rootLayoutStyles={desktop:"rounded-16 px-8 pt-8 pb-[2.6875rem] gap-12",mobile:"rounded-12 px-5 pt-5 pb-7 gap-6"},exports.rootStyles="relative flex flex-col w-full min-w-0 bg-[var(--color-card)]",exports.scrollFadeStyles=l,exports.summaryLabelStyles="text-16 leading-[1.012em] text-[var(--color-system-text)]",exports.summaryLayoutStyles={desktop:"justify-between",mobile:"justify-start"},exports.summaryStyles="flex flex-col gap-1 shrink-0",exports.summaryValueStyles="font-bold text-18 leading-[1.045em] text-[var(--color-violet)]",exports.tickLabelStyles="shrink-0 w-[2.1875rem] text-20 leading-none text-[var(--color-icon-secondary)] tabular-nums",exports.tickLineStyles="flex-1 h-px bg-[var(--color-border)]",exports.tickRowStyles="absolute inset-x-0 flex items-center translate-y-1/2 pointer-events-none",exports.titleStyles="m-0 font-bold text-18 leading-[1.045em] text-[var(--color-text)]",exports.valueActiveStyles="font-bold text-[var(--color-text)]",exports.valueIdleStyles="font-normal text-[var(--color-system-text)]",exports.valueStyles=t,exports.xLabelStyles="flex justify-center flex-1 min-w-0 max-w-[2.25rem] whitespace-nowrap text-18 leading-none text-[var(--color-system-text)]",exports.xLabelsStyles="flex justify-center gap-8 ps-[2.1875rem]";
package/dist/index109.js CHANGED
@@ -1 +1 @@
1
- const e="relative flex flex-col w-full min-w-0 bg-[var(--color-card)]",t={desktop:"rounded-16 px-8 pt-8 pb-[2.6875rem] gap-12",mobile:"rounded-12 px-5 pt-5 pb-7 gap-6"},o="flex flex-row min-w-0",r={desktop:"gap-6",mobile:"gap-4"},l="flex flex-col gap-2 flex-1 min-w-0",n="m-0 font-bold text-18 leading-[1.045em] text-[var(--color-text)]",a="m-0 text-16 leading-[1.012em] text-[var(--color-overlay-dark-75)]",i="shrink-0 self-stretch w-px bg-[var(--color-border)]",s="flex flex-col gap-1 shrink-0",c={desktop:"justify-between",mobile:"justify-start"},x="text-16 leading-[1.012em] text-[var(--color-system-text)]",f="font-bold text-18 leading-[1.045em] text-[var(--color-violet)]",u="absolute inset-x-0 flex items-center translate-y-1/2 pointer-events-none",d="flex-1 h-px bg-[var(--color-border)]",m="bg-[var(--color-violet-soft)]",b="bg-[var(--color-violet-medium)]",v="absolute inset-0 z-10 flex items-center justify-center",p="absolute inset-0 z-40 rounded-[inherit]",g="relative flex flex-col gap-2 w-full pt-1.5",w="relative w-full h-[10.4375rem]",h="shrink-0 w-[2.1875rem] text-20 leading-none text-[var(--color-icon-secondary)] tabular-nums",y="absolute inset-y-0 start-[2.1875rem] end-0 flex items-end justify-center gap-8",j=["relative flex flex-col justify-end items-center flex-1 min-w-0 max-w-[2.25rem] h-full","p-0 m-0 border-0 bg-transparent cursor-default outline-none","focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--color-button-blue)] focus-visible:rounded-t-8"].join(" "),k="shrink-0 w-full rounded-t-8 transition-colors duration-200 ease-out bar-chart-grow",z=["shrink-0 mb-[0.5625rem]","text-24 leading-none whitespace-nowrap tabular-nums transition-colors duration-200","bar-chart-value-in"].join(" "),q="font-normal text-[var(--color-system-text)]",A="font-bold text-[var(--color-text)]",B="flex justify-center gap-8 ps-[2.1875rem]",C="flex justify-center flex-1 min-w-0 max-w-[2.25rem] whitespace-nowrap text-18 leading-none text-[var(--color-system-text)]",D="flex flex-col gap-4 w-full min-w-0",E="flex flex-col items-center justify-center gap-3 w-full p-4 rounded-t-8 bg-[var(--color-overlay-border-30)]",F="line-chart-fade-in text-trim-cap text-18 leading-[1.012em] text-[var(--color-system-text)]",G="text-trim-cap font-bold text-20 leading-[1.045em] text-[var(--color-text)] tabular-nums",H="relative w-full min-w-0 pt-[0.3125rem]",I="absolute top-[0.3125rem] inset-x-0 h-[9.0625rem]",J="shrink-0 w-5 text-16 leading-none text-[var(--color-icon-secondary)] tabular-nums",K="relative ms-5 overflow-hidden",L=["w-full overflow-x-auto overflow-y-hidden","[-webkit-overflow-scrolling:touch] [overscroll-behavior-x:contain]","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),M="mx-auto flex w-max flex-col gap-[1.0625rem]",N="flex items-end gap-1 h-[9.0625rem]",O="shrink-0 w-[4.625rem]",P="flex items-end justify-center h-full m-0 p-0 border-0 bg-transparent cursor-pointer",Q="w-12 rounded-t-12 transition-colors duration-200 ease-out bar-chart-grow",R="bg-[var(--color-violet)]",S="flex gap-1",T=["inline-flex items-center justify-center h-10 m-0 p-0 border-0 rounded-8","text-20 leading-[1.012em] transition-colors duration-200 ease-out outline-none cursor-pointer","focus-visible:ring-2 focus-visible:ring-[var(--color-button-blue)] focus-visible:ring-offset-1","disabled:cursor-default"].join(" "),U="bg-[var(--color-border)] text-[var(--color-system-text)]",V="bg-transparent text-[var(--color-icon-secondary)] enabled:hover:text-[var(--color-system-text)]",W=["absolute top-0 bottom-0 end-0 w-12 pointer-events-none","bg-linear-to-l from-[var(--color-card)] from-[17%] to-transparent"].join(" ");export{b as barActiveStyles,j as barColumnStyles,m as barIdleStyles,k as barStyles,y as barsStyles,a as descriptionStyles,i as dividerStyles,v as emptyOverlayStyles,p as errorOverlayStyles,r as headerLayoutStyles,o as headerStyles,l as headingGroupStyles,R as mobileBarActiveStyles,P as mobileBarHitStyles,Q as mobileBarStyles,N as mobileBarsStyles,D as mobileBodyStyles,O as mobileColumnWidthStyles,I as mobileGridStyles,H as mobilePlotStyles,L as mobileScrollerStyles,K as mobileScrollerWrapperStyles,M as mobileStripStyles,J as mobileTickLabelStyles,V as monthButtonIdleStyles,U as monthButtonSelectedStyles,T as monthButtonStyles,S as monthsStyles,F as panelLabelStyles,E as panelStyles,G as panelValueStyles,w as plotAreaStyles,g as plotStyles,t as rootLayoutStyles,e as rootStyles,W as scrollFadeStyles,x as summaryLabelStyles,c as summaryLayoutStyles,s as summaryStyles,f as summaryValueStyles,h as tickLabelStyles,d as tickLineStyles,u as tickRowStyles,n as titleStyles,A as valueActiveStyles,q as valueIdleStyles,z as valueStyles,C as xLabelStyles,B as xLabelsStyles};
1
+ const e="relative flex flex-col w-full min-w-0 bg-[var(--color-card)]",t={desktop:"rounded-16 px-8 pt-8 pb-[2.6875rem] gap-12",mobile:"rounded-12 px-5 pt-5 pb-7 gap-6"},o="flex flex-row min-w-0",r={desktop:"gap-6",mobile:"gap-4"},l="flex flex-col gap-2 flex-1 min-w-0",n="m-0 font-bold text-18 leading-[1.045em] text-[var(--color-text)]",i="m-0 text-16 leading-[1.012em] text-[var(--color-overlay-dark-75)]",a="shrink-0 self-stretch w-px bg-[var(--color-border)]",s="flex flex-col gap-1 shrink-0",c={desktop:"justify-between",mobile:"justify-start"},x="text-16 leading-[1.012em] text-[var(--color-system-text)]",f="font-bold text-18 leading-[1.045em] text-[var(--color-violet)]",u="absolute inset-x-0 flex items-center translate-y-1/2 pointer-events-none",d="flex-1 h-px bg-[var(--color-border)]",m="bg-[var(--color-violet-soft)]",b="bg-[var(--color-violet-medium)]",v="absolute inset-0 z-10 flex items-center justify-center",p="absolute inset-0 z-40 rounded-[inherit]",g="relative flex flex-1 flex-col gap-2 w-full pt-1.5",w="absolute -top-12 -inset-x-8 -bottom-[2.6875rem] z-10 flex items-center justify-center rounded-b-16",h="relative w-full h-[10.4375rem]",y="shrink-0 w-[2.1875rem] text-20 leading-none text-[var(--color-icon-secondary)] tabular-nums",j="absolute inset-y-0 start-[2.1875rem] end-0 flex items-end justify-center gap-8",k=["relative flex flex-col justify-end items-center flex-1 min-w-0 max-w-[2.25rem] h-full","p-0 m-0 border-0 bg-transparent cursor-default outline-none","focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-[var(--color-button-blue)] focus-visible:rounded-t-8"].join(" "),z="shrink-0 w-full min-h-px rounded-t-8 transition-colors duration-200 ease-out bar-chart-grow",q=["shrink-0 mb-[0.5625rem]","text-24 leading-none whitespace-nowrap tabular-nums transition-colors duration-200","bar-chart-value-in"].join(" "),A="font-normal text-[var(--color-system-text)]",B="font-bold text-[var(--color-text)]",C="flex justify-center gap-8 ps-[2.1875rem]",D="flex justify-center flex-1 min-w-0 max-w-[2.25rem] whitespace-nowrap text-18 leading-none text-[var(--color-system-text)]",E="flex flex-col gap-4 w-full min-w-0",F="flex flex-col items-center justify-center gap-3 w-full p-4 rounded-t-8 bg-[var(--color-overlay-border-30)]",G="line-chart-fade-in text-trim-cap text-18 leading-[1.012em] text-[var(--color-system-text)]",H="text-trim-cap font-bold text-20 leading-[1.045em] text-[var(--color-text)] tabular-nums",I="relative w-full min-w-0 pt-[0.3125rem]",J="absolute top-[0.3125rem] inset-x-0 h-[9.0625rem]",K="shrink-0 w-5 text-16 leading-none text-[var(--color-icon-secondary)] tabular-nums",L="relative ms-5 overflow-hidden",M=["w-full overflow-x-auto overflow-y-hidden","[-webkit-overflow-scrolling:touch] [overscroll-behavior-x:contain]","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),N="mx-auto flex w-max flex-col gap-[1.0625rem]",O="flex items-end gap-1 h-[9.0625rem]",P="shrink-0 w-[4.625rem]",Q="flex items-end justify-center h-full m-0 p-0 border-0 bg-transparent cursor-pointer",R="w-12 min-h-px rounded-t-12 transition-colors duration-200 ease-out bar-chart-grow",S="bg-[var(--color-violet)]",T="flex gap-1",U=["inline-flex items-center justify-center h-10 m-0 p-0 border-0 rounded-8","text-20 leading-[1.012em] transition-colors duration-200 ease-out outline-none cursor-pointer","focus-visible:ring-2 focus-visible:ring-[var(--color-button-blue)] focus-visible:ring-offset-1","disabled:cursor-default"].join(" "),V="bg-[var(--color-border)] text-[var(--color-system-text)]",W="bg-transparent text-[var(--color-icon-secondary)] enabled:hover:text-[var(--color-system-text)]",X=["absolute top-0 bottom-0 end-0 w-12 pointer-events-none","bg-linear-to-l from-[var(--color-card)] from-[17%] to-transparent"].join(" ");export{b as barActiveStyles,k as barColumnStyles,m as barIdleStyles,z as barStyles,j as barsStyles,i as descriptionStyles,w as desktopEmptyOverlayStyles,a as dividerStyles,v as emptyOverlayStyles,p as errorOverlayStyles,r as headerLayoutStyles,o as headerStyles,l as headingGroupStyles,S as mobileBarActiveStyles,Q as mobileBarHitStyles,R as mobileBarStyles,O as mobileBarsStyles,E as mobileBodyStyles,P as mobileColumnWidthStyles,J as mobileGridStyles,I as mobilePlotStyles,M as mobileScrollerStyles,L as mobileScrollerWrapperStyles,N as mobileStripStyles,K as mobileTickLabelStyles,W as monthButtonIdleStyles,V as monthButtonSelectedStyles,U as monthButtonStyles,T as monthsStyles,G as panelLabelStyles,F as panelStyles,H as panelValueStyles,h as plotAreaStyles,g as plotStyles,t as rootLayoutStyles,e as rootStyles,X as scrollFadeStyles,x as summaryLabelStyles,c as summaryLayoutStyles,s as summaryStyles,f as summaryValueStyles,y as tickLabelStyles,d as tickLineStyles,u as tickRowStyles,n as titleStyles,B as valueActiveStyles,A as valueIdleStyles,q as valueStyles,D as xLabelStyles,C as xLabelsStyles};
package/dist/index114.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),i=require("./index72.cjs"),s=require("./index113.cjs"),a=require("./index105.cjs"),l=require("./index117.cjs"),o=880,n=320,r=16,d=56,c={x:d,y:r,width:o-d-16,height:n-r-44},h=16,p=12,u=e=>e/o*100+"%",y=({points:r,series:d,variant:y,activeKeys:x,yTicks:g,yMax:$,isEmpty:m,animationKey:v,titleId:f,description:b,getPointAriaLabel:S,"data-cy":j,"data-testid":k})=>{const N=t.useRef(null),T=t.useRef(null),w=t.useRef(null),[L,P]=t.useState(null),[M,X]=t.useState(null),H=r.length,Y=L??M,I=!m&&Y&&Y.index<H?Y:null;Y&&!I&&(P(null),X(null));const[W,R]=t.useState(0),[q,K]=t.useState(0),B=`${f}-description`,C=c.y+c.height,D=t.useMemo(()=>s.buildLinePaths({points:r,series:d,variant:y,activeKeys:x,getX:e=>s.indexToX(e,H,c),getY:e=>s.valueToY(e,$,c),baseline:C}),[r,d,y,x,H,$,C]),E=(e,t)=>{const i=T.current?.getBoundingClientRect();return!i||i.width<=0?null:{index:e,pxY:t??c.y/n*i.height+8,containerWidth:i.width,containerHeight:i.height}},F=I?r[I.index]:void 0,A=I?s.getPointItems(F,I.index,d,y,x):[];t.useLayoutEffect(()=>{R(w.current?.offsetHeight??0)},[I?.index,A.length]);const O=t.useMemo(()=>{if(!I)return null;const{containerWidth:e,containerHeight:t,pxY:i}=I,a=s.indexToX(I.index,H,c)/o*e,l=c.width/Math.max(H-1,1)*.6*e/o,r=c.y/n*t,d=c.height/n*t,u=c.x/o*e,y=(c.x+c.width)/o*e,x=Math.max(u,a-l/2),g=Math.min(y,a+l/2),$=s.getTooltipPosition({anchorX:a,anchorY:i,containerWidth:e,containerHeight:t,tooltipWidth:10.0625*s.getRootFontSizePx(),tooltipHeight:W,offsetX:h,offsetY:p});return{pxX:a,bandLeft:x,bandWidth:Math.max(0,g-x),plotTop:r,plotHeight:d,tooltip:$}},[I,H,W]),V=c.width/Math.max(H-1,1)/o*100;return e.jsxs("div",{ref:N,dir:"ltr",className:l.desktopPlotStyles,"data-cy":`${j}-plot`,"data-testid":`${k}-plot`,children:[e.jsxs("svg",{ref:T,viewBox:`0 0 ${o} ${n}`,preserveAspectRatio:"none",className:l.svgStyles,role:"img","aria-labelledby":f,"aria-describedby":B,onPointerMove:m?void 0:e=>{const t=e.currentTarget.getBoundingClientRect();if(t.width<=0||0===H)return;const i=(e.clientX-t.left)/t.width*o;let a=0,l=Number.POSITIVE_INFINITY;for(let o=0;o<H;o+=1){const e=Math.abs(s.indexToX(o,H,c)-i);e<l&&(l=e,a=o)}P(E(a,e.clientY-t.top))},onPointerLeave:()=>P(null),"data-cy":`${j}-svg`,"data-testid":`${k}-svg`,children:[e.jsx("desc",{id:B,children:b}),g.map(t=>{const i=s.valueToY(t,$,c);return e.jsx("line",{x1:c.x,x2:c.x+c.width,y1:i,y2:i,className:l.gridLineStyles,strokeWidth:1,vectorEffect:"non-scaling-stroke"},t)}),!m&&e.jsx("g",{className:l.growGroupStyles,style:{"--line-chart-baseline":`${C}px`},children:D.map(t=>e.jsx("polyline",{points:t.points,fill:"none",stroke:t.color,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke","data-series":t.seriesKey,"data-cy":"multi"===y?`${j}-series-${t.seriesKey}`:`${j}-segment-${t.id}`,"data-testid":"multi"===y?`${k}-series-${t.seriesKey}`:`${k}-segment-${t.id}`},t.id))},`grow-${v??"static"}`)]}),g.map(t=>{return e.jsx("span",{className:l.yTickStyles,style:{top:(i=s.valueToY(t,$,c),i/n*100+"%"),left:0,width:u(c.x-12)},"aria-hidden":"true","data-cy":`${j}-y-tick-${t}`,"data-testid":`${k}-y-tick-${t}`,children:t},`tick-${t}`);var i}),r.map((t,a)=>e.jsx("span",{className:i.cn(l.xLabelStyles,I?.index===a?l.xLabelActiveStyles:l.xLabelIdleStyles),style:{left:u(s.indexToX(a,H,c))},"aria-hidden":"true","data-cy":`${j}-x-label-${a}`,"data-testid":`${k}-x-label-${a}`,children:t.label},`x-label-${a}`)),!m&&r.map((t,i)=>e.jsx("button",{type:"button",className:l.pointButtonStyles,style:{left:`calc(${u(s.indexToX(i,H,c))} - ${V/2}%)`,width:`${V}%`},tabIndex:i===Math.min(q,H-1)?0:-1,"aria-label":S(t,s.getPointItems(t,i,d,y,x)),onFocus:()=>{K(i),P(null),X(E(i))},onBlur:e=>{N.current?.contains(e.relatedTarget)||X(null)},onKeyDown:e=>((e,t)=>{const i=a.getNavigationTarget(e.key,t,H);null!==i&&(e.preventDefault(),N.current?.querySelector(`[data-point-index="${i}"]`)?.focus())})(e,i),"data-point-index":i,"data-cy":`${j}-point-${i}`,"data-testid":`${k}-point-${i}`},`point-${i}`)),I&&O&&e.jsxs(e.Fragment,{children:[O.bandWidth>0&&e.jsx("div",{className:l.hoverBandStyles,style:{left:O.bandLeft,top:O.plotTop,width:O.bandWidth,height:O.plotHeight},"aria-hidden":"true","data-cy":`${j}-hover-band`,"data-testid":`${k}-hover-band`}),O.plotHeight>0&&e.jsx("svg",{className:l.hoverLineStyles,style:{left:O.pxX-1,top:O.plotTop,width:2,height:O.plotHeight},"aria-hidden":"true","data-cy":`${j}-hover-line`,"data-testid":`${k}-hover-line`,children:e.jsx("line",{x1:1,x2:1,y1:0,y2:O.plotHeight,className:l.hoverLineStrokeStyles,strokeWidth:2,strokeDasharray:"6 6"})}),A.map(t=>{const i=s.valueToY(t.value,$,c)/n*I.containerHeight;return e.jsx("div",{className:l.dotStyles,style:{left:O.pxX-5,top:i-5,backgroundColor:t.series.color},"aria-hidden":"true","data-cy":`${j}-hover-dot-${t.series.key}`,"data-testid":`${k}-hover-dot-${t.series.key}`},t.series.key)}),F&&e.jsxs("div",{ref:w,className:l.tooltipStyles,style:{left:O.tooltip.left,top:O.tooltip.top},"aria-hidden":"true","data-cy":`${j}-tooltip`,"data-testid":`${k}-tooltip`,children:[e.jsx("span",{className:l.tooltipTitleStyles,children:s.getPointLabel(F)}),A.length>0&&e.jsx("div",{className:l.tooltipRowsStyles,children:A.map(t=>e.jsxs("div",{className:l.tooltipRowStyles,"data-cy":`${j}-tooltip-${t.series.key}`,"data-testid":`${k}-tooltip-${t.series.key}`,children:[e.jsx("span",{className:l.tooltipDotStyles,style:{backgroundColor:t.series.color},"aria-hidden":"true"}),e.jsx("span",{className:l.tooltipValueStyles,children:t.value}),e.jsx("span",{className:l.tooltipLabelStyles,children:t.series.label})]},t.series.key))})]})]})]})};y.displayName="LineChartDesktopPlot",exports.LineChartDesktopPlot=y;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),i=require("./index72.cjs"),s=require("./index113.cjs"),a=require("./index105.cjs"),o=require("./index117.cjs"),l=880,n=320,r=16,d=56,c={x:d,y:r,width:l-d-16,height:n-r-44},h=16,p=12,u=e=>e/l*100+"%",y=({points:r,series:d,variant:y,activeKeys:x,yTicks:g,yMax:$,isEmpty:m,animationKey:v,titleId:f,description:b,getPointAriaLabel:S,"data-cy":j,"data-testid":k})=>{const N=t.useRef(null),T=t.useRef(null),w=t.useRef(null),[L,P]=t.useState(null),[M,X]=t.useState(null),H=r.length,Y=L??M,I=!m&&Y&&Y.index<H?Y:null;Y&&!I&&(P(null),X(null));const[W,R]=t.useState(0),[q,K]=t.useState(0),B=`${f}-description`,C=c.y+c.height,D=t.useMemo(()=>s.buildLinePaths({points:r,series:d,variant:y,activeKeys:x,getX:e=>s.indexToX(e,H,c),getY:e=>s.valueToY(e,$,c),baseline:C}),[r,d,y,x,H,$,C]),E=(e,t)=>{const i=T.current?.getBoundingClientRect();return!i||i.width<=0?null:{index:e,pxY:t??c.y/n*i.height+8,containerWidth:i.width,containerHeight:i.height}},F=I?r[I.index]:void 0,A=I?s.getPointItems(F,I.index,d,y,x):[];t.useLayoutEffect(()=>{R(w.current?.offsetHeight??0)},[I?.index,A.length]);const O=t.useMemo(()=>{if(!I)return null;const{containerWidth:e,containerHeight:t,pxY:i}=I,a=s.indexToX(I.index,H,c)/l*e,o=c.width/Math.max(H-1,1)*.6*e/l,r=c.y/n*t,d=c.height/n*t,u=c.x/l*e,y=(c.x+c.width)/l*e,x=Math.max(u,a-o/2),g=Math.min(y,a+o/2),$=s.getTooltipPosition({anchorX:a,anchorY:i,containerWidth:e,containerHeight:t,tooltipWidth:10.0625*s.getRootFontSizePx(),tooltipHeight:W,offsetX:h,offsetY:p});return{pxX:a,bandLeft:x,bandWidth:Math.max(0,g-x),plotTop:r,plotHeight:d,tooltip:$}},[I,H,W]),V=c.width/Math.max(H-1,1)/l*100;return e.jsxs("div",{ref:N,dir:"ltr",className:o.desktopPlotStyles,"data-cy":`${j}-plot`,"data-testid":`${k}-plot`,children:[e.jsxs("svg",{ref:T,viewBox:`0 0 ${l} ${n}`,preserveAspectRatio:"none",className:o.svgStyles,role:"img","aria-labelledby":f,"aria-describedby":B,onPointerMove:m?void 0:e=>{const t=e.currentTarget.getBoundingClientRect();if(t.width<=0||0===H)return;const i=(e.clientX-t.left)/t.width*l;let a=0,o=Number.POSITIVE_INFINITY;for(let l=0;l<H;l+=1){const e=Math.abs(s.indexToX(l,H,c)-i);e<o&&(o=e,a=l)}P(E(a,e.clientY-t.top))},onPointerLeave:()=>P(null),"data-cy":`${j}-svg`,"data-testid":`${k}-svg`,children:[e.jsx("desc",{id:B,"data-cy":`${j}-svg-description`,"data-testid":`${k}-svg-description`,children:b}),g.map(t=>{const i=s.valueToY(t,$,c);return e.jsx("line",{x1:c.x,x2:c.x+c.width,y1:i,y2:i,className:o.gridLineStyles,strokeWidth:1,vectorEffect:"non-scaling-stroke"},t)}),!m&&e.jsx("g",{className:o.growGroupStyles,style:{"--line-chart-baseline":`${C}px`},children:D.map(t=>e.jsx("polyline",{points:t.points,fill:"none",stroke:t.color,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke","data-series":t.seriesKey,"data-cy":"multi"===y?`${j}-series-${t.seriesKey}`:`${j}-segment-${t.id}`,"data-testid":"multi"===y?`${k}-series-${t.seriesKey}`:`${k}-segment-${t.id}`},t.id))},`grow-${v??"static"}`)]}),g.map(t=>{return e.jsx("span",{className:o.yTickStyles,style:{top:(i=s.valueToY(t,$,c),i/n*100+"%"),left:0,width:u(c.x-12)},"aria-hidden":"true","data-cy":`${j}-y-tick-${t}`,"data-testid":`${k}-y-tick-${t}`,children:t},`tick-${t}`);var i}),r.map((t,a)=>e.jsx("span",{className:i.cn(o.xLabelStyles,I?.index===a?o.xLabelActiveStyles:o.xLabelIdleStyles),style:{left:u(s.indexToX(a,H,c))},"aria-hidden":"true","data-cy":`${j}-x-label-${a}`,"data-testid":`${k}-x-label-${a}`,children:t.label},`x-label-${a}`)),!m&&r.map((t,i)=>e.jsx("button",{type:"button",className:o.pointButtonStyles,style:{left:`calc(${u(s.indexToX(i,H,c))} - ${V/2}%)`,width:`${V}%`},tabIndex:i===Math.min(q,H-1)?0:-1,"aria-label":S(t,s.getPointItems(t,i,d,y,x)),onFocus:()=>{K(i),P(null),X(E(i))},onBlur:e=>{N.current?.contains(e.relatedTarget)||X(null)},onKeyDown:e=>((e,t)=>{const i=a.getNavigationTarget(e.key,t,H);null!==i&&(e.preventDefault(),N.current?.querySelector(`[data-point-index="${i}"]`)?.focus())})(e,i),"data-point-index":i,"data-cy":`${j}-point-${i}`,"data-testid":`${k}-point-${i}`},`point-${i}`)),I&&O&&e.jsxs(e.Fragment,{children:[O.bandWidth>0&&e.jsx("div",{className:o.hoverBandStyles,style:{left:O.bandLeft,top:O.plotTop,width:O.bandWidth,height:O.plotHeight},"aria-hidden":"true","data-cy":`${j}-hover-band`,"data-testid":`${k}-hover-band`}),O.plotHeight>0&&e.jsx("svg",{className:o.hoverLineStyles,style:{left:O.pxX-1,top:O.plotTop,width:2,height:O.plotHeight},"aria-hidden":"true","data-cy":`${j}-hover-line`,"data-testid":`${k}-hover-line`,children:e.jsx("line",{x1:1,x2:1,y1:0,y2:O.plotHeight,className:o.hoverLineStrokeStyles,strokeWidth:2,strokeDasharray:"6 6"})}),A.map(t=>{const i=s.valueToY(t.value,$,c)/n*I.containerHeight;return e.jsx("div",{className:o.dotStyles,style:{left:O.pxX-5,top:i-5,backgroundColor:t.series.color},"aria-hidden":"true","data-cy":`${j}-hover-dot-${t.series.key}`,"data-testid":`${k}-hover-dot-${t.series.key}`},t.series.key)}),F&&e.jsxs("div",{ref:w,className:o.tooltipStyles,style:{left:O.tooltip.left,top:O.tooltip.top},"aria-hidden":"true","data-cy":`${j}-tooltip`,"data-testid":`${k}-tooltip`,children:[e.jsx("span",{className:o.tooltipTitleStyles,children:s.getPointLabel(F)}),A.length>0&&e.jsx("div",{className:o.tooltipRowsStyles,children:A.map(t=>e.jsxs("div",{className:o.tooltipRowStyles,"data-cy":`${j}-tooltip-${t.series.key}`,"data-testid":`${k}-tooltip-${t.series.key}`,children:[e.jsx("span",{className:o.tooltipDotStyles,style:{backgroundColor:t.series.color},"aria-hidden":"true"}),e.jsx("span",{className:o.tooltipValueStyles,children:t.value}),e.jsx("span",{className:o.tooltipLabelStyles,children:t.series.label})]},t.series.key))})]})]})]})};y.displayName="LineChartDesktopPlot",exports.LineChartDesktopPlot=y;
package/dist/index114.js CHANGED
@@ -1,8 +1,8 @@
1
- import{jsxs as t,jsx as e,Fragment as i}from"react/jsx-runtime";import{useRef as a,useState as n,useMemo as s,useLayoutEffect as r}from"react";import{cn as l}from"./index72.js";import{buildLinePaths as o,getPointItems as d,indexToX as c,getTooltipPosition as h,getRootFontSizePx as p,valueToY as y,getPointLabel as m}from"./index113.js";import{getNavigationTarget as u}from"./index105.js";import{desktopPlotStyles as $,svgStyles as g,gridLineStyles as x,growGroupStyles as f,yTickStyles as v,xLabelActiveStyles as b,xLabelIdleStyles as k,xLabelStyles as N,pointButtonStyles as w,hoverBandStyles as H,hoverLineStyles as W,hoverLineStrokeStyles as M,dotStyles as T,tooltipStyles as I,tooltipTitleStyles as K,tooltipRowsStyles as L,tooltipRowStyles as X,tooltipDotStyles as Y,tooltipValueStyles as j,tooltipLabelStyles as C}from"./index117.js";const P=880,B=320,D=16,E=56,R={x:E,y:D,width:P-E-16,height:B-D-44},A=16,F=12,S=t=>t/P*100+"%",q=({points:D,series:E,variant:q,activeKeys:O,yTicks:V,yMax:_,isEmpty:z,animationKey:G,titleId:J,description:Q,getPointAriaLabel:U,"data-cy":Z,"data-testid":tt})=>{const et=a(null),it=a(null),at=a(null),[nt,st]=n(null),[rt,lt]=n(null),ot=D.length,dt=nt??rt,ct=!z&&dt&&dt.index<ot?dt:null;dt&&!ct&&(st(null),lt(null));const[ht,pt]=n(0),[yt,mt]=n(0),ut=`${J}-description`,$t=R.y+R.height,gt=s(()=>o({points:D,series:E,variant:q,activeKeys:O,getX:t=>c(t,ot,R),getY:t=>y(t,_,R),baseline:$t}),[D,E,q,O,ot,_,$t]),xt=(t,e)=>{const i=it.current?.getBoundingClientRect();return!i||i.width<=0?null:{index:t,pxY:e??R.y/B*i.height+8,containerWidth:i.width,containerHeight:i.height}},ft=ct?D[ct.index]:void 0,vt=ct?d(ft,ct.index,E,q,O):[];r(()=>{pt(at.current?.offsetHeight??0)},[ct?.index,vt.length]);const bt=s(()=>{if(!ct)return null;const{containerWidth:t,containerHeight:e,pxY:i}=ct,a=c(ct.index,ot,R)/P*t,n=R.width/Math.max(ot-1,1)*.6*t/P,s=R.y/B*e,r=R.height/B*e,l=R.x/P*t,o=(R.x+R.width)/P*t,d=Math.max(l,a-n/2),y=Math.min(o,a+n/2),m=h({anchorX:a,anchorY:i,containerWidth:t,containerHeight:e,tooltipWidth:10.0625*p(),tooltipHeight:ht,offsetX:A,offsetY:F});return{pxX:a,bandLeft:d,bandWidth:Math.max(0,y-d),plotTop:s,plotHeight:r,tooltip:m}},[ct,ot,ht]),kt=R.width/Math.max(ot-1,1)/P*100;/* @__PURE__ */
1
+ import{jsxs as t,jsx as e,Fragment as i}from"react/jsx-runtime";import{useRef as a,useState as n,useMemo as s,useLayoutEffect as r}from"react";import{cn as o}from"./index72.js";import{buildLinePaths as l,getPointItems as d,indexToX as c,getTooltipPosition as h,getRootFontSizePx as p,valueToY as y,getPointLabel as m}from"./index113.js";import{getNavigationTarget as u}from"./index105.js";import{desktopPlotStyles as $,svgStyles as g,gridLineStyles as x,growGroupStyles as f,yTickStyles as v,xLabelActiveStyles as b,xLabelIdleStyles as k,xLabelStyles as N,pointButtonStyles as w,hoverBandStyles as H,hoverLineStyles as W,hoverLineStrokeStyles as M,dotStyles as T,tooltipStyles as I,tooltipTitleStyles as K,tooltipRowsStyles as L,tooltipRowStyles as X,tooltipDotStyles as Y,tooltipValueStyles as j,tooltipLabelStyles as C}from"./index117.js";const P=880,B=320,D=16,E=56,R={x:E,y:D,width:P-E-16,height:B-D-44},A=16,F=12,S=t=>t/P*100+"%",q=({points:D,series:E,variant:q,activeKeys:O,yTicks:V,yMax:_,isEmpty:z,animationKey:G,titleId:J,description:Q,getPointAriaLabel:U,"data-cy":Z,"data-testid":tt})=>{const et=a(null),it=a(null),at=a(null),[nt,st]=n(null),[rt,ot]=n(null),lt=D.length,dt=nt??rt,ct=!z&&dt&&dt.index<lt?dt:null;dt&&!ct&&(st(null),ot(null));const[ht,pt]=n(0),[yt,mt]=n(0),ut=`${J}-description`,$t=R.y+R.height,gt=s(()=>l({points:D,series:E,variant:q,activeKeys:O,getX:t=>c(t,lt,R),getY:t=>y(t,_,R),baseline:$t}),[D,E,q,O,lt,_,$t]),xt=(t,e)=>{const i=it.current?.getBoundingClientRect();return!i||i.width<=0?null:{index:t,pxY:e??R.y/B*i.height+8,containerWidth:i.width,containerHeight:i.height}},ft=ct?D[ct.index]:void 0,vt=ct?d(ft,ct.index,E,q,O):[];r(()=>{pt(at.current?.offsetHeight??0)},[ct?.index,vt.length]);const bt=s(()=>{if(!ct)return null;const{containerWidth:t,containerHeight:e,pxY:i}=ct,a=c(ct.index,lt,R)/P*t,n=R.width/Math.max(lt-1,1)*.6*t/P,s=R.y/B*e,r=R.height/B*e,o=R.x/P*t,l=(R.x+R.width)/P*t,d=Math.max(o,a-n/2),y=Math.min(l,a+n/2),m=h({anchorX:a,anchorY:i,containerWidth:t,containerHeight:e,tooltipWidth:10.0625*p(),tooltipHeight:ht,offsetX:A,offsetY:F});return{pxX:a,bandLeft:d,bandWidth:Math.max(0,y-d),plotTop:s,plotHeight:r,tooltip:m}},[ct,lt,ht]),kt=R.width/Math.max(lt-1,1)/P*100;/* @__PURE__ */
2
2
  return t("div",{ref:et,dir:"ltr",className:$,"data-cy":`${Z}-plot`,"data-testid":`${tt}-plot`,children:[
3
- /* @__PURE__ */t("svg",{ref:it,viewBox:`0 0 ${P} ${B}`,preserveAspectRatio:"none",className:g,role:"img","aria-labelledby":J,"aria-describedby":ut,onPointerMove:z?void 0:t=>{const e=t.currentTarget.getBoundingClientRect();if(e.width<=0||0===ot)return;const i=(t.clientX-e.left)/e.width*P;let a=0,n=Number.POSITIVE_INFINITY;for(let s=0;s<ot;s+=1){const t=Math.abs(c(s,ot,R)-i);t<n&&(n=t,a=s)}st(xt(a,t.clientY-e.top))},onPointerLeave:()=>st(null),"data-cy":`${Z}-svg`,"data-testid":`${tt}-svg`,children:[
4
- /* @__PURE__ */e("desc",{id:ut,children:Q}),V.map(t=>{const i=y(t,_,R);/* @__PURE__ */
5
- return e("line",{x1:R.x,x2:R.x+R.width,y1:i,y2:i,className:x,strokeWidth:1,vectorEffect:"non-scaling-stroke"},t)}),!z&&/* @__PURE__ */e("g",{className:f,style:{"--line-chart-baseline":`${$t}px`},children:gt.map(t=>/* @__PURE__ */e("polyline",{points:t.points,fill:"none",stroke:t.color,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke","data-series":t.seriesKey,"data-cy":"multi"===q?`${Z}-series-${t.seriesKey}`:`${Z}-segment-${t.id}`,"data-testid":"multi"===q?`${tt}-series-${t.seriesKey}`:`${tt}-segment-${t.id}`},t.id))},`grow-${G??"static"}`)]}),V.map(t=>{/* @__PURE__ */return e("span",{className:v,style:{top:(i=y(t,_,R),i/B*100+"%"),left:0,width:S(R.x-12)},"aria-hidden":"true","data-cy":`${Z}-y-tick-${t}`,"data-testid":`${tt}-y-tick-${t}`,children:t},`tick-${t}`);var i}),D.map((t,i)=>/* @__PURE__ */e("span",{className:l(N,ct?.index===i?b:k),style:{left:S(c(i,ot,R))},"aria-hidden":"true","data-cy":`${Z}-x-label-${i}`,"data-testid":`${tt}-x-label-${i}`,children:t.label},`x-label-${i}`)),!z&&D.map((t,i)=>/* @__PURE__ */e("button",{type:"button",className:w,style:{left:`calc(${S(c(i,ot,R))} - ${kt/2}%)`,width:`${kt}%`},tabIndex:i===Math.min(yt,ot-1)?0:-1,"aria-label":U(t,d(t,i,E,q,O)),onFocus:()=>{mt(i),st(null),lt(xt(i))},onBlur:t=>{et.current?.contains(t.relatedTarget)||lt(null)},onKeyDown:t=>((t,e)=>{const i=u(t.key,e,ot);null!==i&&(t.preventDefault(),et.current?.querySelector(`[data-point-index="${i}"]`)?.focus())})(t,i),"data-point-index":i,"data-cy":`${Z}-point-${i}`,"data-testid":`${tt}-point-${i}`},`point-${i}`)),ct&&bt&&/* @__PURE__ */t(i,{children:[bt.bandWidth>0&&/* @__PURE__ */e("div",{className:H,style:{left:bt.bandLeft,top:bt.plotTop,width:bt.bandWidth,height:bt.plotHeight},"aria-hidden":"true","data-cy":`${Z}-hover-band`,"data-testid":`${tt}-hover-band`}),bt.plotHeight>0&&/* @__PURE__ */e("svg",{className:W,style:{left:bt.pxX-1,top:bt.plotTop,width:2,height:bt.plotHeight},"aria-hidden":"true","data-cy":`${Z}-hover-line`,"data-testid":`${tt}-hover-line`,children:/* @__PURE__ */e("line",{x1:1,x2:1,y1:0,y2:bt.plotHeight,className:M,strokeWidth:2,strokeDasharray:"6 6"})}),vt.map(t=>{const i=y(t.value,_,R)/B*ct.containerHeight;/* @__PURE__ */
3
+ /* @__PURE__ */t("svg",{ref:it,viewBox:`0 0 ${P} ${B}`,preserveAspectRatio:"none",className:g,role:"img","aria-labelledby":J,"aria-describedby":ut,onPointerMove:z?void 0:t=>{const e=t.currentTarget.getBoundingClientRect();if(e.width<=0||0===lt)return;const i=(t.clientX-e.left)/e.width*P;let a=0,n=Number.POSITIVE_INFINITY;for(let s=0;s<lt;s+=1){const t=Math.abs(c(s,lt,R)-i);t<n&&(n=t,a=s)}st(xt(a,t.clientY-e.top))},onPointerLeave:()=>st(null),"data-cy":`${Z}-svg`,"data-testid":`${tt}-svg`,children:[
4
+ /* @__PURE__ */e("desc",{id:ut,"data-cy":`${Z}-svg-description`,"data-testid":`${tt}-svg-description`,children:Q}),V.map(t=>{const i=y(t,_,R);/* @__PURE__ */
5
+ return e("line",{x1:R.x,x2:R.x+R.width,y1:i,y2:i,className:x,strokeWidth:1,vectorEffect:"non-scaling-stroke"},t)}),!z&&/* @__PURE__ */e("g",{className:f,style:{"--line-chart-baseline":`${$t}px`},children:gt.map(t=>/* @__PURE__ */e("polyline",{points:t.points,fill:"none",stroke:t.color,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",vectorEffect:"non-scaling-stroke","data-series":t.seriesKey,"data-cy":"multi"===q?`${Z}-series-${t.seriesKey}`:`${Z}-segment-${t.id}`,"data-testid":"multi"===q?`${tt}-series-${t.seriesKey}`:`${tt}-segment-${t.id}`},t.id))},`grow-${G??"static"}`)]}),V.map(t=>{/* @__PURE__ */return e("span",{className:v,style:{top:(i=y(t,_,R),i/B*100+"%"),left:0,width:S(R.x-12)},"aria-hidden":"true","data-cy":`${Z}-y-tick-${t}`,"data-testid":`${tt}-y-tick-${t}`,children:t},`tick-${t}`);var i}),D.map((t,i)=>/* @__PURE__ */e("span",{className:o(N,ct?.index===i?b:k),style:{left:S(c(i,lt,R))},"aria-hidden":"true","data-cy":`${Z}-x-label-${i}`,"data-testid":`${tt}-x-label-${i}`,children:t.label},`x-label-${i}`)),!z&&D.map((t,i)=>/* @__PURE__ */e("button",{type:"button",className:w,style:{left:`calc(${S(c(i,lt,R))} - ${kt/2}%)`,width:`${kt}%`},tabIndex:i===Math.min(yt,lt-1)?0:-1,"aria-label":U(t,d(t,i,E,q,O)),onFocus:()=>{mt(i),st(null),ot(xt(i))},onBlur:t=>{et.current?.contains(t.relatedTarget)||ot(null)},onKeyDown:t=>((t,e)=>{const i=u(t.key,e,lt);null!==i&&(t.preventDefault(),et.current?.querySelector(`[data-point-index="${i}"]`)?.focus())})(t,i),"data-point-index":i,"data-cy":`${Z}-point-${i}`,"data-testid":`${tt}-point-${i}`},`point-${i}`)),ct&&bt&&/* @__PURE__ */t(i,{children:[bt.bandWidth>0&&/* @__PURE__ */e("div",{className:H,style:{left:bt.bandLeft,top:bt.plotTop,width:bt.bandWidth,height:bt.plotHeight},"aria-hidden":"true","data-cy":`${Z}-hover-band`,"data-testid":`${tt}-hover-band`}),bt.plotHeight>0&&/* @__PURE__ */e("svg",{className:W,style:{left:bt.pxX-1,top:bt.plotTop,width:2,height:bt.plotHeight},"aria-hidden":"true","data-cy":`${Z}-hover-line`,"data-testid":`${tt}-hover-line`,children:/* @__PURE__ */e("line",{x1:1,x2:1,y1:0,y2:bt.plotHeight,className:M,strokeWidth:2,strokeDasharray:"6 6"})}),vt.map(t=>{const i=y(t.value,_,R)/B*ct.containerHeight;/* @__PURE__ */
6
6
  return e("div",{className:T,style:{left:bt.pxX-5,top:i-5,backgroundColor:t.series.color},"aria-hidden":"true","data-cy":`${Z}-hover-dot-${t.series.key}`,"data-testid":`${tt}-hover-dot-${t.series.key}`},t.series.key)}),ft&&/* @__PURE__ */t("div",{ref:at,className:I,style:{left:bt.tooltip.left,top:bt.tooltip.top},"aria-hidden":"true","data-cy":`${Z}-tooltip`,"data-testid":`${tt}-tooltip`,children:[
7
7
  /* @__PURE__ */e("span",{className:K,children:m(ft)}),vt.length>0&&/* @__PURE__ */e("div",{className:L,children:vt.map(i=>/* @__PURE__ */t("div",{className:X,"data-cy":`${Z}-tooltip-${i.series.key}`,"data-testid":`${tt}-tooltip-${i.series.key}`,children:[
8
8
  /* @__PURE__ */e("span",{className:Y,style:{backgroundColor:i.series.color},"aria-hidden":"true"}),
package/dist/index115.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),s=require("./index72.cjs"),i=require("./index113.cjs"),l=require("./index105.cjs"),a=require("./index117.cjs"),r={multi:1,single:0},n=({points:n,series:d,variant:o,activeKeys:c,yTicks:h,yMax:y,isEmpty:p,animationKey:u,titleId:m,description:x,getPointAriaLabel:$,pointsLabel:g,defaultActiveIndex:S,"data-cy":b,"data-testid":v})=>{const j=t.useRef(null),N=t.useRef(null),[f,W]=t.useState(0),[k,w]=t.useState(0),[L,P]=t.useState(S),I=`${m}-description`,q=n.length,K=l.clampIndex(L,q);t.useLayoutEffect(()=>{const e=j.current;if(!e)return;const t=()=>W(e.clientWidth);if(t(),"undefined"==typeof ResizeObserver)return;const s=new ResizeObserver(t);return s.observe(e),()=>s.disconnect()},[]);const T=i.getRootFontSizePx(),C=11.375*T,R=i.getMobileStripGeometry({count:q,containerWidth:f,columnWidth:4.625*T,columnGap:1*T,minFillStep:3.125*T}),B=r[o]*T,M={y:B,width:R.stripWidth,height:C-2*B},D=e=>e*R.step+R.step/2,z=e=>i.valueToY(e,y,M),F=i.buildLinePaths({points:n,series:d,variant:o,activeKeys:c,getX:D,getY:z,baseline:M.y+M.height}),G=n[K],O=i.getPointItems(G,K,d,o,c),A=D(K)-R.columnWidth/2,E=R.stripWidth-f-k>1,Y=e=>{P(e),N.current?.querySelector(`[data-point-index="${e}"]`)?.focus()};return e.jsxs("div",{className:a.mobilePlotRootStyles,children:[!p&&G&&e.jsxs("div",{className:a.panelStyles[o],"data-cy":`${b}-panel`,"data-testid":`${v}-panel`,children:[e.jsx("span",{className:a.panelTitleStyles[o],"aria-live":"polite",children:i.getPointLabel(G)},K),O.length>0&&e.jsx("div",{className:a.panelItemsStyles[o],children:O.map(t=>e.jsxs("div",{className:a.panelItemStyles[o],"data-cy":`${b}-panel-${t.series.key}`,"data-testid":`${v}-panel-${t.series.key}`,children:[e.jsx("span",{className:a.panelDotStyles[o],style:{backgroundColor:t.series.color},"aria-hidden":"true"}),e.jsxs("div",{className:a.panelTextStyles[o],children:[e.jsx("span",{className:a.panelValueStyles[o],children:t.value}),e.jsx("span",{className:a.panelLabelStyles[o],children:t.series.label})]})]},t.series.key))})]}),e.jsxs("div",{dir:"ltr",className:a.scrollerWrapperStyles,children:[e.jsx("div",{ref:j,className:a.scrollerStyles,onScroll:e=>w(e.currentTarget.scrollLeft),"data-cy":`${b}-scroller`,"data-testid":`${v}-scroller`,children:e.jsxs("div",{className:a.stripStyles,style:{width:R.stripWidth},children:[!p&&G&&e.jsxs("div",{className:a.spotlightStyles,style:{left:A,width:R.columnWidth},"aria-hidden":"true","data-cy":`${b}-spotlight`,"data-testid":`${v}-spotlight`,children:[e.jsx("div",{className:a.spotlightBandStyles}),e.jsx("div",{className:a.spotlightLineStyles,style:{left:R.columnWidth/2}}),O.map(t=>e.jsx("div",{className:a.spotlightDotStyles,style:{left:R.columnWidth/2-5,top:z(t.value)-5,backgroundColor:t.series.color},"data-cy":`${b}-dot-${t.series.key}`,"data-testid":`${v}-dot-${t.series.key}`},t.series.key))]}),e.jsxs("div",{className:a.mobilePlotStyles,style:{width:R.stripWidth},children:[!p&&n.map((t,s)=>e.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:a.chartHitStyles,style:{left:s*R.step,width:R.step},onClick:()=>Y(s),"data-cy":`${b}-chart-hit-${s}`,"data-testid":`${v}-chart-hit-${s}`},`hit-${s}`)),e.jsxs("svg",{width:R.stripWidth,height:C,viewBox:`0 0 ${R.stripWidth} ${C}`,className:a.mobileSvgStyles,role:"img","aria-labelledby":m,"aria-describedby":I,"data-cy":`${b}-svg`,"data-testid":`${v}-svg`,children:[e.jsx("desc",{id:I,children:x}),h.map(t=>e.jsx("line",{x1:0,x2:R.stripWidth,y1:z(t),y2:z(t),className:a.gridLineStyles,strokeWidth:1},t)),!p&&e.jsx("g",{className:a.growGroupStyles,style:{"--line-chart-baseline":`${M.y+M.height}px`},children:F.map(t=>e.jsx("polyline",{points:t.points,fill:"none",stroke:t.color,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","data-series":t.seriesKey,"data-cy":"multi"===o?`${b}-series-${t.seriesKey}`:`${b}-segment-${t.id}`,"data-testid":"multi"===o?`${v}-series-${t.seriesKey}`:`${v}-segment-${t.id}`},t.id))},`grow-${u??"static"}`)]})]}),e.jsx("div",{ref:N,role:"group","aria-label":g,className:a.monthsStyles,style:{width:R.stripWidth},children:n.map((t,r)=>{const n=!p&&r===K;return e.jsx("button",{type:"button",disabled:p,tabIndex:r===K?0:-1,"aria-pressed":n,"aria-label":$(t,i.getPointItems(t,r,d,o,c)),className:s.cn(a.monthButtonStyles,n?a.monthButtonSelectedStyles:a.monthButtonIdleStyles),style:{left:D(r)-R.columnWidth/2,width:R.columnWidth},onClick:()=>P(r),onKeyDown:e=>((e,t)=>{const s=l.getNavigationTarget(e.key,t,q);null!==s&&(e.preventDefault(),Y(s))})(e,r),"data-point-index":r,"data-cy":`${b}-month-${r}`,"data-testid":`${v}-month-${r}`,children:t.label},`month-${r}`)})})]})}),E&&e.jsx("div",{className:a.scrollFadeStyles,"aria-hidden":"true","data-cy":`${b}-scroll-fade`,"data-testid":`${v}-scroll-fade`})]})]})};n.displayName="LineChartMobilePlot",exports.LineChartMobilePlot=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),s=require("./index72.cjs"),i=require("./index113.cjs"),a=require("./index105.cjs"),l=require("./index117.cjs"),r={multi:1,single:0},d=({points:d,series:n,variant:o,activeKeys:c,yTicks:h,yMax:y,isEmpty:p,animationKey:u,titleId:m,description:x,getPointAriaLabel:$,pointsLabel:g,defaultActiveIndex:S,"data-cy":v,"data-testid":b})=>{const j=t.useRef(null),N=t.useRef(null),[f,W]=t.useState(0),[k,w]=t.useState(0),[L,P]=t.useState(S),I=`${m}-description`,q=d.length,K=a.clampIndex(L,q);t.useLayoutEffect(()=>{const e=j.current;if(!e)return;const t=()=>W(e.clientWidth);if(t(),"undefined"==typeof ResizeObserver)return;const s=new ResizeObserver(t);return s.observe(e),()=>s.disconnect()},[]);const T=i.getRootFontSizePx(),C=11.375*T,R=i.getMobileStripGeometry({count:q,containerWidth:f,columnWidth:4.625*T,columnGap:1*T,minFillStep:3.125*T}),B=r[o]*T,M={y:B,width:R.stripWidth,height:C-2*B},D=e=>e*R.step+R.step/2,z=e=>i.valueToY(e,y,M),F=i.buildLinePaths({points:d,series:n,variant:o,activeKeys:c,getX:D,getY:z,baseline:M.y+M.height}),G=d[K],O=i.getPointItems(G,K,n,o,c),A=D(K)-R.columnWidth/2,E=R.stripWidth-f-k>1,Y=e=>{P(e),N.current?.querySelector(`[data-point-index="${e}"]`)?.focus()};return e.jsxs("div",{className:l.mobilePlotRootStyles,children:[!p&&G&&e.jsxs("div",{className:l.panelStyles[o],"data-cy":`${v}-panel`,"data-testid":`${b}-panel`,children:[e.jsx("span",{className:l.panelTitleStyles[o],"aria-live":"polite",children:i.getPointLabel(G)},K),O.length>0&&e.jsx("div",{className:l.panelItemsStyles[o],children:O.map(t=>e.jsxs("div",{className:l.panelItemStyles[o],"data-cy":`${v}-panel-${t.series.key}`,"data-testid":`${b}-panel-${t.series.key}`,children:[e.jsx("span",{className:l.panelDotStyles[o],style:{backgroundColor:t.series.color},"aria-hidden":"true"}),e.jsxs("div",{className:l.panelTextStyles[o],children:[e.jsx("span",{className:l.panelValueStyles[o],children:t.value}),e.jsx("span",{className:l.panelLabelStyles[o],children:t.series.label})]})]},t.series.key))})]}),e.jsxs("div",{dir:"ltr",className:l.scrollerWrapperStyles,children:[e.jsx("div",{ref:j,className:l.scrollerStyles,onScroll:e=>w(e.currentTarget.scrollLeft),"data-cy":`${v}-scroller`,"data-testid":`${b}-scroller`,children:e.jsxs("div",{className:l.stripStyles,style:{width:R.stripWidth},children:[!p&&G&&e.jsxs("div",{className:l.spotlightStyles,style:{left:A,width:R.columnWidth},"aria-hidden":"true","data-cy":`${v}-spotlight`,"data-testid":`${b}-spotlight`,children:[e.jsx("div",{className:l.spotlightBandStyles}),e.jsx("div",{className:l.spotlightLineStyles,style:{left:R.columnWidth/2}}),O.map(t=>e.jsx("div",{className:l.spotlightDotStyles,style:{left:R.columnWidth/2-5,top:z(t.value)-5,backgroundColor:t.series.color},"data-cy":`${v}-dot-${t.series.key}`,"data-testid":`${b}-dot-${t.series.key}`},t.series.key))]}),e.jsxs("div",{className:l.mobilePlotStyles,style:{width:R.stripWidth},children:[!p&&d.map((t,s)=>e.jsx("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:l.chartHitStyles,style:{left:s*R.step,width:R.step},onClick:()=>Y(s),"data-cy":`${v}-chart-hit-${s}`,"data-testid":`${b}-chart-hit-${s}`},`hit-${s}`)),e.jsxs("svg",{width:R.stripWidth,height:C,viewBox:`0 0 ${R.stripWidth} ${C}`,className:l.mobileSvgStyles,role:"img","aria-labelledby":m,"aria-describedby":I,"data-cy":`${v}-svg`,"data-testid":`${b}-svg`,children:[e.jsx("desc",{id:I,"data-cy":`${v}-svg-description`,"data-testid":`${b}-svg-description`,children:x}),h.map(t=>e.jsx("line",{x1:0,x2:R.stripWidth,y1:z(t),y2:z(t),className:l.gridLineStyles,strokeWidth:1},t)),!p&&e.jsx("g",{className:l.growGroupStyles,style:{"--line-chart-baseline":`${M.y+M.height}px`},children:F.map(t=>e.jsx("polyline",{points:t.points,fill:"none",stroke:t.color,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","data-series":t.seriesKey,"data-cy":"multi"===o?`${v}-series-${t.seriesKey}`:`${v}-segment-${t.id}`,"data-testid":"multi"===o?`${b}-series-${t.seriesKey}`:`${b}-segment-${t.id}`},t.id))},`grow-${u??"static"}`)]})]}),e.jsx("div",{ref:N,role:"group","aria-label":g,className:l.monthsStyles,style:{width:R.stripWidth},children:d.map((t,r)=>{const d=!p&&r===K;return e.jsx("button",{type:"button",disabled:p,tabIndex:r===K?0:-1,"aria-pressed":d,"aria-label":$(t,i.getPointItems(t,r,n,o,c)),className:s.cn(l.monthButtonStyles,d?l.monthButtonSelectedStyles:l.monthButtonIdleStyles),style:{left:D(r)-R.columnWidth/2,width:R.columnWidth},onClick:()=>P(r),onKeyDown:e=>((e,t)=>{const s=a.getNavigationTarget(e.key,t,q);null!==s&&(e.preventDefault(),Y(s))})(e,r),"data-point-index":r,"data-cy":`${v}-month-${r}`,"data-testid":`${b}-month-${r}`,children:t.label},`month-${r}`)})})]})}),E&&e.jsx("div",{className:l.scrollFadeStyles,"aria-hidden":"true","data-cy":`${v}-scroll-fade`,"data-testid":`${b}-scroll-fade`})]})]})};d.displayName="LineChartMobilePlot",exports.LineChartMobilePlot=d;
package/dist/index115.js CHANGED
@@ -1,16 +1,16 @@
1
- import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useRef as i,useState as s,useLayoutEffect as a}from"react";import{cn as d}from"./index72.js";import{getRootFontSizePx as l,buildLinePaths as r,getPointItems as n,getPointLabel as c,getMobileStripGeometry as o,valueToY as h}from"./index113.js";import{clampIndex as m,getNavigationTarget as p}from"./index105.js";import{mobilePlotRootStyles as y,panelStyles as u,panelTitleStyles as $,panelItemsStyles as v,panelItemStyles as b,panelDotStyles as N,panelTextStyles as f,panelValueStyles as g,panelLabelStyles as W,scrollerWrapperStyles as k,scrollerStyles as x,stripStyles as w,spotlightStyles as K,spotlightBandStyles as j,spotlightLineStyles as L,spotlightDotStyles as C,mobilePlotStyles as I,chartHitStyles as S,mobileSvgStyles as z,gridLineStyles as A,growGroupStyles as D,monthsStyles as M,monthButtonSelectedStyles as O,monthButtonIdleStyles as P,monthButtonStyles as R,scrollFadeStyles as T}from"./index117.js";const q={multi:1,single:0},B=({points:B,series:E,variant:F,activeKeys:G,yTicks:X,yMax:Y,isEmpty:H,animationKey:J,titleId:Q,description:U,getPointAriaLabel:V,pointsLabel:Z,defaultActiveIndex:_,"data-cy":ee,"data-testid":te})=>{const ie=i(null),se=i(null),[ae,de]=s(0),[le,re]=s(0),[ne,ce]=s(_),oe=`${Q}-description`,he=B.length,me=m(ne,he);a(()=>{const e=ie.current;if(!e)return;const t=()=>de(e.clientWidth);if(t(),"undefined"==typeof ResizeObserver)return;const i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[]);const pe=l(),ye=11.375*pe,ue=o({count:he,containerWidth:ae,columnWidth:4.625*pe,columnGap:1*pe,minFillStep:3.125*pe}),$e=q[F]*pe,ve={y:$e,width:ue.stripWidth,height:ye-2*$e},be=e=>e*ue.step+ue.step/2,Ne=e=>h(e,Y,ve),fe=r({points:B,series:E,variant:F,activeKeys:G,getX:be,getY:Ne,baseline:ve.y+ve.height}),ge=B[me],We=n(ge,me,E,F,G),ke=be(me)-ue.columnWidth/2,xe=ue.stripWidth-ae-le>1,we=e=>{ce(e),se.current?.querySelector(`[data-point-index="${e}"]`)?.focus()};/* @__PURE__ */
2
- return e("div",{className:y,children:[!H&&ge&&/* @__PURE__ */e("div",{className:u[F],"data-cy":`${ee}-panel`,"data-testid":`${te}-panel`,children:[
3
- /* @__PURE__ */t("span",{className:$[F],"aria-live":"polite",children:c(ge)},me),We.length>0&&/* @__PURE__ */t("div",{className:v[F],children:We.map(i=>/* @__PURE__ */e("div",{className:b[F],"data-cy":`${ee}-panel-${i.series.key}`,"data-testid":`${te}-panel-${i.series.key}`,children:[
4
- /* @__PURE__ */t("span",{className:N[F],style:{backgroundColor:i.series.color},"aria-hidden":"true"}),
5
- /* @__PURE__ */e("div",{className:f[F],children:[
6
- /* @__PURE__ */t("span",{className:g[F],children:i.value}),
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useRef as i,useState as s,useLayoutEffect as a}from"react";import{cn as d}from"./index72.js";import{getRootFontSizePx as r,buildLinePaths as l,getPointItems as n,getPointLabel as c,getMobileStripGeometry as o,valueToY as h}from"./index113.js";import{clampIndex as m,getNavigationTarget as p}from"./index105.js";import{mobilePlotRootStyles as y,panelStyles as u,panelTitleStyles as $,panelItemsStyles as v,panelItemStyles as g,panelDotStyles as b,panelTextStyles as N,panelValueStyles as f,panelLabelStyles as W,scrollerWrapperStyles as k,scrollerStyles as x,stripStyles as w,spotlightStyles as K,spotlightBandStyles as j,spotlightLineStyles as L,spotlightDotStyles as C,mobilePlotStyles as I,chartHitStyles as S,mobileSvgStyles as z,gridLineStyles as A,growGroupStyles as D,monthsStyles as M,monthButtonSelectedStyles as O,monthButtonIdleStyles as P,monthButtonStyles as R,scrollFadeStyles as T}from"./index117.js";const q={multi:1,single:0},B=({points:B,series:E,variant:F,activeKeys:G,yTicks:X,yMax:Y,isEmpty:H,animationKey:J,titleId:Q,description:U,getPointAriaLabel:V,pointsLabel:Z,defaultActiveIndex:_,"data-cy":ee,"data-testid":te})=>{const ie=i(null),se=i(null),[ae,de]=s(0),[re,le]=s(0),[ne,ce]=s(_),oe=`${Q}-description`,he=B.length,me=m(ne,he);a(()=>{const e=ie.current;if(!e)return;const t=()=>de(e.clientWidth);if(t(),"undefined"==typeof ResizeObserver)return;const i=new ResizeObserver(t);return i.observe(e),()=>i.disconnect()},[]);const pe=r(),ye=11.375*pe,ue=o({count:he,containerWidth:ae,columnWidth:4.625*pe,columnGap:1*pe,minFillStep:3.125*pe}),$e=q[F]*pe,ve={y:$e,width:ue.stripWidth,height:ye-2*$e},ge=e=>e*ue.step+ue.step/2,be=e=>h(e,Y,ve),Ne=l({points:B,series:E,variant:F,activeKeys:G,getX:ge,getY:be,baseline:ve.y+ve.height}),fe=B[me],We=n(fe,me,E,F,G),ke=ge(me)-ue.columnWidth/2,xe=ue.stripWidth-ae-re>1,we=e=>{ce(e),se.current?.querySelector(`[data-point-index="${e}"]`)?.focus()};/* @__PURE__ */
2
+ return e("div",{className:y,children:[!H&&fe&&/* @__PURE__ */e("div",{className:u[F],"data-cy":`${ee}-panel`,"data-testid":`${te}-panel`,children:[
3
+ /* @__PURE__ */t("span",{className:$[F],"aria-live":"polite",children:c(fe)},me),We.length>0&&/* @__PURE__ */t("div",{className:v[F],children:We.map(i=>/* @__PURE__ */e("div",{className:g[F],"data-cy":`${ee}-panel-${i.series.key}`,"data-testid":`${te}-panel-${i.series.key}`,children:[
4
+ /* @__PURE__ */t("span",{className:b[F],style:{backgroundColor:i.series.color},"aria-hidden":"true"}),
5
+ /* @__PURE__ */e("div",{className:N[F],children:[
6
+ /* @__PURE__ */t("span",{className:f[F],children:i.value}),
7
7
  /* @__PURE__ */t("span",{className:W[F],children:i.series.label})]})]},i.series.key))})]}),
8
8
  /* @__PURE__ */e("div",{dir:"ltr",className:k,children:[
9
- /* @__PURE__ */t("div",{ref:ie,className:x,onScroll:e=>re(e.currentTarget.scrollLeft),"data-cy":`${ee}-scroller`,"data-testid":`${te}-scroller`,children:/* @__PURE__ */e("div",{className:w,style:{width:ue.stripWidth},children:[!H&&ge&&/* @__PURE__ */e("div",{className:K,style:{left:ke,width:ue.columnWidth},"aria-hidden":"true","data-cy":`${ee}-spotlight`,"data-testid":`${te}-spotlight`,children:[
9
+ /* @__PURE__ */t("div",{ref:ie,className:x,onScroll:e=>le(e.currentTarget.scrollLeft),"data-cy":`${ee}-scroller`,"data-testid":`${te}-scroller`,children:/* @__PURE__ */e("div",{className:w,style:{width:ue.stripWidth},children:[!H&&fe&&/* @__PURE__ */e("div",{className:K,style:{left:ke,width:ue.columnWidth},"aria-hidden":"true","data-cy":`${ee}-spotlight`,"data-testid":`${te}-spotlight`,children:[
10
10
  /* @__PURE__ */t("div",{className:j}),
11
- /* @__PURE__ */t("div",{className:L,style:{left:ue.columnWidth/2}}),We.map(e=>/* @__PURE__ */t("div",{className:C,style:{left:ue.columnWidth/2-5,top:Ne(e.value)-5,backgroundColor:e.series.color},"data-cy":`${ee}-dot-${e.series.key}`,"data-testid":`${te}-dot-${e.series.key}`},e.series.key))]}),
11
+ /* @__PURE__ */t("div",{className:L,style:{left:ue.columnWidth/2}}),We.map(e=>/* @__PURE__ */t("div",{className:C,style:{left:ue.columnWidth/2-5,top:be(e.value)-5,backgroundColor:e.series.color},"data-cy":`${ee}-dot-${e.series.key}`,"data-testid":`${te}-dot-${e.series.key}`},e.series.key))]}),
12
12
  /* @__PURE__ */e("div",{className:I,style:{width:ue.stripWidth},children:[!H&&B.map((e,i)=>/* @__PURE__ */t("button",{type:"button",tabIndex:-1,"aria-hidden":"true",className:S,style:{left:i*ue.step,width:ue.step},onClick:()=>we(i),"data-cy":`${ee}-chart-hit-${i}`,"data-testid":`${te}-chart-hit-${i}`},`hit-${i}`)),
13
13
  /* @__PURE__ */e("svg",{width:ue.stripWidth,height:ye,viewBox:`0 0 ${ue.stripWidth} ${ye}`,className:z,role:"img","aria-labelledby":Q,"aria-describedby":oe,"data-cy":`${ee}-svg`,"data-testid":`${te}-svg`,children:[
14
- /* @__PURE__ */t("desc",{id:oe,children:U}),X.map(e=>/* @__PURE__ */t("line",{x1:0,x2:ue.stripWidth,y1:Ne(e),y2:Ne(e),className:A,strokeWidth:1},e)),!H&&/* @__PURE__ */t("g",{className:D,style:{"--line-chart-baseline":`${ve.y+ve.height}px`},children:fe.map(e=>/* @__PURE__ */t("polyline",{points:e.points,fill:"none",stroke:e.color,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","data-series":e.seriesKey,"data-cy":"multi"===F?`${ee}-series-${e.seriesKey}`:`${ee}-segment-${e.id}`,"data-testid":"multi"===F?`${te}-series-${e.seriesKey}`:`${te}-segment-${e.id}`},e.id))},`grow-${J??"static"}`)]})]}),
14
+ /* @__PURE__ */t("desc",{id:oe,"data-cy":`${ee}-svg-description`,"data-testid":`${te}-svg-description`,children:U}),X.map(e=>/* @__PURE__ */t("line",{x1:0,x2:ue.stripWidth,y1:be(e),y2:be(e),className:A,strokeWidth:1},e)),!H&&/* @__PURE__ */t("g",{className:D,style:{"--line-chart-baseline":`${ve.y+ve.height}px`},children:Ne.map(e=>/* @__PURE__ */t("polyline",{points:e.points,fill:"none",stroke:e.color,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round","data-series":e.seriesKey,"data-cy":"multi"===F?`${ee}-series-${e.seriesKey}`:`${ee}-segment-${e.id}`,"data-testid":"multi"===F?`${te}-series-${e.seriesKey}`:`${te}-segment-${e.id}`},e.id))},`grow-${J??"static"}`)]})]}),
15
15
  /* @__PURE__ */t("div",{ref:se,role:"group","aria-label":Z,className:M,style:{width:ue.stripWidth},children:B.map((e,i)=>{const s=!H&&i===me;/* @__PURE__ */
16
- return t("button",{type:"button",disabled:H,tabIndex:i===me?0:-1,"aria-pressed":s,"aria-label":V(e,n(e,i,E,F,G)),className:d(R,s?O:P),style:{left:be(i)-ue.columnWidth/2,width:ue.columnWidth},onClick:()=>ce(i),onKeyDown:e=>((e,t)=>{const i=p(e.key,t,he);null!==i&&(e.preventDefault(),we(i))})(e,i),"data-point-index":i,"data-cy":`${ee}-month-${i}`,"data-testid":`${te}-month-${i}`,children:e.label},`month-${i}`)})})]})}),xe&&/* @__PURE__ */t("div",{className:T,"aria-hidden":"true","data-cy":`${ee}-scroll-fade`,"data-testid":`${te}-scroll-fade`})]})]})};B.displayName="LineChartMobilePlot";export{B as LineChartMobilePlot};
16
+ return t("button",{type:"button",disabled:H,tabIndex:i===me?0:-1,"aria-pressed":s,"aria-label":V(e,n(e,i,E,F,G)),className:d(R,s?O:P),style:{left:ge(i)-ue.columnWidth/2,width:ue.columnWidth},onClick:()=>ce(i),onKeyDown:e=>((e,t)=>{const i=p(e.key,t,he);null!==i&&(e.preventDefault(),we(i))})(e,i),"data-point-index":i,"data-cy":`${ee}-month-${i}`,"data-testid":`${te}-month-${i}`,children:e.label},`month-${i}`)})})]})}),xe&&/* @__PURE__ */t("div",{className:T,"aria-hidden":"true","data-cy":`${ee}-scroll-fade`,"data-testid":`${te}-scroll-fade`})]})]})};B.displayName="LineChartMobilePlot";export{B as LineChartMobilePlot};
package/dist/index117.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["relative flex flex-col w-full h-[32.125rem] rounded-16 px-8 pt-8 pb-12","shadow-card transition-colors duration-150","bg-[var(--color-overlay-white-43)] hover:bg-[var(--color-card)] focus-within:bg-[var(--color-card)]"].join(" "),t=["absolute top-0 bottom-0 m-0 p-0 border-0 bg-transparent rounded-4 outline-none pointer-events-none","focus-visible:ring-2 focus-visible:ring-[var(--color-button-blue)] focus-visible:ring-offset-1"].join(" "),o=["absolute z-10 flex flex-col gap-4 w-[10.0625rem] py-2.5 px-3 pointer-events-none","rounded-6 bg-[var(--color-text)] shadow-card-strong"].join(" "),l=["w-full overflow-x-auto overflow-y-hidden","[-webkit-overflow-scrolling:touch] [overscroll-behavior-x:contain]","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),r=["absolute top-1.5 bottom-1.5 end-0 w-12 pointer-events-none","bg-linear-to-l from-[var(--color-card)] from-[17%] to-transparent"].join(" "),s=["absolute top-0 inline-flex items-center justify-center h-10 m-0 p-0 border-0 rounded-8","text-20 leading-[1.012em] transition-all duration-200 ease-out outline-none","focus-visible:ring-2 focus-visible:ring-[var(--color-button-blue)] focus-visible:ring-offset-1","disabled:cursor-default"].join(" ");exports.chartHitStyles="absolute top-0 h-[11.375rem] m-0 p-0 border-0 bg-transparent cursor-pointer",exports.desktopHeaderEndStyles="flex items-center justify-end gap-8 min-w-0",exports.desktopHeaderStyles="relative z-30 flex items-start justify-between gap-8 w-full",exports.desktopPlotStyles="relative flex-1 w-full",exports.desktopRootGapStyles={multi:"gap-10",single:"gap-8"},exports.desktopRootStyles=e,exports.dotStyles="absolute size-[0.625rem] rounded-full pointer-events-none",exports.errorOverlayStyles="absolute inset-0 z-40 rounded-[inherit]",exports.gridLineStyles="stroke-[var(--color-border)]",exports.growGroupStyles="line-chart-grow [transform-box:view-box] origin-[0_var(--line-chart-baseline,100%)]",exports.hoverBandStyles="absolute pointer-events-none bg-[var(--color-overlay-border-50)]",exports.hoverLineStrokeStyles="stroke-[var(--color-icon-secondary)]",exports.hoverLineStyles="absolute pointer-events-none overflow-visible",exports.legendDotStyles={multi:"size-[0.625rem] rounded-full shrink-0",single:"size-[0.75rem] rounded-full shrink-0"},exports.legendItemStyles={multi:"flex items-center gap-2",single:"flex items-center gap-3"},exports.legendLabelStyles={multi:"text-20 leading-[1.012em] text-[var(--color-system-text)]",single:"text-18 leading-[1.012em] text-[var(--color-system-text)]"},exports.legendStyles={multi:"flex flex-wrap items-center justify-center gap-6",single:"flex flex-wrap items-center justify-end gap-6"},exports.mobileBodyStyles="flex flex-col w-full gap-4",exports.mobileHeaderActionsStyles="flex w-full [&>*]:w-full [&_[role=tablist]]:flex [&_[role=tablist]]:w-full",exports.mobilePlotRootStyles="relative flex flex-col w-full",exports.mobilePlotStyles="relative h-[11.375rem]",exports.mobileRootStyles="relative flex flex-col w-full rounded-12 p-5 pb-7 gap-6 shadow-card bg-[var(--color-card)]",exports.mobileSvgStyles="absolute inset-0 block overflow-visible pointer-events-none",exports.monthButtonIdleStyles="bg-transparent text-[var(--color-icon-secondary)] enabled:hover:text-[var(--color-system-text)]",exports.monthButtonSelectedStyles="bg-[var(--color-border)] text-[var(--color-system-text)] scale-[1.02]",exports.monthButtonStyles=s,exports.monthsStyles="relative h-10",exports.overlayStyles="absolute inset-0 z-10 rounded-[inherit]",exports.panelDotStyles={multi:"size-[0.625rem] mt-1.5 rounded-full shrink-0",single:"size-[0.625rem] rounded-full shrink-0"},exports.panelItemStyles={multi:"flex items-start gap-2 shrink-0",single:"flex items-center gap-2 shrink-0"},exports.panelItemsStyles={multi:"flex items-start justify-center gap-3 w-full",single:"flex flex-wrap items-center justify-end gap-x-6 gap-y-2 min-w-0"},exports.panelLabelStyles={multi:"text-14 leading-[1.012em] text-[var(--color-system-text)] whitespace-nowrap",single:"text-trim-cap text-14 leading-[1.012em] text-[var(--color-system-text)] whitespace-nowrap"},exports.panelStyles={multi:"flex flex-col justify-center gap-4 w-full p-4 rounded-t-8 bg-[var(--color-overlay-border-30)]",single:"flex flex-row items-center justify-between gap-4 w-full py-5 px-6 rounded-t-8 bg-[var(--color-overlay-border-30)]"},exports.panelTextStyles={multi:"flex flex-col gap-2 w-[4.041875rem]",single:"flex flex-row-reverse items-center gap-2"},exports.panelTitleStyles={multi:"line-chart-fade-in w-full text-center text-18 leading-[1.012em] text-[var(--color-system-text)]",single:"line-chart-fade-in text-trim-cap shrink-0 whitespace-nowrap text-18 leading-[1.012em] text-[var(--color-system-text)]"},exports.panelValueStyles={multi:"font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap tabular-nums",single:"text-trim-cap font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap tabular-nums"},exports.pointButtonStyles=t,exports.scrollFadeStyles=r,exports.scrollerStyles=l,exports.scrollerWrapperStyles="relative w-full overflow-hidden -my-1.5 py-1.5",exports.spotlightBandStyles="absolute inset-0 rounded-8 bg-[var(--color-overlay-border-32)]",exports.spotlightDotStyles="absolute size-[0.625rem] rounded-full transition-[top] duration-200 ease-out",exports.spotlightLineStyles="absolute top-4 bottom-4 border-s border-dashed border-[var(--color-system-text)]",exports.spotlightStyles="absolute top-0 h-[11.375rem] pointer-events-none transition-[left] duration-200 ease-out",exports.stripStyles="relative flex flex-col gap-4",exports.svgStyles="absolute inset-0 block w-full h-full",exports.titleStyles="m-0 font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap",exports.tooltipDotStyles="size-[0.625rem] rounded-full shrink-0",exports.tooltipLabelStyles="text-16 leading-[1.012em] text-[var(--color-icon-secondary)]",exports.tooltipRowStyles="flex items-center gap-3",exports.tooltipRowsStyles="flex flex-col gap-3",exports.tooltipStyles=o,exports.tooltipTitleStyles="text-14 leading-[1.012em] text-[var(--color-white)]",exports.tooltipValueStyles="min-w-[1.5rem] font-bold text-16 leading-[1.045em] text-[var(--color-white)] tabular-nums",exports.xLabelActiveStyles="font-bold text-[var(--color-system-text)]",exports.xLabelIdleStyles="font-normal text-[var(--color-icon-secondary)]",exports.xLabelStyles="absolute bottom-0 -translate-x-1/2 pointer-events-none whitespace-nowrap text-20 leading-[1.012em]",exports.yTickStyles="absolute -translate-y-1/2 pointer-events-none text-end text-20 leading-[1.012em] text-[var(--color-icon-secondary)]";
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["relative flex flex-col w-full h-[32.125rem] rounded-16 px-8 pt-8 pb-12","shadow-card transition-colors duration-150","bg-[var(--color-overlay-white-43)] hover:bg-[var(--color-card)] focus-within:bg-[var(--color-card)]"].join(" "),t=["absolute top-0 bottom-0 m-0 p-0 border-0 bg-transparent rounded-4 outline-none pointer-events-none","focus-visible:ring-2 focus-visible:ring-[var(--color-button-blue)] focus-visible:ring-offset-1"].join(" "),o=["absolute z-10 flex flex-col gap-4 w-[10.0625rem] py-2.5 px-3 pointer-events-none","rounded-6 bg-[var(--color-text)] shadow-card-strong"].join(" "),l=["w-full overflow-x-auto overflow-y-hidden","[-webkit-overflow-scrolling:touch] [overscroll-behavior-x:contain]","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),r=["absolute top-1.5 bottom-1.5 end-0 w-12 pointer-events-none","bg-linear-to-l from-[var(--color-card)] from-[17%] to-transparent"].join(" "),s=["absolute top-0 inline-flex items-center justify-center h-10 m-0 p-0 border-0 rounded-8","text-20 leading-[1.012em] transition-all duration-200 ease-out outline-none","focus-visible:ring-2 focus-visible:ring-[var(--color-button-blue)] focus-visible:ring-offset-1","disabled:cursor-default"].join(" ");exports.chartHitStyles="absolute top-0 h-[11.375rem] m-0 p-0 border-0 bg-transparent cursor-pointer",exports.desktopHeaderEndStyles="flex items-center justify-end gap-8 min-w-0",exports.desktopHeaderStyles="relative z-50 flex items-start justify-between gap-8 w-full",exports.desktopPlotStyles="relative flex-1 w-full",exports.desktopRootGapStyles={multi:"gap-10",single:"gap-8"},exports.desktopRootStyles=e,exports.dotStyles="absolute size-[0.625rem] rounded-full pointer-events-none",exports.errorOverlayStyles="absolute inset-0 z-40 rounded-[inherit]",exports.gridLineStyles="stroke-[var(--color-border)]",exports.growGroupStyles="line-chart-grow [transform-box:view-box] origin-[0_var(--line-chart-baseline,100%)]",exports.hoverBandStyles="absolute pointer-events-none bg-[var(--color-overlay-border-50)]",exports.hoverLineStrokeStyles="stroke-[var(--color-icon-secondary)]",exports.hoverLineStyles="absolute pointer-events-none overflow-visible",exports.legendDotStyles={multi:"size-[0.625rem] rounded-full shrink-0",single:"size-[0.75rem] rounded-full shrink-0"},exports.legendItemStyles={multi:"flex items-center gap-2",single:"flex items-center gap-3"},exports.legendLabelStyles={multi:"text-20 leading-[1.012em] text-[var(--color-system-text)]",single:"text-18 leading-[1.012em] text-[var(--color-system-text)]"},exports.legendStyles={multi:"flex flex-wrap items-center justify-center gap-6",single:"flex flex-wrap items-center justify-end gap-6"},exports.mobileBodyStyles="flex flex-col w-full gap-4",exports.mobileHeaderActionsStyles="relative z-50 flex w-full [&>*]:w-full [&_[role=tablist]]:flex [&_[role=tablist]]:w-full",exports.mobilePlotRootStyles="relative flex flex-col w-full",exports.mobilePlotStyles="relative h-[11.375rem]",exports.mobileRootStyles="relative flex flex-col w-full rounded-12 p-5 pb-7 gap-6 shadow-card bg-[var(--color-card)]",exports.mobileSvgStyles="absolute inset-0 block overflow-visible pointer-events-none",exports.monthButtonIdleStyles="bg-transparent text-[var(--color-icon-secondary)] enabled:hover:text-[var(--color-system-text)]",exports.monthButtonSelectedStyles="bg-[var(--color-border)] text-[var(--color-system-text)] scale-[1.02]",exports.monthButtonStyles=s,exports.monthsStyles="relative h-10",exports.overlayStyles="absolute inset-0 z-10 rounded-[inherit]",exports.panelDotStyles={multi:"size-[0.625rem] mt-1.5 rounded-full shrink-0",single:"size-[0.625rem] rounded-full shrink-0"},exports.panelItemStyles={multi:"flex items-start gap-2 shrink-0",single:"flex items-center gap-2 shrink-0"},exports.panelItemsStyles={multi:"flex items-start justify-center gap-3 w-full",single:"flex flex-wrap items-center justify-end gap-x-6 gap-y-2 min-w-0"},exports.panelLabelStyles={multi:"text-14 leading-[1.012em] text-[var(--color-system-text)] whitespace-nowrap",single:"text-trim-cap text-14 leading-[1.012em] text-[var(--color-system-text)] whitespace-nowrap"},exports.panelStyles={multi:"flex flex-col justify-center gap-4 w-full p-4 rounded-t-8 bg-[var(--color-overlay-border-30)]",single:"flex flex-row items-center justify-between gap-4 w-full py-5 px-6 rounded-t-8 bg-[var(--color-overlay-border-30)]"},exports.panelTextStyles={multi:"flex flex-col gap-2 w-[4.041875rem]",single:"flex flex-row-reverse items-center gap-2"},exports.panelTitleStyles={multi:"line-chart-fade-in w-full text-center text-18 leading-[1.012em] text-[var(--color-system-text)]",single:"line-chart-fade-in text-trim-cap shrink-0 whitespace-nowrap text-18 leading-[1.012em] text-[var(--color-system-text)]"},exports.panelValueStyles={multi:"font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap tabular-nums",single:"text-trim-cap font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap tabular-nums"},exports.pointButtonStyles=t,exports.scrollFadeStyles=r,exports.scrollerStyles=l,exports.scrollerWrapperStyles="relative w-full overflow-hidden -my-1.5 py-1.5",exports.spotlightBandStyles="absolute inset-0 rounded-8 bg-[var(--color-overlay-border-32)]",exports.spotlightDotStyles="absolute size-[0.625rem] rounded-full transition-[top] duration-200 ease-out",exports.spotlightLineStyles="absolute top-4 bottom-4 border-s border-dashed border-[var(--color-system-text)]",exports.spotlightStyles="absolute top-0 h-[11.375rem] pointer-events-none transition-[left] duration-200 ease-out",exports.stripStyles="relative flex flex-col gap-4",exports.svgStyles="absolute inset-0 block w-full h-full",exports.titleStyles="m-0 font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap",exports.tooltipDotStyles="size-[0.625rem] rounded-full shrink-0",exports.tooltipLabelStyles="text-16 leading-[1.012em] text-[var(--color-icon-secondary)]",exports.tooltipRowStyles="flex items-center gap-3",exports.tooltipRowsStyles="flex flex-col gap-3",exports.tooltipStyles=o,exports.tooltipTitleStyles="text-14 leading-[1.012em] text-[var(--color-white)]",exports.tooltipValueStyles="min-w-[1.5rem] font-bold text-16 leading-[1.045em] text-[var(--color-white)] tabular-nums",exports.xLabelActiveStyles="font-bold text-[var(--color-system-text)]",exports.xLabelIdleStyles="font-normal text-[var(--color-icon-secondary)]",exports.xLabelStyles="absolute bottom-0 -translate-x-1/2 pointer-events-none whitespace-nowrap text-20 leading-[1.012em]",exports.yTickStyles="absolute -translate-y-1/2 pointer-events-none text-end text-20 leading-[1.012em] text-[var(--color-icon-secondary)]";
package/dist/index117.js CHANGED
@@ -1 +1 @@
1
- const e=["relative flex flex-col w-full h-[32.125rem] rounded-16 px-8 pt-8 pb-12","shadow-card transition-colors duration-150","bg-[var(--color-overlay-white-43)] hover:bg-[var(--color-card)] focus-within:bg-[var(--color-card)]"].join(" "),t={multi:"gap-10",single:"gap-8"},o="relative flex flex-col w-full rounded-12 p-5 pb-7 gap-6 shadow-card bg-[var(--color-card)]",r="m-0 font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap",l="relative z-30 flex items-start justify-between gap-8 w-full",n="flex items-center justify-end gap-8 min-w-0",i="flex w-full [&>*]:w-full [&_[role=tablist]]:flex [&_[role=tablist]]:w-full",a={multi:"flex flex-wrap items-center justify-center gap-6",single:"flex flex-wrap items-center justify-end gap-6"},s={multi:"flex items-center gap-2",single:"flex items-center gap-3"},u={multi:"size-[0.625rem] rounded-full shrink-0",single:"size-[0.75rem] rounded-full shrink-0"},c={multi:"text-20 leading-[1.012em] text-[var(--color-system-text)]",single:"text-18 leading-[1.012em] text-[var(--color-system-text)]"},d="relative flex-1 w-full",f="absolute inset-0 block w-full h-full",x="stroke-[var(--color-border)]",m="line-chart-grow [transform-box:view-box] origin-[0_var(--line-chart-baseline,100%)]",b="absolute -translate-y-1/2 pointer-events-none text-end text-20 leading-[1.012em] text-[var(--color-icon-secondary)]",p="absolute bottom-0 -translate-x-1/2 pointer-events-none whitespace-nowrap text-20 leading-[1.012em]",v="font-bold text-[var(--color-system-text)]",g="font-normal text-[var(--color-icon-secondary)]",w=["absolute top-0 bottom-0 m-0 p-0 border-0 bg-transparent rounded-4 outline-none pointer-events-none","focus-visible:ring-2 focus-visible:ring-[var(--color-button-blue)] focus-visible:ring-offset-1"].join(" "),h="absolute pointer-events-none bg-[var(--color-overlay-border-50)]",y="absolute pointer-events-none overflow-visible",j="stroke-[var(--color-icon-secondary)]",k="absolute size-[0.625rem] rounded-full pointer-events-none",z=["absolute z-10 flex flex-col gap-4 w-[10.0625rem] py-2.5 px-3 pointer-events-none","rounded-6 bg-[var(--color-text)] shadow-card-strong"].join(" "),_="text-14 leading-[1.012em] text-[var(--color-white)]",q="flex flex-col gap-3",A="flex items-center gap-3",B="size-[0.625rem] rounded-full shrink-0",C="min-w-[1.5rem] font-bold text-16 leading-[1.045em] text-[var(--color-white)] tabular-nums",D="text-16 leading-[1.012em] text-[var(--color-icon-secondary)]",E="flex flex-col w-full gap-4",F="relative flex flex-col w-full",G={multi:"flex flex-col justify-center gap-4 w-full p-4 rounded-t-8 bg-[var(--color-overlay-border-30)]",single:"flex flex-row items-center justify-between gap-4 w-full py-5 px-6 rounded-t-8 bg-[var(--color-overlay-border-30)]"},H={multi:"line-chart-fade-in w-full text-center text-18 leading-[1.012em] text-[var(--color-system-text)]",single:"line-chart-fade-in text-trim-cap shrink-0 whitespace-nowrap text-18 leading-[1.012em] text-[var(--color-system-text)]"},I={multi:"flex items-start justify-center gap-3 w-full",single:"flex flex-wrap items-center justify-end gap-x-6 gap-y-2 min-w-0"},J={multi:"flex items-start gap-2 shrink-0",single:"flex items-center gap-2 shrink-0"},K={multi:"size-[0.625rem] mt-1.5 rounded-full shrink-0",single:"size-[0.625rem] rounded-full shrink-0"},L={multi:"flex flex-col gap-2 w-[4.041875rem]",single:"flex flex-row-reverse items-center gap-2"},M={multi:"font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap tabular-nums",single:"text-trim-cap font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap tabular-nums"},N={multi:"text-14 leading-[1.012em] text-[var(--color-system-text)] whitespace-nowrap",single:"text-trim-cap text-14 leading-[1.012em] text-[var(--color-system-text)] whitespace-nowrap"},O="relative w-full overflow-hidden -my-1.5 py-1.5",P=["w-full overflow-x-auto overflow-y-hidden","[-webkit-overflow-scrolling:touch] [overscroll-behavior-x:contain]","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),Q=["absolute top-1.5 bottom-1.5 end-0 w-12 pointer-events-none","bg-linear-to-l from-[var(--color-card)] from-[17%] to-transparent"].join(" "),R="relative flex flex-col gap-4",S="relative h-[11.375rem]",T="absolute inset-0 block overflow-visible pointer-events-none",U="absolute top-0 h-[11.375rem] pointer-events-none transition-[left] duration-200 ease-out",V="absolute inset-0 rounded-8 bg-[var(--color-overlay-border-32)]",W="absolute top-4 bottom-4 border-s border-dashed border-[var(--color-system-text)]",X="absolute size-[0.625rem] rounded-full transition-[top] duration-200 ease-out",Y="absolute top-0 h-[11.375rem] m-0 p-0 border-0 bg-transparent cursor-pointer",Z="relative h-10",$=["absolute top-0 inline-flex items-center justify-center h-10 m-0 p-0 border-0 rounded-8","text-20 leading-[1.012em] transition-all duration-200 ease-out outline-none","focus-visible:ring-2 focus-visible:ring-[var(--color-button-blue)] focus-visible:ring-offset-1","disabled:cursor-default"].join(" "),ee="bg-[var(--color-border)] text-[var(--color-system-text)] scale-[1.02]",te="bg-transparent text-[var(--color-icon-secondary)] enabled:hover:text-[var(--color-system-text)]",oe="absolute inset-0 z-10 rounded-[inherit]",re="absolute inset-0 z-40 rounded-[inherit]";export{Y as chartHitStyles,n as desktopHeaderEndStyles,l as desktopHeaderStyles,d as desktopPlotStyles,t as desktopRootGapStyles,e as desktopRootStyles,k as dotStyles,re as errorOverlayStyles,x as gridLineStyles,m as growGroupStyles,h as hoverBandStyles,j as hoverLineStrokeStyles,y as hoverLineStyles,u as legendDotStyles,s as legendItemStyles,c as legendLabelStyles,a as legendStyles,E as mobileBodyStyles,i as mobileHeaderActionsStyles,F as mobilePlotRootStyles,S as mobilePlotStyles,o as mobileRootStyles,T as mobileSvgStyles,te as monthButtonIdleStyles,ee as monthButtonSelectedStyles,$ as monthButtonStyles,Z as monthsStyles,oe as overlayStyles,K as panelDotStyles,J as panelItemStyles,I as panelItemsStyles,N as panelLabelStyles,G as panelStyles,L as panelTextStyles,H as panelTitleStyles,M as panelValueStyles,w as pointButtonStyles,Q as scrollFadeStyles,P as scrollerStyles,O as scrollerWrapperStyles,V as spotlightBandStyles,X as spotlightDotStyles,W as spotlightLineStyles,U as spotlightStyles,R as stripStyles,f as svgStyles,r as titleStyles,B as tooltipDotStyles,D as tooltipLabelStyles,A as tooltipRowStyles,q as tooltipRowsStyles,z as tooltipStyles,_ as tooltipTitleStyles,C as tooltipValueStyles,v as xLabelActiveStyles,g as xLabelIdleStyles,p as xLabelStyles,b as yTickStyles};
1
+ const e=["relative flex flex-col w-full h-[32.125rem] rounded-16 px-8 pt-8 pb-12","shadow-card transition-colors duration-150","bg-[var(--color-overlay-white-43)] hover:bg-[var(--color-card)] focus-within:bg-[var(--color-card)]"].join(" "),t={multi:"gap-10",single:"gap-8"},o="relative flex flex-col w-full rounded-12 p-5 pb-7 gap-6 shadow-card bg-[var(--color-card)]",r="m-0 font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap",l="relative z-50 flex items-start justify-between gap-8 w-full",n="flex items-center justify-end gap-8 min-w-0",i="relative z-50 flex w-full [&>*]:w-full [&_[role=tablist]]:flex [&_[role=tablist]]:w-full",a={multi:"flex flex-wrap items-center justify-center gap-6",single:"flex flex-wrap items-center justify-end gap-6"},s={multi:"flex items-center gap-2",single:"flex items-center gap-3"},u={multi:"size-[0.625rem] rounded-full shrink-0",single:"size-[0.75rem] rounded-full shrink-0"},c={multi:"text-20 leading-[1.012em] text-[var(--color-system-text)]",single:"text-18 leading-[1.012em] text-[var(--color-system-text)]"},d="relative flex-1 w-full",f="absolute inset-0 block w-full h-full",x="stroke-[var(--color-border)]",m="line-chart-grow [transform-box:view-box] origin-[0_var(--line-chart-baseline,100%)]",b="absolute -translate-y-1/2 pointer-events-none text-end text-20 leading-[1.012em] text-[var(--color-icon-secondary)]",p="absolute bottom-0 -translate-x-1/2 pointer-events-none whitespace-nowrap text-20 leading-[1.012em]",v="font-bold text-[var(--color-system-text)]",g="font-normal text-[var(--color-icon-secondary)]",w=["absolute top-0 bottom-0 m-0 p-0 border-0 bg-transparent rounded-4 outline-none pointer-events-none","focus-visible:ring-2 focus-visible:ring-[var(--color-button-blue)] focus-visible:ring-offset-1"].join(" "),h="absolute pointer-events-none bg-[var(--color-overlay-border-50)]",y="absolute pointer-events-none overflow-visible",j="stroke-[var(--color-icon-secondary)]",k="absolute size-[0.625rem] rounded-full pointer-events-none",z=["absolute z-10 flex flex-col gap-4 w-[10.0625rem] py-2.5 px-3 pointer-events-none","rounded-6 bg-[var(--color-text)] shadow-card-strong"].join(" "),_="text-14 leading-[1.012em] text-[var(--color-white)]",q="flex flex-col gap-3",A="flex items-center gap-3",B="size-[0.625rem] rounded-full shrink-0",C="min-w-[1.5rem] font-bold text-16 leading-[1.045em] text-[var(--color-white)] tabular-nums",D="text-16 leading-[1.012em] text-[var(--color-icon-secondary)]",E="flex flex-col w-full gap-4",F="relative flex flex-col w-full",G={multi:"flex flex-col justify-center gap-4 w-full p-4 rounded-t-8 bg-[var(--color-overlay-border-30)]",single:"flex flex-row items-center justify-between gap-4 w-full py-5 px-6 rounded-t-8 bg-[var(--color-overlay-border-30)]"},H={multi:"line-chart-fade-in w-full text-center text-18 leading-[1.012em] text-[var(--color-system-text)]",single:"line-chart-fade-in text-trim-cap shrink-0 whitespace-nowrap text-18 leading-[1.012em] text-[var(--color-system-text)]"},I={multi:"flex items-start justify-center gap-3 w-full",single:"flex flex-wrap items-center justify-end gap-x-6 gap-y-2 min-w-0"},J={multi:"flex items-start gap-2 shrink-0",single:"flex items-center gap-2 shrink-0"},K={multi:"size-[0.625rem] mt-1.5 rounded-full shrink-0",single:"size-[0.625rem] rounded-full shrink-0"},L={multi:"flex flex-col gap-2 w-[4.041875rem]",single:"flex flex-row-reverse items-center gap-2"},M={multi:"font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap tabular-nums",single:"text-trim-cap font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap tabular-nums"},N={multi:"text-14 leading-[1.012em] text-[var(--color-system-text)] whitespace-nowrap",single:"text-trim-cap text-14 leading-[1.012em] text-[var(--color-system-text)] whitespace-nowrap"},O="relative w-full overflow-hidden -my-1.5 py-1.5",P=["w-full overflow-x-auto overflow-y-hidden","[-webkit-overflow-scrolling:touch] [overscroll-behavior-x:contain]","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden"].join(" "),Q=["absolute top-1.5 bottom-1.5 end-0 w-12 pointer-events-none","bg-linear-to-l from-[var(--color-card)] from-[17%] to-transparent"].join(" "),R="relative flex flex-col gap-4",S="relative h-[11.375rem]",T="absolute inset-0 block overflow-visible pointer-events-none",U="absolute top-0 h-[11.375rem] pointer-events-none transition-[left] duration-200 ease-out",V="absolute inset-0 rounded-8 bg-[var(--color-overlay-border-32)]",W="absolute top-4 bottom-4 border-s border-dashed border-[var(--color-system-text)]",X="absolute size-[0.625rem] rounded-full transition-[top] duration-200 ease-out",Y="absolute top-0 h-[11.375rem] m-0 p-0 border-0 bg-transparent cursor-pointer",Z="relative h-10",$=["absolute top-0 inline-flex items-center justify-center h-10 m-0 p-0 border-0 rounded-8","text-20 leading-[1.012em] transition-all duration-200 ease-out outline-none","focus-visible:ring-2 focus-visible:ring-[var(--color-button-blue)] focus-visible:ring-offset-1","disabled:cursor-default"].join(" "),ee="bg-[var(--color-border)] text-[var(--color-system-text)] scale-[1.02]",te="bg-transparent text-[var(--color-icon-secondary)] enabled:hover:text-[var(--color-system-text)]",oe="absolute inset-0 z-10 rounded-[inherit]",re="absolute inset-0 z-40 rounded-[inherit]";export{Y as chartHitStyles,n as desktopHeaderEndStyles,l as desktopHeaderStyles,d as desktopPlotStyles,t as desktopRootGapStyles,e as desktopRootStyles,k as dotStyles,re as errorOverlayStyles,x as gridLineStyles,m as growGroupStyles,h as hoverBandStyles,j as hoverLineStrokeStyles,y as hoverLineStyles,u as legendDotStyles,s as legendItemStyles,c as legendLabelStyles,a as legendStyles,E as mobileBodyStyles,i as mobileHeaderActionsStyles,F as mobilePlotRootStyles,S as mobilePlotStyles,o as mobileRootStyles,T as mobileSvgStyles,te as monthButtonIdleStyles,ee as monthButtonSelectedStyles,$ as monthButtonStyles,Z as monthsStyles,oe as overlayStyles,K as panelDotStyles,J as panelItemStyles,I as panelItemsStyles,N as panelLabelStyles,G as panelStyles,L as panelTextStyles,H as panelTitleStyles,M as panelValueStyles,w as pointButtonStyles,Q as scrollFadeStyles,P as scrollerStyles,O as scrollerWrapperStyles,V as spotlightBandStyles,X as spotlightDotStyles,W as spotlightLineStyles,U as spotlightStyles,R as stripStyles,f as svgStyles,r as titleStyles,B as tooltipDotStyles,D as tooltipLabelStyles,A as tooltipRowStyles,q as tooltipRowsStyles,z as tooltipStyles,_ as tooltipTitleStyles,C as tooltipValueStyles,v as xLabelActiveStyles,g as xLabelIdleStyles,p as xLabelStyles,b as yTickStyles};
@@ -19,12 +19,13 @@ export declare const barIdleStyles = "bg-[var(--color-violet-soft)]";
19
19
  export declare const barActiveStyles = "bg-[var(--color-violet-medium)]";
20
20
  export declare const emptyOverlayStyles = "absolute inset-0 z-10 flex items-center justify-center";
21
21
  export declare const errorOverlayStyles = "absolute inset-0 z-40 rounded-[inherit]";
22
- export declare const plotStyles = "relative flex flex-col gap-2 w-full pt-1.5";
22
+ export declare const plotStyles = "relative flex flex-1 flex-col gap-2 w-full pt-1.5";
23
+ export declare const desktopEmptyOverlayStyles = "absolute -top-12 -inset-x-8 -bottom-[2.6875rem] z-10 flex items-center justify-center rounded-b-16";
23
24
  export declare const plotAreaStyles = "relative w-full h-[10.4375rem]";
24
25
  export declare const tickLabelStyles = "shrink-0 w-[2.1875rem] text-20 leading-none text-[var(--color-icon-secondary)] tabular-nums";
25
26
  export declare const barsStyles = "absolute inset-y-0 start-[2.1875rem] end-0 flex items-end justify-center gap-8";
26
27
  export declare const barColumnStyles: string;
27
- export declare const barStyles = "shrink-0 w-full rounded-t-8 transition-colors duration-200 ease-out bar-chart-grow";
28
+ export declare const barStyles = "shrink-0 w-full min-h-px rounded-t-8 transition-colors duration-200 ease-out bar-chart-grow";
28
29
  export declare const valueStyles: string;
29
30
  export declare const valueIdleStyles = "font-normal text-[var(--color-system-text)]";
30
31
  export declare const valueActiveStyles = "font-bold text-[var(--color-text)]";
@@ -43,7 +44,7 @@ export declare const mobileStripStyles = "mx-auto flex w-max flex-col gap-[1.062
43
44
  export declare const mobileBarsStyles = "flex items-end gap-1 h-[9.0625rem]";
44
45
  export declare const mobileColumnWidthStyles = "shrink-0 w-[4.625rem]";
45
46
  export declare const mobileBarHitStyles = "flex items-end justify-center h-full m-0 p-0 border-0 bg-transparent cursor-pointer";
46
- export declare const mobileBarStyles = "w-12 rounded-t-12 transition-colors duration-200 ease-out bar-chart-grow";
47
+ export declare const mobileBarStyles = "w-12 min-h-px rounded-t-12 transition-colors duration-200 ease-out bar-chart-grow";
47
48
  export declare const mobileBarActiveStyles = "bg-[var(--color-violet)]";
48
49
  export declare const monthsStyles = "flex gap-1";
49
50
  export declare const monthButtonStyles: string;
@@ -1 +1 @@
1
- {"version":3,"file":"BarChart.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/bar-chart/BarChart.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,KAAK,cAAc,GAAG,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAEtD,eAAO,MAAM,UAAU,iEAAiE,CAAC;AAEzF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAG3D,CAAC;AAEF,eAAO,MAAM,YAAY,0BAA0B,CAAC;AAEpD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAG7D,CAAC;AAEF,eAAO,MAAM,kBAAkB,uCAAuC,CAAC;AAEvE,eAAO,MAAM,WAAW,qEAAqE,CAAC;AAE9F,eAAO,MAAM,iBAAiB,sEACuC,CAAC;AAEtE,eAAO,MAAM,aAAa,wDAAwD,CAAC;AAEnF,eAAO,MAAM,aAAa,iCAAiC,CAAC;AAE5D,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAG9D,CAAC;AAEF,eAAO,MAAM,kBAAkB,8DAA8D,CAAC;AAE9F,eAAO,MAAM,kBAAkB,mEAAmE,CAAC;AAEnG,eAAO,MAAM,aAAa,6EACkD,CAAC;AAE7E,eAAO,MAAM,cAAc,yCAAyC,CAAC;AAErE,eAAO,MAAM,aAAa,kCAAkC,CAAC;AAE7D,eAAO,MAAM,eAAe,oCAAoC,CAAC;AAEjE,eAAO,MAAM,kBAAkB,2DAA2D,CAAC;AAC3F,eAAO,MAAM,kBAAkB,4CAA4C,CAAC;AAI5E,eAAO,MAAM,UAAU,+CAA+C,CAAC;AAEvE,eAAO,MAAM,cAAc,mCAAmC,CAAC;AAE/D,eAAO,MAAM,eAAe,gGACmE,CAAC;AAEhG,eAAO,MAAM,UAAU,mFAC2D,CAAC;AAEnF,eAAO,MAAM,eAAe,QAIjB,CAAC;AAEZ,eAAO,MAAM,SAAS,uFACgE,CAAC;AAEvF,eAAO,MAAM,WAAW,QAIb,CAAC;AAEZ,eAAO,MAAM,eAAe,gDAAgD,CAAC;AAE7E,eAAO,MAAM,iBAAiB,uCAAuC,CAAC;AAEtE,eAAO,MAAM,aAAa,6CAA6C,CAAC;AAExE,eAAO,MAAM,YAAY,8HACoG,CAAC;AAI9H,eAAO,MAAM,gBAAgB,uCAAuC,CAAC;AAErE,eAAO,MAAM,WAAW,+GACsF,CAAC;AAE/G,eAAO,MAAM,gBAAgB,+FACiE,CAAC;AAE/F,eAAO,MAAM,gBAAgB,4FAC8D,CAAC;AAE5F,eAAO,MAAM,gBAAgB,2CAA2C,CAAC;AAEzE,eAAO,MAAM,gBAAgB,qDAAqD,CAAC;AAEnF,eAAO,MAAM,qBAAqB,sFACmD,CAAC;AAEtF,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAE3E,eAAO,MAAM,oBAAoB,QAItB,CAAC;AAEZ,eAAO,MAAM,iBAAiB,gDAAgD,CAAC;AAE/E,eAAO,MAAM,gBAAgB,uCAAuC,CAAC;AAErE,eAAO,MAAM,uBAAuB,0BAA0B,CAAC;AAE/D,eAAO,MAAM,kBAAkB,wFACwD,CAAC;AAExF,eAAO,MAAM,eAAe,6EACgD,CAAC;AAE7E,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAEhE,eAAO,MAAM,YAAY,eAAe,CAAC;AAEzC,eAAO,MAAM,iBAAiB,QAKnB,CAAC;AAEZ,eAAO,MAAM,yBAAyB,6DAA6D,CAAC;AAEpG,eAAO,MAAM,qBAAqB,oGACiE,CAAC;AAEpG,eAAO,MAAM,gBAAgB,QAGlB,CAAC"}
1
+ {"version":3,"file":"BarChart.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/bar-chart/BarChart.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,KAAK,cAAc,GAAG,OAAO,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC;AAEtD,eAAO,MAAM,UAAU,iEAAiE,CAAC;AAEzF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAG3D,CAAC;AAEF,eAAO,MAAM,YAAY,0BAA0B,CAAC;AAEpD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAG7D,CAAC;AAEF,eAAO,MAAM,kBAAkB,uCAAuC,CAAC;AAEvE,eAAO,MAAM,WAAW,qEAAqE,CAAC;AAE9F,eAAO,MAAM,iBAAiB,sEACuC,CAAC;AAEtE,eAAO,MAAM,aAAa,wDAAwD,CAAC;AAEnF,eAAO,MAAM,aAAa,iCAAiC,CAAC;AAE5D,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,cAAc,EAAE,MAAM,CAG9D,CAAC;AAEF,eAAO,MAAM,kBAAkB,8DAA8D,CAAC;AAE9F,eAAO,MAAM,kBAAkB,mEAAmE,CAAC;AAEnG,eAAO,MAAM,aAAa,6EACkD,CAAC;AAE7E,eAAO,MAAM,cAAc,yCAAyC,CAAC;AAErE,eAAO,MAAM,aAAa,kCAAkC,CAAC;AAE7D,eAAO,MAAM,eAAe,oCAAoC,CAAC;AAEjE,eAAO,MAAM,kBAAkB,2DAA2D,CAAC;AAC3F,eAAO,MAAM,kBAAkB,4CAA4C,CAAC;AAI5E,eAAO,MAAM,UAAU,sDAAsD,CAAC;AAE9E,eAAO,MAAM,yBAAyB,uGACgE,CAAC;AAEvG,eAAO,MAAM,cAAc,mCAAmC,CAAC;AAE/D,eAAO,MAAM,eAAe,gGACmE,CAAC;AAEhG,eAAO,MAAM,UAAU,mFAC2D,CAAC;AAEnF,eAAO,MAAM,eAAe,QAIjB,CAAC;AAEZ,eAAO,MAAM,SAAS,gGACyE,CAAC;AAEhG,eAAO,MAAM,WAAW,QAIb,CAAC;AAEZ,eAAO,MAAM,eAAe,gDAAgD,CAAC;AAE7E,eAAO,MAAM,iBAAiB,uCAAuC,CAAC;AAEtE,eAAO,MAAM,aAAa,6CAA6C,CAAC;AAExE,eAAO,MAAM,YAAY,8HACoG,CAAC;AAI9H,eAAO,MAAM,gBAAgB,uCAAuC,CAAC;AAErE,eAAO,MAAM,WAAW,+GACsF,CAAC;AAE/G,eAAO,MAAM,gBAAgB,+FACiE,CAAC;AAE/F,eAAO,MAAM,gBAAgB,4FAC8D,CAAC;AAE5F,eAAO,MAAM,gBAAgB,2CAA2C,CAAC;AAEzE,eAAO,MAAM,gBAAgB,qDAAqD,CAAC;AAEnF,eAAO,MAAM,qBAAqB,sFACmD,CAAC;AAEtF,eAAO,MAAM,2BAA2B,kCAAkC,CAAC;AAE3E,eAAO,MAAM,oBAAoB,QAItB,CAAC;AAEZ,eAAO,MAAM,iBAAiB,gDAAgD,CAAC;AAE/E,eAAO,MAAM,gBAAgB,uCAAuC,CAAC;AAErE,eAAO,MAAM,uBAAuB,0BAA0B,CAAC;AAE/D,eAAO,MAAM,kBAAkB,wFACwD,CAAC;AAExF,eAAO,MAAM,eAAe,sFACyD,CAAC;AAEtF,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAEhE,eAAO,MAAM,YAAY,eAAe,CAAC;AAEzC,eAAO,MAAM,iBAAiB,QAKnB,CAAC;AAEZ,eAAO,MAAM,yBAAyB,6DAA6D,CAAC;AAEpG,eAAO,MAAM,qBAAqB,oGACiE,CAAC;AAEpG,eAAO,MAAM,gBAAgB,QAGlB,CAAC"}
@@ -4,9 +4,9 @@ export declare const desktopRootStyles: string;
4
4
  export declare const desktopRootGapStyles: Record<LineChartVariant, string>;
5
5
  export declare const mobileRootStyles = "relative flex flex-col w-full rounded-12 p-5 pb-7 gap-6 shadow-card bg-[var(--color-card)]";
6
6
  export declare const titleStyles = "m-0 font-bold text-18 leading-[1.045em] text-[var(--color-text)] whitespace-nowrap";
7
- export declare const desktopHeaderStyles = "relative z-30 flex items-start justify-between gap-8 w-full";
7
+ export declare const desktopHeaderStyles = "relative z-50 flex items-start justify-between gap-8 w-full";
8
8
  export declare const desktopHeaderEndStyles = "flex items-center justify-end gap-8 min-w-0";
9
- export declare const mobileHeaderActionsStyles = "flex w-full [&>*]:w-full [&_[role=tablist]]:flex [&_[role=tablist]]:w-full";
9
+ export declare const mobileHeaderActionsStyles = "relative z-50 flex w-full [&>*]:w-full [&_[role=tablist]]:flex [&_[role=tablist]]:w-full";
10
10
  export declare const legendStyles: Record<LineChartVariant, string>;
11
11
  export declare const legendItemStyles: Record<LineChartVariant, string>;
12
12
  export declare const legendDotStyles: Record<LineChartVariant, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"LineChart.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/line-chart/LineChart.styles.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"LineChart.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/line-chart/LineChart.styles.ts"],"names":[],"mappings":"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"LineChartDesktopPlot.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/line-chart/LineChartDesktopPlot.component.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAQL,KAAK,gBAAgB,EAEtB,MAAM,mBAAmB,CAAC;AA+C3B,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,MAAM,CAAC;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB;AAKD,eAAO,MAAM,oBAAoB;2KAc9B,yBAAyB;;CAsV3B,CAAC"}
1
+ {"version":3,"file":"LineChartDesktopPlot.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/line-chart/LineChartDesktopPlot.component.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAQL,KAAK,gBAAgB,EAEtB,MAAM,mBAAmB,CAAC;AA+C3B,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,MAAM,CAAC;IAClF,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB;AAKD,eAAO,MAAM,oBAAoB;2KAc9B,yBAAyB;;CA4V3B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"LineChartMobilePlot.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/line-chart/LineChartMobilePlot.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAOL,KAAK,gBAAgB,EAEtB,MAAM,mBAAmB,CAAC;AAuC3B,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,MAAM,CAAC;IAClF,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,mBAAmB;4MAgB7B,wBAAwB;;CA0Q1B,CAAC"}
1
+ {"version":3,"file":"LineChartMobilePlot.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/line-chart/LineChartMobilePlot.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAOL,KAAK,gBAAgB,EAEtB,MAAM,mBAAmB,CAAC;AAuC3B,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,UAAU,EAAE,gBAAgB,CAAC;IAC7B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,CAAC,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,kBAAkB,EAAE,KAAK,MAAM,CAAC;IAClF,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,mBAAmB;4MAgB7B,wBAAwB;;CAgR1B,CAAC"}