@adam-milo/ui 1.0.149 → 1.0.151
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 +1 -1
- package/dist/index107.js +3 -3
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +1 -1
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +10 -9
- package/dist/src/components/data-display/bar-chart/BarChart.styles.d.ts +4 -3
- package/dist/src/components/data-display/bar-chart/BarChart.styles.d.ts.map +1 -1
- package/dist/src/components/data-display/datatable/DataTable.component.d.ts.map +1 -1
- package/dist/src/components/data-display/datatable/DataTable.types.d.ts +7 -0
- package/dist/src/components/data-display/datatable/DataTable.types.d.ts.map +1 -1
- package/dist/src/components/data-display/line-chart/LineChart.styles.d.ts +2 -2
- package/dist/src/components/data-display/line-chart/LineChart.styles.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
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
|
|
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,
|
|
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"}`)
|
|
9
|
-
/* @__PURE__ */e("div",{className:
|
|
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)]",
|
|
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/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-
|
|
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-
|
|
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};
|
package/dist/index42.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("@radix-ui/react-tooltip"),r=require("@adam-milo/icons"),s=require("./index72.cjs"),l=require("./index12.cjs"),n=require("./index50.cjs"),d=require("./index53.cjs"),c=require("./index102.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("@radix-ui/react-tooltip"),r=require("@adam-milo/icons"),s=require("./index72.cjs"),l=require("./index12.cjs"),n=require("./index50.cjs"),d=require("./index53.cjs"),c=require("./index102.cjs"),i=require("./index103.cjs"),o=require("./index104.cjs");function y(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const a in e)if("default"!==a){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:()=>e[a]})}return t.default=e,Object.freeze(t)}const u=y(a),h=["60%","75%","45%","55%","70%","50%"],m=t.forwardRef(({columns:a,data:y,striped:m=!1,hoverable:x=!1,headerLeft:S,headerRight:b,borderBreak:f=!1,onLoadMore:p,isLoadingMore:k=!1,hasMore:$=!1,loadingIndicator:j,skeletonRows:v=3,maxHeight:g,emptyStateText:w,selectable:B=!1,rowKey:N="id",rowCySuffixKey:C,selectedRows:E,onSelectionChange:L,onRowClick:T,footerBar:R,sortKey:q,sortDirection:D,onSortChange:F,filters:O,onFilterChange:M,truncateOverflow:I=!1,className:A,"data-cy":K,"data-testid":P,...H},W)=>{const _=K||"datatable",z=P||"datatable",J=S||b,X=t.useRef(null),G=t.useRef(null),Q=t.useRef(null),[U,V]=t.useState(!1),Y=t.useCallback(e=>{Q.current=e,"function"==typeof W?W(e):W&&(W.current=e)},[W]),Z=t.useMemo(()=>I||a.some(e=>e.truncate),[I,a]),ee=t.useMemo(()=>I||a.some(e=>e.truncate&&!e.render),[I,a]),te=i.useLockedColumnWidths(Z,a,Q,_,B),ae=Z,re=t.useCallback(e=>!e.render&&(e.truncate??I),[I]),se=t.useCallback(e=>{if(!Z)return e.width?{width:e.width}:void 0;if(e.width&&i.isExplicitColumnWidth(e.width))return{width:e.width};const t=te?.[e.key];return null!=t?{width:t}:e.width?{width:e.width}:void 0},[Z,te]),le=t.useMemo(()=>te?JSON.stringify(te):"initial",[te]),ne=t.useCallback((t,a,r)=>{if(t.render)return t.render(a[t.key],a,r);const s=String(a[t.key]??"");return re(t)?e.jsx(c.DataTableTruncatedCell,{text:s,layoutKey:le,"data-cy":`${_}-cell-content-${r}-${t.key}`,"data-testid":`${z}-cell-content-${r}-${t.key}`}):s},[_,z,re,le]);t.useEffect(()=>{const e=G.current;if(!e||!g)return;const t=()=>V(e.scrollTop>0);return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[g]);const de=Z?o.thBorderBreakTruncateStyles:o.thBorderBreakStyles,ce=Z?o.tdBorderBreakTruncateStyles:o.tdBorderBreakStyles,ie=s.cn(o.checkboxCellStyles,f&&o.thBorderBreakStyles),oe=s.cn(o.checkboxCellStyles,f&&o.tdBorderBreakStyles),ye=t.useMemo(()=>E??new Set,[E]),ue=y.map(e=>String(e[N]??"")),he=B&&y.length>0&&ue.every(e=>ye.has(e)),me=B&&y.length>0&&ue.some(e=>ye.has(e)),xe=t.useCallback(()=>{if(L)if(he){const e=new Set(ye);ue.forEach(t=>e.delete(t)),L(e)}else{const e=new Set(ye);ue.forEach(t=>e.add(t)),L(e)}},[he,ue,ye,L]),Se=t.useCallback(e=>{if(!L)return;const t=new Set(ye);t.has(e)?t.delete(e):t.add(e),L(t)},[ye,L]),be=B?a.length+1:a.length,fe=e=>{if(e.sortable)return q!==e.key?"none":"asc"===D?"ascending":"desc"===D?"descending":"none"},pe=t=>{const a="string"==typeof t.header?t.header:void 0;return e.jsxs("span",{className:o.headerCellContentStyles,children:[e.jsx("span",{className:o.headerLabelStyles,children:t.header}),t.sortable&&e.jsx(n.SortButton,{direction:q===t.key?D??"none":"none",onDirectionChange:e=>F?.(t.key,e),"aria-label":a?`Sort by ${a}`:"Sort column","data-cy":`${_}-sort-${t.key}`,"data-testid":`${z}-sort-${t.key}`}),t.filterable&&t.filterOptions&&e.jsx(d.CheckFilter,{mode:"multi",options:t.filterOptions,value:O?.[t.key],onApply:e=>M?.(t.key,e),title:t.filterTitle,searchable:t.filterSearchable,"aria-label":a?`Filter ${a}`:"Filter column","data-cy":`${_}-filter-${t.key}`,"data-testid":`${z}-filter-${t.key}`})]})},ke=t.useCallback(e=>{const[t]=e;t.isIntersecting&&$&&!k&&p&&p()},[$,k,p]);t.useEffect(()=>{const e=X.current;if(!e||!p)return;const t=new IntersectionObserver(ke,{root:g?G.current:null,rootMargin:"0px",threshold:.1});return t.observe(e),()=>t.disconnect()},[ke,p,g]);const $e=e.jsxs(e.Fragment,{children:[e.jsxs("table",{ref:Y,className:s.cn(o.tableBaseStyles,ae&&o.tableFixedLayoutStyles,A),"aria-busy":k||void 0,"data-cy":_,"data-testid":z,...H,children:[e.jsx("thead",{className:s.cn(o.theadStyles,f&&o.theadBorderBreakStyles,g&&o.stickyTheadStyles,g&&U&&o.stickyTheadScrolledStyles),"data-cy":`${_}-head`,"data-testid":`${z}-head`,children:e.jsxs("tr",{children:[B&&e.jsx("th",{scope:"col",className:ie,"data-cy":`${_}-header-checkbox`,"data-testid":`${z}-header-checkbox`,children:e.jsx("label",{className:o.checkboxLabelStyles,children:e.jsx(l.Checkbox,{checked:he,indeterminate:me&&!he,onChange:xe,"aria-label":"Select all rows","data-cy":`${_}-select-all`,"data-testid":`${z}-select-all`})})}),a.map(t=>e.jsx("th",{scope:"col","aria-sort":fe(t),className:s.cn(o.thStyles,f&&de),style:se(t),"data-cy":`${_}-header-${t.key}`,"data-testid":`${z}-header-${t.key}`,children:pe(t)},t.key))]})}),e.jsxs("tbody",{"data-cy":`${_}-body`,"data-testid":`${z}-body`,children:[0!==y.length||k?y.map((t,r)=>{const n=C?t[C]:void 0,d=null==n||""===String(n)?String(r):String(n);return e.jsxs("tr",{className:s.cn(o.trStripedStyles,f&&o.trBorderBreakStyles,x&&o.trHoverableStyles,m&&!f&&o.trStripedEvenStyles,T&&o.trClickableStyles,T&&f&&o.trClickableBorderBreakFocusStyles),tabIndex:T?0:void 0,style:T?{outline:"none",boxShadow:"none"}:void 0,onFocus:e=>e.currentTarget.setAttribute("data-focused","true"),onBlur:e=>e.currentTarget.removeAttribute("data-focused"),onClick:T?e=>{e.target.closest('button, a, input, label, [role="checkbox"]')||T(t,r)}:void 0,onKeyDown:T?e=>{if("Enter"===e.key||" "===e.key){if(e.target.closest('button, a, input, label, [role="checkbox"]'))return;e.preventDefault(),T(t,r)}}:void 0,"data-cy":`${_}-row-${d}`,"data-testid":`${z}-row-${d}`,children:[B&&e.jsx("td",{className:oe,"data-cy":`${_}-cell-${r}-checkbox`,"data-testid":`${z}-cell-${r}-checkbox`,children:e.jsx("label",{className:o.checkboxLabelStyles,children:e.jsx(l.Checkbox,{checked:ye.has(String(t[N]??"")),onChange:()=>Se(String(t[N]??"")),"aria-label":`Select row ${r+1}`,"data-cy":`${_}-select-${r}`,"data-testid":`${z}-select-${r}`})})}),a.map(a=>e.jsx("td",{className:s.cn(o.tdStyles,f&&ce,re(a)&&o.tdTruncateStyles),style:se(a),"data-cy":`${_}-cell-${r}-${a.key}`,"data-testid":`${z}-cell-${r}-${a.key}`,children:ne(a,t,r)},a.key))]},r)}):e.jsx("tr",{children:e.jsx("td",{colSpan:be,className:"p-0","data-cy":`${_}-empty`,"data-testid":`${z}-empty`,children:e.jsxs("div",{className:o.emptyStateWrapperStyles,children:[e.jsx("div",{className:o.emptyStateIconStyles,"aria-hidden":"true","data-cy":`${_}-empty-icon`,"data-testid":`${z}-empty-icon`,children:e.jsx(r.CustomEmptyBoxIcon,{width:"100%",height:"100%"})}),w&&e.jsx("p",{className:o.emptyStateTextStyles,"data-cy":`${_}-empty-text`,"data-testid":`${z}-empty-text`,children:w})]})})}),k&&(j?e.jsx("tr",{children:e.jsx("td",{colSpan:be,className:o.loadingRowStyles,"data-cy":`${_}-loading`,"data-testid":`${z}-loading`,children:j})}):Array.from({length:v}).map((t,r)=>e.jsxs("tr",{className:s.cn(o.trStripedStyles,f&&o.trBorderBreakStyles),"data-cy":`${_}-skeleton-${r}`,"data-testid":`${z}-skeleton-${r}`,children:[B&&e.jsx("td",{className:oe,children:e.jsx("div",{className:o.checkboxLabelStyles,children:e.jsx("div",{className:"w-4 h-4 rounded-4 bg-[color-mix(in_srgb,var(--color-border)_40%,transparent)]"})})}),a.map((t,a)=>e.jsx("td",{className:s.cn(o.tdStyles,f&&ce),children:e.jsx("div",{className:o.skeletonCellStyles,style:{width:h[(r+a)%h.length]}})},t.key))]},`skeleton-${r}`)))]})]}),p&&e.jsx("div",{ref:X,className:"h-4","data-cy":`${_}-sentinel`,"data-testid":`${z}-sentinel`,"aria-hidden":"true"})]}),je=ee?e.jsx(u.Provider,{delayDuration:0,skipDelayDuration:0,children:$e}):$e,ve=e.jsxs("div",{className:s.cn(o.wrapperStyles,!Z&&o.wrapperScrollXStyles,f&&($?"overflow-hidden rounded-t-2xl":"overflow-hidden rounded-2xl")),tabIndex:-1,style:{outline:"none"},"data-cy":`${_}-wrapper`,"data-testid":`${z}-wrapper`,children:[J&&e.jsxs("div",{className:o.headerBarStyles,"data-cy":`${_}-header-bar`,"data-testid":`${z}-header-bar`,children:[e.jsx("div",{"data-cy":`${_}-header-left`,"data-testid":`${z}-header-left`,children:S}),e.jsx("div",{"data-cy":`${_}-header-right`,"data-testid":`${z}-header-right`,children:b})]}),g?e.jsx("div",{ref:G,className:o.scrollContainerStyles,tabIndex:-1,style:{maxHeight:g,outline:"none"},children:je}):je]}),ge=R?e.jsx("div",{className:o.footerBarStyles,"data-cy":`${_}-footer-bar`,"data-testid":`${z}-footer-bar`,children:R}):null;return f?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:s.cn(o.wrapperBorderBreakStyles,$?o.wrapperBorderBreakFlatBottomStyles:o.wrapperBorderBreakRoundedStyles),children:ve}),ge]}):e.jsxs(e.Fragment,{children:[ve,ge]})});m.displayName="DataTable";const x=t.forwardRef(({children:a,className:r,style:l,...n},d)=>{const c=t.useRef(null),[i,o]=t.useState(!1);return t.useEffect(()=>{const e=c.current;if(!e)return;const t=e.closest("tr");if(!t)return;const a=()=>o(!0),r=()=>o(!1);return t.addEventListener("mouseenter",a),t.addEventListener("mouseleave",r),t.addEventListener("focusin",a),t.addEventListener("focusout",r),()=>{t.removeEventListener("mouseenter",a),t.removeEventListener("mouseleave",r),t.removeEventListener("focusin",a),t.removeEventListener("focusout",r)}},[]),e.jsx("span",{ref:e=>{c.current=e,"function"==typeof d?d(e):d&&(d.current=e)},className:s.cn("transition-opacity duration-200",i?"opacity-100":"opacity-0",r),style:l,...n,children:a})});x.displayName="RowAction",exports.DataTable=m,exports.RowAction=x;
|
package/dist/index42.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import{forwardRef as r,useRef as n,useState as d,useCallback as i,useMemo as o,useEffect as l}from"react";import*as s from"@radix-ui/react-tooltip";import{CustomEmptyBoxIcon as c}from"@adam-milo/icons";import{cn as h}from"./index72.js";import{Checkbox as m}from"./index12.js";import{SortButton as y}from"./index50.js";import{CheckFilter as u}from"./index53.js";import{DataTableTruncatedCell as $}from"./index102.js";import{useLockedColumnWidths as f,isExplicitColumnWidth as p}from"./index103.js";import{checkboxLabelStyles as v,emptyStateWrapperStyles as b,emptyStateIconStyles as g,emptyStateTextStyles as k,tdTruncateStyles as w,tdStyles as N,loadingRowStyles as x,skeletonCellStyles as S,headerBarStyles as E,scrollContainerStyles as L,thBorderBreakStyles as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import{forwardRef as r,useRef as n,useState as d,useCallback as i,useMemo as o,useEffect as l}from"react";import*as s from"@radix-ui/react-tooltip";import{CustomEmptyBoxIcon as c}from"@adam-milo/icons";import{cn as h}from"./index72.js";import{Checkbox as m}from"./index12.js";import{SortButton as y}from"./index50.js";import{CheckFilter as u}from"./index53.js";import{DataTableTruncatedCell as $}from"./index102.js";import{useLockedColumnWidths as f,isExplicitColumnWidth as p}from"./index103.js";import{checkboxLabelStyles as v,emptyStateWrapperStyles as b,emptyStateIconStyles as g,emptyStateTextStyles as k,tdTruncateStyles as w,tdStyles as N,loadingRowStyles as x,skeletonCellStyles as S,headerBarStyles as E,scrollContainerStyles as L,thBorderBreakStyles as C,checkboxCellStyles as j,headerCellContentStyles as D,headerLabelStyles as I,tdBorderBreakStyles as T,tdBorderBreakTruncateStyles as A,thBorderBreakTruncateStyles as K,thStyles as O,stickyTheadScrolledStyles as R,stickyTheadStyles as F,theadBorderBreakStyles as M,theadStyles as B,trClickableBorderBreakFocusStyles as H,trClickableStyles as _,trStripedEvenStyles as J,trHoverableStyles as P,trBorderBreakStyles as q,trStripedStyles as z,tableFixedLayoutStyles as G,tableBaseStyles as Q,footerBarStyles as U,wrapperScrollXStyles as V,wrapperStyles as W,wrapperBorderBreakFlatBottomStyles as X,wrapperBorderBreakRoundedStyles as Y,wrapperBorderBreakStyles as Z}from"./index104.js";const ee=["60%","75%","45%","55%","70%","50%"],te=r(({columns:r,data:te,striped:ae=!1,hoverable:re=!1,headerLeft:ne,headerRight:de,borderBreak:ie=!1,onLoadMore:oe,isLoadingMore:le=!1,hasMore:se=!1,loadingIndicator:ce,skeletonRows:he=3,maxHeight:me,emptyStateText:ye,selectable:ue=!1,rowKey:$e="id",rowCySuffixKey:fe,selectedRows:pe,onSelectionChange:ve,onRowClick:be,footerBar:ge,sortKey:ke,sortDirection:we,onSortChange:Ne,filters:xe,onFilterChange:Se,truncateOverflow:Ee=!1,className:Le,"data-cy":Ce,"data-testid":je,...De},Ie)=>{const Te=Ce||"datatable",Ae=je||"datatable",Ke=ne||de,Oe=n(null),Re=n(null),Fe=n(null),[Me,Be]=d(!1),He=i(e=>{Fe.current=e,"function"==typeof Ie?Ie(e):Ie&&(Ie.current=e)},[Ie]),_e=o(()=>Ee||r.some(e=>e.truncate),[Ee,r]),Je=o(()=>Ee||r.some(e=>e.truncate&&!e.render),[Ee,r]),Pe=f(_e,r,Fe,Te,ue),qe=_e,ze=i(e=>!e.render&&(e.truncate??Ee),[Ee]),Ge=i(e=>{if(!_e)return e.width?{width:e.width}:void 0;if(e.width&&p(e.width))return{width:e.width};const t=Pe?.[e.key];return null!=t?{width:t}:e.width?{width:e.width}:void 0},[_e,Pe]),Qe=o(()=>Pe?JSON.stringify(Pe):"initial",[Pe]),Ue=i((t,a,r)=>{if(t.render)return t.render(a[t.key],a,r);const n=String(a[t.key]??"");return ze(t)?/* @__PURE__ */e($,{text:n,layoutKey:Qe,"data-cy":`${Te}-cell-content-${r}-${t.key}`,"data-testid":`${Ae}-cell-content-${r}-${t.key}`}):n},[Te,Ae,ze,Qe]);l(()=>{const e=Re.current;if(!e||!me)return;const t=()=>Be(e.scrollTop>0);return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[me]);const Ve=_e?K:C,We=_e?A:T,Xe=h(j,ie&&C),Ye=h(j,ie&&T),Ze=o(()=>pe??/* @__PURE__ */new Set,[pe]),et=te.map(e=>String(e[$e]??"")),tt=ue&&te.length>0&&et.every(e=>Ze.has(e)),at=ue&&te.length>0&&et.some(e=>Ze.has(e)),rt=i(()=>{if(ve)if(tt){const e=new Set(Ze);et.forEach(t=>e.delete(t)),ve(e)}else{const e=new Set(Ze);et.forEach(t=>e.add(t)),ve(e)}},[tt,et,Ze,ve]),nt=i(e=>{if(!ve)return;const t=new Set(Ze);t.has(e)?t.delete(e):t.add(e),ve(t)},[Ze,ve]),dt=ue?r.length+1:r.length,it=e=>{if(e.sortable)return ke!==e.key?"none":"asc"===we?"ascending":"desc"===we?"descending":"none"},ot=a=>{const r="string"==typeof a.header?a.header:void 0;/* @__PURE__ */
|
|
2
2
|
return t("span",{className:D,children:[
|
|
3
|
-
/* @__PURE__ */e("span",{className:I,children:a.header}),a.sortable&&/* @__PURE__ */e(y,{direction:
|
|
4
|
-
/* @__PURE__ */t("table",{ref:
|
|
5
|
-
/* @__PURE__ */e("thead",{className:h(B,ie&&M,me&&
|
|
6
|
-
/* @__PURE__ */t("tbody",{"data-cy":`${
|
|
7
|
-
|
|
8
|
-
/* @__PURE__ */e("div",{"data-cy":`${
|
|
9
|
-
/* @__PURE__ */e("div",{"data-cy":`${
|
|
3
|
+
/* @__PURE__ */e("span",{className:I,children:a.header}),a.sortable&&/* @__PURE__ */e(y,{direction:ke===a.key?we??"none":"none",onDirectionChange:e=>Ne?.(a.key,e),"aria-label":r?`Sort by ${r}`:"Sort column","data-cy":`${Te}-sort-${a.key}`,"data-testid":`${Ae}-sort-${a.key}`}),a.filterable&&a.filterOptions&&/* @__PURE__ */e(u,{mode:"multi",options:a.filterOptions,value:xe?.[a.key],onApply:e=>Se?.(a.key,e),title:a.filterTitle,searchable:a.filterSearchable,"aria-label":r?`Filter ${r}`:"Filter column","data-cy":`${Te}-filter-${a.key}`,"data-testid":`${Ae}-filter-${a.key}`})]})},lt=i(e=>{const[t]=e;t.isIntersecting&&se&&!le&&oe&&oe()},[se,le,oe]);l(()=>{const e=Oe.current;if(!e||!oe)return;const t=new IntersectionObserver(lt,{root:me?Re.current:null,rootMargin:"0px",threshold:.1});return t.observe(e),()=>t.disconnect()},[lt,oe,me]);const st=/* @__PURE__ */t(a,{children:[
|
|
4
|
+
/* @__PURE__ */t("table",{ref:He,className:h(Q,qe&&G,Le),"aria-busy":le||void 0,"data-cy":Te,"data-testid":Ae,...De,children:[
|
|
5
|
+
/* @__PURE__ */e("thead",{className:h(B,ie&&M,me&&F,me&&Me&&R),"data-cy":`${Te}-head`,"data-testid":`${Ae}-head`,children:/* @__PURE__ */t("tr",{children:[ue&&/* @__PURE__ */e("th",{scope:"col",className:Xe,"data-cy":`${Te}-header-checkbox`,"data-testid":`${Ae}-header-checkbox`,children:/* @__PURE__ */e("label",{className:v,children:/* @__PURE__ */e(m,{checked:tt,indeterminate:at&&!tt,onChange:rt,"aria-label":"Select all rows","data-cy":`${Te}-select-all`,"data-testid":`${Ae}-select-all`})})}),r.map(t=>/* @__PURE__ */e("th",{scope:"col","aria-sort":it(t),className:h(O,ie&&Ve),style:Ge(t),"data-cy":`${Te}-header-${t.key}`,"data-testid":`${Ae}-header-${t.key}`,children:ot(t)},t.key))]})}),
|
|
6
|
+
/* @__PURE__ */t("tbody",{"data-cy":`${Te}-body`,"data-testid":`${Ae}-body`,children:[0!==te.length||le?te.map((a,n)=>{const d=fe?a[fe]:void 0,i=null==d||""===String(d)?String(n):String(d);/* @__PURE__ */
|
|
7
|
+
return t("tr",{className:h(z,ie&&q,re&&P,ae&&!ie&&J,be&&_,be&&ie&&H),tabIndex:be?0:void 0,style:be?{outline:"none",boxShadow:"none"}:void 0,onFocus:e=>e.currentTarget.setAttribute("data-focused","true"),onBlur:e=>e.currentTarget.removeAttribute("data-focused"),onClick:be?e=>{e.target.closest('button, a, input, label, [role="checkbox"]')||be(a,n)}:void 0,onKeyDown:be?e=>{if("Enter"===e.key||" "===e.key){if(e.target.closest('button, a, input, label, [role="checkbox"]'))return;e.preventDefault(),be(a,n)}}:void 0,"data-cy":`${Te}-row-${i}`,"data-testid":`${Ae}-row-${i}`,children:[ue&&/* @__PURE__ */e("td",{className:Ye,"data-cy":`${Te}-cell-${n}-checkbox`,"data-testid":`${Ae}-cell-${n}-checkbox`,children:/* @__PURE__ */e("label",{className:v,children:/* @__PURE__ */e(m,{checked:Ze.has(String(a[$e]??"")),onChange:()=>nt(String(a[$e]??"")),"aria-label":`Select row ${n+1}`,"data-cy":`${Te}-select-${n}`,"data-testid":`${Ae}-select-${n}`})})}),r.map(t=>/* @__PURE__ */e("td",{className:h(N,ie&&We,ze(t)&&w),style:Ge(t),"data-cy":`${Te}-cell-${n}-${t.key}`,"data-testid":`${Ae}-cell-${n}-${t.key}`,children:Ue(t,a,n)},t.key))]},n)}):/* @__PURE__ */e("tr",{children:/* @__PURE__ */e("td",{colSpan:dt,className:"p-0","data-cy":`${Te}-empty`,"data-testid":`${Ae}-empty`,children:/* @__PURE__ */t("div",{className:b,children:[
|
|
8
|
+
/* @__PURE__ */e("div",{className:g,"aria-hidden":"true","data-cy":`${Te}-empty-icon`,"data-testid":`${Ae}-empty-icon`,children:/* @__PURE__ */e(c,{width:"100%",height:"100%"})}),ye&&/* @__PURE__ */e("p",{className:k,"data-cy":`${Te}-empty-text`,"data-testid":`${Ae}-empty-text`,children:ye})]})})}),le&&(ce?/* @__PURE__ */e("tr",{children:/* @__PURE__ */e("td",{colSpan:dt,className:x,"data-cy":`${Te}-loading`,"data-testid":`${Ae}-loading`,children:ce})}):Array.from({length:he}).map((a,n)=>/* @__PURE__ */t("tr",{className:h(z,ie&&q),"data-cy":`${Te}-skeleton-${n}`,"data-testid":`${Ae}-skeleton-${n}`,children:[ue&&/* @__PURE__ */e("td",{className:Ye,children:/* @__PURE__ */e("div",{className:v,children:/* @__PURE__ */e("div",{className:"w-4 h-4 rounded-4 bg-[color-mix(in_srgb,var(--color-border)_40%,transparent)]"})})}),r.map((t,a)=>/* @__PURE__ */e("td",{className:h(N,ie&&We),children:/* @__PURE__ */e("div",{className:S,style:{width:ee[(n+a)%ee.length]}})},t.key))]},`skeleton-${n}`)))]})]}),oe&&/* @__PURE__ */e("div",{ref:Oe,className:"h-4","data-cy":`${Te}-sentinel`,"data-testid":`${Ae}-sentinel`,"aria-hidden":"true"})]}),ct=Je?/* @__PURE__ */e(s.Provider,{delayDuration:0,skipDelayDuration:0,children:st}):st,ht=/* @__PURE__ */t("div",{className:h(W,!_e&&V,ie&&(se?"overflow-hidden rounded-t-2xl":"overflow-hidden rounded-2xl")),tabIndex:-1,style:{outline:"none"},"data-cy":`${Te}-wrapper`,"data-testid":`${Ae}-wrapper`,children:[Ke&&/* @__PURE__ */t("div",{className:E,"data-cy":`${Te}-header-bar`,"data-testid":`${Ae}-header-bar`,children:[
|
|
9
|
+
/* @__PURE__ */e("div",{"data-cy":`${Te}-header-left`,"data-testid":`${Ae}-header-left`,children:ne}),
|
|
10
|
+
/* @__PURE__ */e("div",{"data-cy":`${Te}-header-right`,"data-testid":`${Ae}-header-right`,children:de})]}),me?/* @__PURE__ */e("div",{ref:Re,className:L,tabIndex:-1,style:{maxHeight:me,outline:"none"},children:ct}):ct]}),mt=ge?/* @__PURE__ */e("div",{className:U,"data-cy":`${Te}-footer-bar`,"data-testid":`${Ae}-footer-bar`,children:ge}):null;/* @__PURE__ */
|
|
10
11
|
return t(a,ie?{children:[
|
|
11
|
-
/* @__PURE__ */e("div",{className:h(Z,se?X:Y),children:
|
|
12
|
+
/* @__PURE__ */e("div",{className:h(Z,se?X:Y),children:ht}),mt]}:{children:[ht,mt]})});te.displayName="DataTable";const ae=r(({children:t,className:a,style:r,...i},o)=>{const s=n(null),[c,m]=d(!1);return l(()=>{const e=s.current;if(!e)return;const t=e.closest("tr");if(!t)return;const a=()=>m(!0),r=()=>m(!1);return t.addEventListener("mouseenter",a),t.addEventListener("mouseleave",r),t.addEventListener("focusin",a),t.addEventListener("focusout",r),()=>{t.removeEventListener("mouseenter",a),t.removeEventListener("mouseleave",r),t.removeEventListener("focusin",a),t.removeEventListener("focusout",r)}},[]),/* @__PURE__ */e("span",{ref:e=>{s.current=e,"function"==typeof o?o(e):o&&(o.current=e)},className:h("transition-opacity duration-200",c?"opacity-100":"opacity-0",a),style:r,...i,children:t})});ae.displayName="RowAction";export{te as DataTable,ae as RowAction};
|
|
@@ -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,eAA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,QAGlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,cAAc,EAEpB,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA4CzE,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"DataTable.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,cAAc,EAEpB,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA4CzE,eAAO,MAAM,SAAS,6GAujBrB,CAAC;AAIF;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,eAAe,CAAC;IACrE,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,4GAgDrB,CAAC;AAIF,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -72,6 +72,13 @@ export interface DataTableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
|
72
72
|
selectable?: boolean;
|
|
73
73
|
/** Unique key field in each data row used to track selection (e.g. 'id') */
|
|
74
74
|
rowKey?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Names a field on each row whose string value replaces the row index in the
|
|
77
|
+
* row `data-cy` and `data-testid` only. It does not change selection, and it
|
|
78
|
+
* does not change cell attributes. When omitted, or when the field is missing,
|
|
79
|
+
* null, or empty, the suffix stays `String(rowIndex)`.
|
|
80
|
+
*/
|
|
81
|
+
rowCySuffixKey?: string;
|
|
75
82
|
/** Set of selected row keys — controlled from outside */
|
|
76
83
|
selectedRows?: Set<string | number>;
|
|
77
84
|
/** Called when selection changes — receives the updated Set of selected keys */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8FAA8F;IAC9F,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAC;IACvF;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kFAAkF;IAClF,aAAa,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACjD,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,6DAA6D;IAC7D,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,cAAe,SAAQ,mBAAmB,CAAC,gBAAgB,CAAC;IAC3E,OAAO,EAAE,eAAe,EAAE,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,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a,KAAK,IAAI,CAAC;IAC/D;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACnC;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
1
|
+
{"version":3,"file":"DataTable.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8FAA8F;IAC9F,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAC;IACvF;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kFAAkF;IAClF,aAAa,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACjD,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,6DAA6D;IAC7D,WAAW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,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACtE,uEAAuE;IACvE,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,uEAAuE;IACvE,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,KAAK,IAAI,CAAC;IAC/D;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACnC;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -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-
|
|
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":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,eAAO,MAAM,iBAAiB,QAInB,CAAC;AAEZ,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAGjE,CAAC;AAEF,eAAO,MAAM,gBAAgB,+FACiE,CAAC;AAE/F,eAAO,MAAM,WAAW,uFAC8D,CAAC;AAEvF,eAAO,MAAM,mBAAmB,gEAAgE,CAAC;AAEjG,eAAO,MAAM,sBAAsB,gDAAgD,CAAC;AAEpF,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"LineChart.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/line-chart/LineChart.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,eAAO,MAAM,iBAAiB,QAInB,CAAC;AAEZ,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAGjE,CAAC;AAEF,eAAO,MAAM,gBAAgB,+FACiE,CAAC;AAE/F,eAAO,MAAM,WAAW,uFAC8D,CAAC;AAEvF,eAAO,MAAM,mBAAmB,gEAAgE,CAAC;AAEjG,eAAO,MAAM,sBAAsB,gDAAgD,CAAC;AAEpF,eAAO,MAAM,yBAAyB,6FACsD,CAAC;AAE7F,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,gBAAgB,EAA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