@cleen/ui 0.1.147 → 0.1.149
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/charts/index.js +2 -2
- package/dist/index.d.ts +89 -45
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/charts/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{cn as Me}from"@cleen/ui-core";import{forwardRef as $e}from"react";import{renderToStaticMarkup as Fe}from"react-dom/server";import De from"react-apexcharts";var Y={chart:{toolbar:{show:!0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0}},animations:{enabled:!0}},dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2},xaxis:{labels:{style:{fontSize:"12px"}}},yaxis:{labels:{style:{fontSize:"12px"}}},legend:{position:"top",horizontalAlign:"left"},tooltip:{enabled:!0,theme:"light"}};import{jsx as ae}from"react/jsx-runtime";var ze="[&_.apexcharts-tooltip]:!cleen-bg-transparent [&_.apexcharts-tooltip]:!cleen-border-0 [&_.apexcharts-tooltip]:!cleen-shadow-none [&_.apexcharts-tooltip]:!cleen-p-0 [&_.apexcharts-tooltip]:!cleen-overflow-visible [&_.apexcharts-tooltip]:!cleen-whitespace-normal",ie=$e(function({type:t="line",series:r,options:n={},width:d="100%",height:x=350,className:y,style:C,renderTooltip:c},S){let T=c?{...n.tooltip,custom:(s=>{let A=c({seriesIndex:s.seriesIndex,dataPointIndex:s.dataPointIndex,series:s.series,w:s.w});return A?Fe(A):""})}:n.tooltip,o={...Y,...n,chart:{...Y.chart,...n.chart,type:t},...T?{tooltip:T}:{}},v=!!o.tooltip?.custom;return ae("div",{className:Me("cleen",v&&ze,y),style:C,children:ae(De,{options:o,series:r,type:t,width:d,height:x,ref:S})})}),P=ie;import{applyDefaults as Ge}from"@cleen/ui-core";import{forwardRef as We}from"react";var le={chart:{type:"bar",zoom:{enabled:!1},toolbar:{show:!1},animations:{enabled:!1},fontFamily:"inherit",background:"transparent",parentHeightOffset:0},dataLabels:{enabled:!1},legend:{show:!1}};import{jsx as Xe}from"react/jsx-runtime";var Ue=We(function({options:t,...r},n){return Xe(P,{type:"bar",ref:n,options:Ge(le,t??{}),...r})});import{applyDefaults as z}from"@cleen/ui-core";import{forwardRef as Ve,useMemo as $}from"react";import{ColorHelpers as M}from"@cleen/ui-core";var se={marker:{size:2,fillColor:"rgba(var(--cleen-gray), 0.8)",strokeColor:"rgba(var(--cleen-gray), 0.8)",offsetY:-16,shape:"triangle"},label:{borderWidth:0,offsetY:-20,style:{color:"rgba(var(--cleen-gray), 0.8)",background:"transparent",fontSize:"11px"}}},ce={label:{borderColor:"transparent",style:{color:"rgba(var(--cleen-white))",background:"rgba(var(--cleen-primary))"}},fillColor:"rgba(var(--cleen-primary))"},pe={label:{borderWidth:0,offsetY:-15,orientation:"horizontal",style:{color:"rgba(var(--cleen-primary))",background:"transparent",fontSize:"16px",fontWeight:700}},borderColor:"rgba(var(--cleen-primary))"},de={marker:{size:8,fillColor:"rgba(var(--cleen-primary))",strokeColor:"rgba(var(--cleen-white))"}},ue={chart:{zoom:{enabled:!1},toolbar:{show:!1},animations:{enabled:!1}},stroke:{curve:"monotoneCubic",width:2.5},colors:[M.getComputedColor("var(--cleen-error)"),M.getComputedColor("var(--cleen-primary)"),M.getComputedColor("var(--cleen-success)")],fill:{type:"gradient",gradient:{shade:"light",type:"vertical",shadeIntensity:.6,gradientToColors:[M.getComputedColor("var(--cleen-error)")||"",M.getComputedColor("var(--cleen-primary)")||"",M.getComputedColor("var(--cleen-success)")||""],inverseColors:!1,opacityFrom:.95,opacityTo:.6}},yaxis:{show:!1},tooltip:{enabled:!0,x:{formatter:function(e){return`Score: ${typeof e=="string"?Number(e):e}`}},y:{formatter:function(e){return`${Number(e).toFixed(4)}`}}},grid:{show:!1},legend:{show:!1}};var me=(e,t)=>({middle:e,leftSigma:e-t,left2Sigma:e-2*t,left:e-3*t,rightSigma:e+2*t,right2Sigma:e+2*t,right:e+3*t}),fe=(e,t,r,n)=>({middle:e,leftSigma:e-t,left2Sigma:e-2*t,left:r,rightSigma:e+t,right2Sigma:e+2*t,right:n}),he=(e,t)=>{let r={};switch(e.type){case"range":r={x:t[e.x],x2:t[e.x2]};break;case"offset":r={x:e.x-e.offset,x2:e.x+e.offset};break;case"region":e.x>=t.left&&e.x<t.left2Sigma?r={x:t.left,x2:t.left2Sigma}:e.x>=t.left2Sigma&&e.x<t.leftSigma?r={x:t.left2Sigma,x2:t.leftSigma}:e.x>=t.leftSigma&&e.x<t.middle?r={x:t.leftSigma,x2:t.middle}:e.x>=t.middle&&e.x<t.rightSigma?r={x:t.middle,x2:t.rightSigma}:e.x>=t.rightSigma&&e.x<t.right2Sigma?r={x:t.rightSigma,x2:t.right2Sigma}:e.x>=t.right2Sigma&&e.x<t.right&&(r={x:t.right2Sigma,x2:t.right});break;default:r={x:e.x,x2:e.x2};break}return r};import{jsx as je}from"react/jsx-runtime";var Ke=Ve(function({serie:t,labels:r,sigma:n,pointAnnotations:d,rangeAnnotations:x,highlightAnnotations:y,options:C,height:c=360,...S},T){let o=$(()=>t.sort((l,f)=>l.x-f.x),[t]),v=$(()=>{let l=new Map;return t.forEach(f=>l.set(f.x,f.y)),l},[t]),s=o[Math.floor(o.length/2)],A=$(()=>{let{below:l,middle:f,above:g}=t.reduce((u,a)=>(a.x<s.x-2*n?u.below.push(a):a.x>=s.x+2*n?(a.x===s.x+2*n&&u.middle.push(a),u.above.push(a)):(a.x===s.x-2*n&&u.below.push(a),u.middle.push(a)),u),{below:[],middle:[],above:[]});return[{name:r?.below||"Below threshold",data:l},{name:r?.middle||"Middle grounds",data:f},{name:r?.above||"Above threshold",data:g}]},[n,t,r,s]),N=$(()=>{if(!d)return[];let l=me(s.x,n);return Object.entries(d).map(([f,g])=>{let u=l[f];return{x:u,y:v.get(u)||0,...z(se,g)}})},[d,n,v]),R=$(()=>{if(!x)return[];let l=fe(s.x,n,o[0].x,o[o.length-1].x);return x.map(f=>{let g=he(f,l);return{...z(ce,f),...g}})},[x,n,o]),{highlightPointAnnotations:w,highlightLineAnnotations:i}=$(()=>{if(!y)return{highlightLineAnnotations:[],highlightPointAnnotations:[]};let l=[],f=[],g=({x:a,line:h})=>{f.push(z(pe,{x:a,...h}))},u=({x:a,y:h,point:m})=>{l.push(z(de,{x:a,y:h,...m}))};return y?.forEach(a=>{switch(a.show){case"line":g(a);break;case"point":u(a);break;case"both":g(a),u(a);break;default:break}}),{highlightPointAnnotations:l,highlightLineAnnotations:f}},[y]);return je(P,{series:A,options:{...z(ue,C),annotations:{...C?.annotations,points:[...N,...w,...C?.annotations?.points||[]],xaxis:[...R,...i,...C?.annotations?.xaxis||[]]}},height:c,ref:T,type:"area",...S})});import{applyDefaults as qe}from"@cleen/ui-core";import{forwardRef as Ye}from"react";var ge={chart:{type:"radar",zoom:{enabled:!1},toolbar:{show:!1}},stroke:{width:2},fill:{opacity:.25},markers:{size:4,colors:"transparent",strokeColors:"transparent"},tooltip:{marker:{show:!1}},legend:{show:!1}};import{jsx as Je}from"react/jsx-runtime";var Ze=Ye(function({options:t,...r},n){return Je(P,{type:"radar",ref:n,options:qe(ge,t),...r})});import{applyDefaults as Qe,cn as et}from"@cleen/ui-core";import{forwardRef as tt}from"react";var ye={chart:{type:"scatter",zoom:{enabled:!1},toolbar:{show:!1}},markers:{shape:"square",size:8,strokeWidth:0},grid:{strokeDashArray:8},legend:{show:!0,horizontalAlign:"right",position:"top",labels:{colors:"rgba(var(--cleen-gray), 0.8)"}},yaxis:{axisBorder:{show:!0,color:"rgba(var(--cleen-gray), .2)"},labels:{style:{colors:"rgba(var(--cleen-gray), 0.8)"}}},xaxis:{axisBorder:{show:!0,color:"rgba(var(--cleen-gray), .2)"},labels:{style:{colors:"rgba(var(--cleen-gray), 0.8)"}}},title:{align:"left",floating:!0,style:{color:"rgba(var(--cleen-black))"}}},xe={chart:{type:"scatter",zoom:{enabled:!1},toolbar:{show:!1}},stroke:{width:0},fill:{opacity:1},markers:{shape:"circle",size:14,strokeWidth:2,hover:{sizeOffset:0}},grid:{strokeDashArray:0,borderColor:"rgba(var(--cleen-gray), 0.12)",padding:{left:0,right:12},xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},legend:{show:!1},xaxis:{min:0,max:210,tickAmount:4,axisBorder:{show:!1},axisTicks:{show:!1},decimalsInFloat:0,title:{text:"Estimated impact \u2192",style:{color:"rgba(var(--cleen-gray), 0.8)",fontSize:"14px",fontWeight:400}},labels:{style:{colors:"rgba(var(--cleen-gray), 0.8)",fontSize:"14px"},formatter(e){let t=Number(e);return Number.isNaN(t)?`${e}`:`$${Math.round(t)}k`}}},tooltip:{enabled:!0,theme:"light",x:{formatter(e){let t=Number(e);return Number.isNaN(t)?`${e}`:`$${Math.round(t)}k`}}}};import{jsx as G,jsxs as be}from"react/jsx-runtime";var rt=tt(function({options:t,variant:r="default",rows:n,className:d,style:x,...y},C){let S=Qe(r==="matrix"?xe:ye,t);if(r==="matrix"&&n?.length){let T=Math.min(...n.map(s=>s.y)),o=Math.max(...n.map(s=>s.y)),v=Array.isArray(S.yaxis)?{}:S.yaxis??{};return be("div",{className:et("cleen cleen-grid cleen-grid-cols-[156px_minmax(0,1fr)] cleen-items-stretch cleen-gap-3 cleen-w-full",d),style:x,children:[G("div",{className:"cleen-grid cleen-pt-[18px] cleen-pb-[54px]",style:{gridTemplateRows:`repeat(${n.length}, minmax(0, 1fr))`},children:n.map(s=>be("div",{className:"cleen-flex cleen-flex-col cleen-justify-center cleen-items-end cleen-gap-1 cleen-pr-2",children:[G("span",{className:"cleen-text-[18px] cleen-font-bold cleen-leading-[1.1] cleen-text-[rgba(var(--cleen-black))]",children:s.label}),s.gapsLabel?G("span",{className:"cleen-text-[14px] cleen-leading-[1.2] cleen-text-[rgba(var(--cleen-gray),0.8)]",children:s.gapsLabel}):null]},`${s.label}-${s.y}`))}),G(P,{type:"scatter",ref:C,className:"cleen-w-full cleen-h-full",options:{...S,yaxis:{...v,min:T-.5,max:o+.5,tickAmount:Math.max(o-T,1),axisBorder:{...v.axisBorder,show:!1},axisTicks:{...v.axisTicks,show:!1},labels:{...v.labels,show:!1}},annotations:{...S.annotations,yaxis:[...n.map(s=>({y:s.y,borderColor:s.lineColor||"rgba(var(--cleen-gray), 0.12)",strokeDashArray:0})),...S.annotations?.yaxis||[]]}},...y})]})}return G(P,{type:"scatter",ref:C,className:d,style:x,options:S,...y})});import{applyDefaults as ot,cn as W}from"@cleen/ui-core";import{useId as nt,useMemo as U,useRef as at,useState as it}from"react";import{Layer as we,Rectangle as Ce,ResponsiveContainer as lt,Sankey as st,Tooltip as ct}from"recharts";var E={width:"100%",height:420,nodePadding:24,enableToolbar:!1,enableTooltip:!0,highlightOnHover:!0,dimOnHover:!0,dimOpacity:.2,edgeOpacity:.4,edgeGradientFill:!0,nodeWidth:20,nodeBorderWidth:0,nodeBorderColor:null,align:"justify",fontColor:"rgba(var(--cleen-neutral-800, 38, 38, 38))",tooltipBGColor:"rgba(var(--cleen-white))",tooltipBorderColor:"rgba(var(--cleen-gray), 0.2)"};import{Fragment as Nt,jsx as k,jsxs as D}from"react/jsx-runtime";var pt=typeof E.height=="number"?E.height:420,Se=40,ve=60,ke=8,dt=8,ut="cleen-min-w-[220px] cleen-max-w-[min(360px,90vw)] cleen-flex cleen-flex-col cleen-gap-2",Z="cleen-m-0 cleen-text-xs cleen-leading-[18px] cleen-whitespace-pre-line cleen-break-words",mt="cleen-font-semibold",ft="cleen-font-medium cleen-text-[13px] cleen-mt-1 cleen-opacity-[0.72]",ht="cleen-font-medium cleen-text-[13px] cleen-mt-[6px]";function gt(e){if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"){let t=e.trim();if(!t.endsWith("%")&&t!=="auto"){let r=Number.parseFloat(t);if(Number.isFinite(r))return r}}return pt}function Ae(e){return typeof e=="object"&&e!==null&&"id"in e&&"title"in e}function yt(e){return typeof e=="object"&&e!==null&&"id"in e&&"title"in e&&"index"in e&&"name"in e}var Te=["rgba(var(--cleen-primary, 59, 130, 246))","rgba(var(--cleen-success, 34, 197, 94))","rgba(var(--cleen-warning, 245, 158, 11))","rgba(var(--cleen-error, 239, 68, 68))","rgba(var(--cleen-purple, 147, 51, 234))","rgba(var(--cleen-cyan, 6, 182, 212))","rgba(var(--cleen-orange, 249, 115, 22))","rgba(var(--cleen-pink, 236, 72, 153))","rgba(var(--cleen-teal, 20, 184, 166))","rgba(var(--cleen-indigo, 99, 102, 241))","rgba(var(--cleen-rose, 244, 63, 94))","rgba(var(--cleen-amber, 245, 158, 11))"];function Pe(e){return e!=null}function xt(e,t){return[e.source,e.target,e.type??"",e.label??"",e.value,t].join("-").replace(/\s+/g,"_")}function X(e,t){return typeof e=="object"&&e!==null?e.id:t}function Ne(e,t){return typeof e=="object"&&e!==null?e.title:t}function J(e){return typeof e=="object"&&e!==null&&"edgeKey"in e&&"sourceId"in e&&"targetId"in e}function Q(e){return typeof e=="object"&&e!==null&&"payload"in e}function Le(e){if(Q(e))return Le(e.payload);if(J(e)||yt(e))return e}function ee(...e){return e.map(t=>typeof t=="number"?String(t):t?.trim()??"").find(t=>t.length>0)}function Oe(e){let t=ee(e);if(t)return/[\p{L}\p{N}]/u.test(t)?t:void 0}function Ee(e){return e.replace(/[^a-zA-Z0-9_-]/g,"_")}function F(e){let t=e.match(/^rgba\((var\(.+\)),\s*([0-9]*\.?[0-9]+)\)$/i);if(t)return{color:`rgb(${t[1]})`,opacity:Number.parseFloat(t[2])};let r=e.match(/^rgba\((var\(.+\))\)$/i);if(r)return{color:`rgb(${r[1]})`,opacity:1};let n=e.match(/^rgba\(\s*(\d+\s*,\s*\d+\s*,\s*\d+)\s*,\s*([0-9]*\.?[0-9]+)\s*\)$/i);return n?{color:`rgb(${n[1]})`,opacity:Number.parseFloat(n[2])}:{color:e,opacity:1}}function te(e,t){return F(t??Te[e%Te.length])}function Re(e){return e.length*dt}function bt(e){let t=new Set,r=new Set([e.id]);for(let n of[...e.sourceLinks??[],...e.targetLinks??[]])t.add(n.edgeKey),r.add(X(n.source,n.sourceId)),r.add(X(n.target,n.targetId));return{activeLinkKeys:t,activeNodeIds:r}}function Ct(e){return{activeLinkKeys:new Set([e.edgeKey]),activeNodeIds:new Set([X(e.source,e.sourceId),X(e.target,e.targetId)])}}function St(e,t,r,n,d){return!e||e.activeNodeIds.has(t)?1:n?d??E.dimOpacity??.2:r?.55:1}function vt(e,t,r,n,d,x){return e?e.activeLinkKeys.has(t)?n?Math.max(r,.9):r:d?x??E.dimOpacity??.2:n?Math.min(r,.3):r:r}var kt=({dimOnHover:e,dimOpacity:t,fontColor:r,x:n,y:d,width:x,height:y,highlightOnHover:C,hoverState:c,index:S,outgoingEdgesById:T,payload:o,stroke:v,strokeWidth:s})=>{if(o===void 0||n===void 0||d===void 0||x===void 0||y===void 0||S===void 0)return null;let A=T?.get(o.id)??[],N=A.length>0,R=te(S,o.color),w=F(r),i=St(c,o.id,C,e,t),l=new Set(A.map(h=>h.color).filter(Pe)),f=Array.from(l)[0],g=N&&A.length>1&&l.size>1&&l.size===A.length,u=g?A:[],a=u.reduce((h,m)=>h+(m.value??0),0);return D(we,{children:[g&&a>0?u.map((h,m)=>{let p=u.slice(0,m).reduce((H,B)=>H+(B.value??0),0),b=d+p/a*y,O=(h.value??0)/a*y,L=F(h.color??R.color),I=m===0,_=m===u.length-1;return k(Ce,{x:n,y:b,width:x,height:O,fill:L.color,fillOpacity:L.opacity*i,stroke:v,strokeWidth:s,radius:[I?2:0,I?2:0,_?2:0,_?2:0]},`${h.source}-${h.target}-${m}`)}):k(Ce,{x:n,y:d,width:x,height:y,fill:N&&l.size===1?F(f??R.color).color:R.color,fillOpacity:(N&&l.size===1?F(f??R.color).opacity:R.opacity)*i,stroke:v,strokeWidth:s,radius:[2,2,2,2]}),k("text",{textAnchor:N?"end":"start",x:N?n-8:n+x+8,y:d+y/2,dy:"0.35em",fontSize:"14",fill:w.color,fillOpacity:w.opacity*i,fontWeight:600,children:o.name})]},`CustomNode${S}`)},At=({sourceX:e,targetX:t,sourceY:r,targetY:n,sourceControlX:d,targetControlX:x,linkWidth:y,index:C,payload:c,opacity:S,chartId:T,dimOnHover:o,dimOpacity:v,edgeGradientFill:s,highlightOnHover:A,hoverState:N})=>{if(c===void 0||e===void 0||t===void 0||r===void 0||n===void 0||d===void 0||x===void 0||y===void 0)return null;let R=S??E.edgeOpacity??.4,w=vt(N,c.edgeKey,R,A,o,v),i=c.color?F(c.color):null,l=i??te(typeof c.source=="object"?c.source.index:0,typeof c.source=="object"?c.source.color:void 0),f=i??te(typeof c.target=="object"?c.target.index:1,typeof c.target=="object"?c.target.color:void 0),g=Ee(`linkGradient-${T}-${c.edgeKey}-${C??c.value}`),u=s!==!1&&i===null;return D(we,{children:[u?k("defs",{children:D("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[k("stop",{offset:"0%",stopColor:l.color,stopOpacity:l.opacity*w}),k("stop",{offset:"100%",stopColor:f.color,stopOpacity:f.opacity*w})]})}):null,k("path",{d:`
|
|
1
|
+
import{cn as Me}from"@cleen/ui-core";import{forwardRef as $e}from"react";import{renderToStaticMarkup as Fe}from"react-dom/server";import De from"react-apexcharts";var Y={chart:{toolbar:{show:!0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0}},animations:{enabled:!0}},dataLabels:{enabled:!1},stroke:{curve:"smooth",width:2},xaxis:{labels:{style:{fontSize:"12px"}}},yaxis:{labels:{style:{fontSize:"12px"}}},legend:{position:"top",horizontalAlign:"left"},tooltip:{enabled:!0,theme:"light"}};import{jsx as ae}from"react/jsx-runtime";var ze="[&_.apexcharts-tooltip]:!cleen-bg-transparent [&_.apexcharts-tooltip]:!cleen-border-0 [&_.apexcharts-tooltip]:!cleen-shadow-none [&_.apexcharts-tooltip]:!cleen-p-0 [&_.apexcharts-tooltip]:!cleen-overflow-visible [&_.apexcharts-tooltip]:!cleen-whitespace-normal",ie=$e(function({type:t="line",series:r,options:n={},width:d="100%",height:x=350,className:y,style:C,renderTooltip:c},S){let T=c?{...n.tooltip,custom:(s=>{let A=c({seriesIndex:s.seriesIndex,dataPointIndex:s.dataPointIndex,series:s.series,w:s.w});return A?Fe(A):""})}:n.tooltip,o={...Y,...n,chart:{...Y.chart,...n.chart,type:t},...T?{tooltip:T}:{}},v=!!o.tooltip?.custom;return ae("div",{className:Me("cleen",v&&ze,y),style:C,children:ae(De,{options:o,series:r,type:t,width:d,height:x,ref:S})})}),P=ie;import{applyDefaults as Ge}from"@cleen/ui-core";import{forwardRef as We}from"react";var le={chart:{type:"bar",zoom:{enabled:!1},toolbar:{show:!1},animations:{enabled:!1},fontFamily:"inherit",background:"transparent",parentHeightOffset:0},dataLabels:{enabled:!1},legend:{show:!1}};import{jsx as Xe}from"react/jsx-runtime";var Ue=We(function({options:t,...r},n){return Xe(P,{type:"bar",ref:n,options:Ge(le,t??{}),...r})});import{applyDefaults as z}from"@cleen/ui-core";import{forwardRef as Ve,useMemo as $}from"react";import{ColorHelpers as M}from"@cleen/ui-core";var se={marker:{size:2,fillColor:"rgba(var(--cleen-gray-500))",strokeColor:"rgba(var(--cleen-gray-500))",offsetY:-16,shape:"triangle"},label:{borderWidth:0,offsetY:-20,style:{color:"rgba(var(--cleen-gray-500))",background:"transparent",fontSize:"11px"}}},ce={label:{borderColor:"transparent",style:{color:"rgba(var(--cleen-white))",background:"rgba(var(--cleen-primary))"}},fillColor:"rgba(var(--cleen-primary))"},pe={label:{borderWidth:0,offsetY:-15,orientation:"horizontal",style:{color:"rgba(var(--cleen-primary))",background:"transparent",fontSize:"16px",fontWeight:700}},borderColor:"rgba(var(--cleen-primary))"},de={marker:{size:8,fillColor:"rgba(var(--cleen-primary))",strokeColor:"rgba(var(--cleen-white))"}},ue={chart:{zoom:{enabled:!1},toolbar:{show:!1},animations:{enabled:!1}},stroke:{curve:"monotoneCubic",width:2.5},colors:[M.getComputedColor("var(--cleen-error)"),M.getComputedColor("var(--cleen-primary)"),M.getComputedColor("var(--cleen-success)")],fill:{type:"gradient",gradient:{shade:"light",type:"vertical",shadeIntensity:.6,gradientToColors:[M.getComputedColor("var(--cleen-error)")||"",M.getComputedColor("var(--cleen-primary)")||"",M.getComputedColor("var(--cleen-success)")||""],inverseColors:!1,opacityFrom:.95,opacityTo:.6}},yaxis:{show:!1},tooltip:{enabled:!0,x:{formatter:function(e){return`Score: ${typeof e=="string"?Number(e):e}`}},y:{formatter:function(e){return`${Number(e).toFixed(4)}`}}},grid:{show:!1},legend:{show:!1}};var me=(e,t)=>({middle:e,leftSigma:e-t,left2Sigma:e-2*t,left:e-3*t,rightSigma:e+2*t,right2Sigma:e+2*t,right:e+3*t}),fe=(e,t,r,n)=>({middle:e,leftSigma:e-t,left2Sigma:e-2*t,left:r,rightSigma:e+t,right2Sigma:e+2*t,right:n}),he=(e,t)=>{let r={};switch(e.type){case"range":r={x:t[e.x],x2:t[e.x2]};break;case"offset":r={x:e.x-e.offset,x2:e.x+e.offset};break;case"region":e.x>=t.left&&e.x<t.left2Sigma?r={x:t.left,x2:t.left2Sigma}:e.x>=t.left2Sigma&&e.x<t.leftSigma?r={x:t.left2Sigma,x2:t.leftSigma}:e.x>=t.leftSigma&&e.x<t.middle?r={x:t.leftSigma,x2:t.middle}:e.x>=t.middle&&e.x<t.rightSigma?r={x:t.middle,x2:t.rightSigma}:e.x>=t.rightSigma&&e.x<t.right2Sigma?r={x:t.rightSigma,x2:t.right2Sigma}:e.x>=t.right2Sigma&&e.x<t.right&&(r={x:t.right2Sigma,x2:t.right});break;default:r={x:e.x,x2:e.x2};break}return r};import{jsx as je}from"react/jsx-runtime";var Ke=Ve(function({serie:t,labels:r,sigma:n,pointAnnotations:d,rangeAnnotations:x,highlightAnnotations:y,options:C,height:c=360,...S},T){let o=$(()=>t.sort((l,f)=>l.x-f.x),[t]),v=$(()=>{let l=new Map;return t.forEach(f=>l.set(f.x,f.y)),l},[t]),s=o[Math.floor(o.length/2)],A=$(()=>{let{below:l,middle:f,above:g}=t.reduce((u,a)=>(a.x<s.x-2*n?u.below.push(a):a.x>=s.x+2*n?(a.x===s.x+2*n&&u.middle.push(a),u.above.push(a)):(a.x===s.x-2*n&&u.below.push(a),u.middle.push(a)),u),{below:[],middle:[],above:[]});return[{name:r?.below||"Below threshold",data:l},{name:r?.middle||"Middle grounds",data:f},{name:r?.above||"Above threshold",data:g}]},[n,t,r,s]),N=$(()=>{if(!d)return[];let l=me(s.x,n);return Object.entries(d).map(([f,g])=>{let u=l[f];return{x:u,y:v.get(u)||0,...z(se,g)}})},[d,n,v]),R=$(()=>{if(!x)return[];let l=fe(s.x,n,o[0].x,o[o.length-1].x);return x.map(f=>{let g=he(f,l);return{...z(ce,f),...g}})},[x,n,o]),{highlightPointAnnotations:w,highlightLineAnnotations:i}=$(()=>{if(!y)return{highlightLineAnnotations:[],highlightPointAnnotations:[]};let l=[],f=[],g=({x:a,line:h})=>{f.push(z(pe,{x:a,...h}))},u=({x:a,y:h,point:m})=>{l.push(z(de,{x:a,y:h,...m}))};return y?.forEach(a=>{switch(a.show){case"line":g(a);break;case"point":u(a);break;case"both":g(a),u(a);break;default:break}}),{highlightPointAnnotations:l,highlightLineAnnotations:f}},[y]);return je(P,{series:A,options:{...z(ue,C),annotations:{...C?.annotations,points:[...N,...w,...C?.annotations?.points||[]],xaxis:[...R,...i,...C?.annotations?.xaxis||[]]}},height:c,ref:T,type:"area",...S})});import{applyDefaults as qe}from"@cleen/ui-core";import{forwardRef as Ye}from"react";var ge={chart:{type:"radar",zoom:{enabled:!1},toolbar:{show:!1}},stroke:{width:2},fill:{opacity:.25},markers:{size:4,colors:"transparent",strokeColors:"transparent"},tooltip:{marker:{show:!1}},legend:{show:!1}};import{jsx as Je}from"react/jsx-runtime";var Ze=Ye(function({options:t,...r},n){return Je(P,{type:"radar",ref:n,options:qe(ge,t),...r})});import{applyDefaults as Qe,cn as et}from"@cleen/ui-core";import{forwardRef as tt}from"react";var ye={chart:{type:"scatter",zoom:{enabled:!1},toolbar:{show:!1}},markers:{shape:"square",size:8,strokeWidth:0},grid:{strokeDashArray:8},legend:{show:!0,horizontalAlign:"right",position:"top",labels:{colors:"rgba(var(--cleen-gray-700))"}},yaxis:{axisBorder:{show:!0,color:"rgba(var(--cleen-gray-200))"},labels:{style:{colors:"rgba(var(--cleen-gray-700))"}}},xaxis:{axisBorder:{show:!0,color:"rgba(var(--cleen-gray-200))"},labels:{style:{colors:"rgba(var(--cleen-gray-700))"}}},title:{align:"left",floating:!0,style:{color:"rgba(var(--cleen-black))"}}},xe={chart:{type:"scatter",zoom:{enabled:!1},toolbar:{show:!1}},stroke:{width:0},fill:{opacity:1},markers:{shape:"circle",size:14,strokeWidth:2,hover:{sizeOffset:0}},grid:{strokeDashArray:0,borderColor:"rgba(var(--cleen-gray-200))",padding:{left:0,right:12},xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},legend:{show:!1},xaxis:{min:0,max:210,tickAmount:4,axisBorder:{show:!1},axisTicks:{show:!1},decimalsInFloat:0,title:{text:"Estimated impact \u2192",style:{color:"rgba(var(--cleen-gray-700))",fontSize:"14px",fontWeight:400}},labels:{style:{colors:"rgba(var(--cleen-gray-700))",fontSize:"14px"},formatter(e){let t=Number(e);return Number.isNaN(t)?`${e}`:`$${Math.round(t)}k`}}},tooltip:{enabled:!0,theme:"light",x:{formatter(e){let t=Number(e);return Number.isNaN(t)?`${e}`:`$${Math.round(t)}k`}}}};import{jsx as G,jsxs as be}from"react/jsx-runtime";var rt=tt(function({options:t,variant:r="default",rows:n,className:d,style:x,...y},C){let S=Qe(r==="matrix"?xe:ye,t);if(r==="matrix"&&n?.length){let T=Math.min(...n.map(s=>s.y)),o=Math.max(...n.map(s=>s.y)),v=Array.isArray(S.yaxis)?{}:S.yaxis??{};return be("div",{className:et("cleen cleen-grid cleen-grid-cols-[156px_minmax(0,1fr)] cleen-items-stretch cleen-gap-3 cleen-w-full",d),style:x,children:[G("div",{className:"cleen-grid cleen-pt-[18px] cleen-pb-[54px]",style:{gridTemplateRows:`repeat(${n.length}, minmax(0, 1fr))`},children:n.map(s=>be("div",{className:"cleen-flex cleen-flex-col cleen-justify-center cleen-items-end cleen-gap-1 cleen-pr-2",children:[G("span",{className:"cleen-text-[18px] cleen-font-bold cleen-leading-[1.1] cleen-text-[rgba(var(--cleen-black))]",children:s.label}),s.gapsLabel?G("span",{className:"cleen-text-[14px] cleen-leading-[1.2] cleen-text-gray-700",children:s.gapsLabel}):null]},`${s.label}-${s.y}`))}),G(P,{type:"scatter",ref:C,className:"cleen-w-full cleen-h-full",options:{...S,yaxis:{...v,min:T-.5,max:o+.5,tickAmount:Math.max(o-T,1),axisBorder:{...v.axisBorder,show:!1},axisTicks:{...v.axisTicks,show:!1},labels:{...v.labels,show:!1}},annotations:{...S.annotations,yaxis:[...n.map(s=>({y:s.y,borderColor:s.lineColor||"rgba(var(--cleen-gray-200))",strokeDashArray:0})),...S.annotations?.yaxis||[]]}},...y})]})}return G(P,{type:"scatter",ref:C,className:d,style:x,options:S,...y})});import{applyDefaults as ot,cn as W}from"@cleen/ui-core";import{useId as nt,useMemo as U,useRef as at,useState as it}from"react";import{Layer as we,Tooltip as lt,Rectangle as Ce,ResponsiveContainer as st,Sankey as ct}from"recharts";var E={width:"100%",height:420,nodePadding:24,enableToolbar:!1,enableTooltip:!0,highlightOnHover:!0,dimOnHover:!0,dimOpacity:.2,edgeOpacity:.4,edgeGradientFill:!0,nodeWidth:20,nodeBorderWidth:0,nodeBorderColor:null,align:"justify",fontColor:"rgba(var(--cleen-neutral-800, 38, 38, 38))",tooltipBGColor:"rgba(var(--cleen-white))",tooltipBorderColor:"rgba(var(--cleen-gray-200))"};import{Fragment as Nt,jsx as k,jsxs as D}from"react/jsx-runtime";var pt=typeof E.height=="number"?E.height:420,Se=40,ve=60,ke=8,dt=8,ut="cleen-min-w-[220px] cleen-max-w-[min(360px,90vw)] cleen-flex cleen-flex-col cleen-gap-2",Z="cleen-m-0 cleen-text-xs cleen-leading-[18px] cleen-whitespace-pre-line cleen-break-words",mt="cleen-font-semibold",ft="cleen-font-medium cleen-text-[13px] cleen-mt-1 cleen-opacity-[0.72]",ht="cleen-font-medium cleen-text-[13px] cleen-mt-[6px]";function gt(e){if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"){let t=e.trim();if(!t.endsWith("%")&&t!=="auto"){let r=Number.parseFloat(t);if(Number.isFinite(r))return r}}return pt}function Ae(e){return typeof e=="object"&&e!==null&&"id"in e&&"title"in e}function yt(e){return typeof e=="object"&&e!==null&&"id"in e&&"title"in e&&"index"in e&&"name"in e}var Te=["rgba(var(--cleen-primary, 59, 130, 246))","rgba(var(--cleen-success, 34, 197, 94))","rgba(var(--cleen-warning, 245, 158, 11))","rgba(var(--cleen-error, 239, 68, 68))","rgba(var(--cleen-purple, 147, 51, 234))","rgba(var(--cleen-cyan, 6, 182, 212))","rgba(var(--cleen-orange, 249, 115, 22))","rgba(var(--cleen-pink, 236, 72, 153))","rgba(var(--cleen-teal, 20, 184, 166))","rgba(var(--cleen-indigo, 99, 102, 241))","rgba(var(--cleen-rose, 244, 63, 94))","rgba(var(--cleen-amber, 245, 158, 11))"];function Pe(e){return e!=null}function xt(e,t){return[e.source,e.target,e.type??"",e.label??"",e.value,t].join("-").replace(/\s+/g,"_")}function X(e,t){return typeof e=="object"&&e!==null?e.id:t}function Ne(e,t){return typeof e=="object"&&e!==null?e.title:t}function J(e){return typeof e=="object"&&e!==null&&"edgeKey"in e&&"sourceId"in e&&"targetId"in e}function Q(e){return typeof e=="object"&&e!==null&&"payload"in e}function Le(e){if(Q(e))return Le(e.payload);if(J(e)||yt(e))return e}function ee(...e){return e.map(t=>typeof t=="number"?String(t):t?.trim()??"").find(t=>t.length>0)}function Oe(e){let t=ee(e);if(t)return/[\p{L}\p{N}]/u.test(t)?t:void 0}function Ee(e){return e.replace(/[^a-zA-Z0-9_-]/g,"_")}function F(e){let t=e.match(/^rgba\((var\(.+\)),\s*([0-9]*\.?[0-9]+)\)$/i);if(t)return{color:`rgb(${t[1]})`,opacity:Number.parseFloat(t[2])};let r=e.match(/^rgba\((var\(.+\))\)$/i);if(r)return{color:`rgb(${r[1]})`,opacity:1};let n=e.match(/^rgba\(\s*(\d+\s*,\s*\d+\s*,\s*\d+)\s*,\s*([0-9]*\.?[0-9]+)\s*\)$/i);return n?{color:`rgb(${n[1]})`,opacity:Number.parseFloat(n[2])}:{color:e,opacity:1}}function te(e,t){return F(t??Te[e%Te.length])}function Re(e){return e.length*dt}function bt(e){let t=new Set,r=new Set([e.id]);for(let n of[...e.sourceLinks??[],...e.targetLinks??[]])t.add(n.edgeKey),r.add(X(n.source,n.sourceId)),r.add(X(n.target,n.targetId));return{activeLinkKeys:t,activeNodeIds:r}}function Ct(e){return{activeLinkKeys:new Set([e.edgeKey]),activeNodeIds:new Set([X(e.source,e.sourceId),X(e.target,e.targetId)])}}function St(e,t,r,n,d){return!e||e.activeNodeIds.has(t)?1:n?d??E.dimOpacity??.2:r?.55:1}function vt(e,t,r,n,d,x){return e?e.activeLinkKeys.has(t)?n?Math.max(r,.9):r:d?x??E.dimOpacity??.2:n?Math.min(r,.3):r:r}var kt=({dimOnHover:e,dimOpacity:t,fontColor:r,x:n,y:d,width:x,height:y,highlightOnHover:C,hoverState:c,index:S,outgoingEdgesById:T,payload:o,stroke:v,strokeWidth:s})=>{if(o===void 0||n===void 0||d===void 0||x===void 0||y===void 0||S===void 0)return null;let A=T?.get(o.id)??[],N=A.length>0,R=te(S,o.color),w=F(r),i=St(c,o.id,C,e,t),l=new Set(A.map(h=>h.color).filter(Pe)),f=Array.from(l)[0],g=N&&A.length>1&&l.size>1&&l.size===A.length,u=g?A:[],a=u.reduce((h,m)=>h+(m.value??0),0);return D(we,{children:[g&&a>0?u.map((h,m)=>{let p=u.slice(0,m).reduce((H,B)=>H+(B.value??0),0),b=d+p/a*y,O=(h.value??0)/a*y,L=F(h.color??R.color),I=m===0,_=m===u.length-1;return k(Ce,{x:n,y:b,width:x,height:O,fill:L.color,fillOpacity:L.opacity*i,stroke:v,strokeWidth:s,radius:[I?2:0,I?2:0,_?2:0,_?2:0]},`${h.source}-${h.target}-${m}`)}):k(Ce,{x:n,y:d,width:x,height:y,fill:N&&l.size===1?F(f??R.color).color:R.color,fillOpacity:(N&&l.size===1?F(f??R.color).opacity:R.opacity)*i,stroke:v,strokeWidth:s,radius:[2,2,2,2]}),k("text",{textAnchor:N?"end":"start",x:N?n-8:n+x+8,y:d+y/2,dy:"0.35em",fontSize:"14",fill:w.color,fillOpacity:w.opacity*i,fontWeight:600,children:o.name})]},`CustomNode${S}`)},At=({sourceX:e,targetX:t,sourceY:r,targetY:n,sourceControlX:d,targetControlX:x,linkWidth:y,index:C,payload:c,opacity:S,chartId:T,dimOnHover:o,dimOpacity:v,edgeGradientFill:s,highlightOnHover:A,hoverState:N})=>{if(c===void 0||e===void 0||t===void 0||r===void 0||n===void 0||d===void 0||x===void 0||y===void 0)return null;let R=S??E.edgeOpacity??.4,w=vt(N,c.edgeKey,R,A,o,v),i=c.color?F(c.color):null,l=i??te(typeof c.source=="object"?c.source.index:0,typeof c.source=="object"?c.source.color:void 0),f=i??te(typeof c.target=="object"?c.target.index:1,typeof c.target=="object"?c.target.color:void 0),g=Ee(`linkGradient-${T}-${c.edgeKey}-${C??c.value}`),u=s!==!1&&i===null;return D(we,{children:[u?k("defs",{children:D("linearGradient",{id:g,x1:"0%",y1:"0%",x2:"100%",y2:"0%",children:[k("stop",{offset:"0%",stopColor:l.color,stopOpacity:l.opacity*w}),k("stop",{offset:"100%",stopColor:f.color,stopOpacity:f.opacity*w})]})}):null,k("path",{d:`
|
|
2
2
|
M${e},${r}
|
|
3
3
|
C${d},${r} ${x},${n} ${t},${n}
|
|
4
|
-
`,stroke:u?`url(#${g})`:l.color,strokeWidth:Math.max(1,y),fill:"none",strokeOpacity:u?1:l.opacity*w,className:"cleen-transition-opacity cleen-duration-300 hover:cleen-opacity-100"})]},`CustomLink${c.edgeKey}`)};function Tt({data:e,options:t,className:r,style:n,onNodeClick:d,renderTooltip:x}){let y=at(null),[C,c]=it(null),S=nt(),T=Ee(S),o=ot(E,t),v=gt(o.height),s=o.highlightOnHover||o.dimOnHover,A=U(()=>{let a=e.nodes.map((m,p)=>({...m,index:p,name:m.title})),h=e.edges.map((m,p)=>{let b=e.nodes.findIndex(L=>L.id===m.source),O=e.nodes.findIndex(L=>L.id===m.target);return b<0||O<0?null:{...m,edgeKey:xt(m,p),originalEdge:m,source:b,sourceId:m.source,target:O,targetId:m.target,value:m.value}}).filter(Pe);return{nodes:a,links:h}},[e]),N=U(()=>{let a=new Map;for(let h of e.edges){let m=a.get(h.source)??[];m.push(h),a.set(h.source,m)}return a},[e]),R=U(()=>({backgroundColor:o.tooltipBGColor,border:`1px solid ${o.tooltipBorderColor}`,borderRadius:8,boxShadow:"0 12px 32px rgba(15, 23, 42, 0.12)",color:o.fontColor,padding:"10px 12px"}),[o.fontColor,o.tooltipBGColor,o.tooltipBorderColor]),w=U(()=>{let a=new Set(e.edges.map(b=>b.source)),h=new Set(e.edges.map(b=>b.target)),m=e.nodes.reduce((b,O)=>h.has(O.id)?b:Math.max(b,Re(O.title)),0),p=e.nodes.reduce((b,O)=>a.has(O.id)?b:Math.max(b,Re(O.title)),0);return{top:Se,right:Math.max(ve,p+ke+16),bottom:Se,left:Math.max(ve,m+ke+16)}},[e]),i=(a,h)=>{if(s){if(h==="node"&&Ae(a.payload)){c(bt(a.payload));return}h==="link"&&J(a.payload)&&c(Ct(a.payload))}},l=()=>{s&&c(null)},f=()=>{if(typeof window>"u")return;let a=y.current?.querySelector("svg");if(!a)return;let h=new XMLSerializer().serializeToString(a),m=new Blob([h],{type:"image/svg+xml;charset=utf-8"}),p=URL.createObjectURL(m),b=document.createElement("a");b.href=p,b.download="sankey-chart.svg",b.click(),window.setTimeout(()=>URL.revokeObjectURL(p),0)},g=({active:a,payload:h})=>{if(!a||!h?.length)return null;let m=h[0]?.payload,p=Le(m);if(!p)return null;let b=J(p),O=Q(m)?m.value:h[0]?.value,L=Q(m)?m.name:void 0,I=Number(p.value??O??0),_=o.valueFormatter?o.valueFormatter(Number(p.value??O??0),b?p.originalEdge:void 0):`${p.value??O??""}`,H=b?Ne(p.source,p.sourceId):"",B=b?Ne(p.target,p.targetId):"",j=b?ee(p.title,p.label,p.name,p.originalEdge?.title,p.originalEdge?.label,p.originalEdge?.name,Oe(L),H&&B?`${H} \u2192 ${B}`:void 0):ee(p.title,Oe(L)),q=b?`${H} \u2192 ${B}`:"";if(x){let Be=b?{type:"link",edge:p.originalEdge,sourceNodeId:p.sourceId,sourceNodeTitle:H,targetNodeId:p.targetId,targetNodeTitle:B,value:Number.isFinite(I)?I:0,payload:p.originalEdge}:{type:"node",node:p,value:Number.isFinite(I)?I:0,payload:p},ne=x(Be);return ne?k(Nt,{children:ne}):null}return!j&&!q&&!_?null:D("div",{className:W(ut),style:R,children:[j?k("p",{className:W(Z,mt),style:{color:o.fontColor,overflowWrap:"anywhere"},children:j}):null,q?k("p",{className:W(Z,ft),style:{color:o.fontColor,overflowWrap:"anywhere"},children:q}):null,_?k("p",{className:W(Z,ht),style:{color:o.fontColor},children:_}):null]})},u={display:"flex",flexDirection:"column",gap:o.enableToolbar?12:0,width:o.width??"100%",height:v,minHeight:v,...n};return D("div",{className:W("cleen cleen-w-full",r),ref:y,style:u,children:[o.enableToolbar?D("div",{className:"cleen-flex cleen-items-center cleen-justify-end cleen-gap-2",children:[k("button",{type:"button",onClick:()=>c(null),disabled:!C,style:{backgroundColor:"rgba(var(--cleen-white))",border:"1px solid rgba(var(--cleen-gray)
|
|
4
|
+
`,stroke:u?`url(#${g})`:l.color,strokeWidth:Math.max(1,y),fill:"none",strokeOpacity:u?1:l.opacity*w,className:"cleen-transition-opacity cleen-duration-300 hover:cleen-opacity-100"})]},`CustomLink${c.edgeKey}`)};function Tt({data:e,options:t,className:r,style:n,onNodeClick:d,renderTooltip:x}){let y=at(null),[C,c]=it(null),S=nt(),T=Ee(S),o=ot(E,t),v=gt(o.height),s=o.highlightOnHover||o.dimOnHover,A=U(()=>{let a=e.nodes.map((m,p)=>({...m,index:p,name:m.title})),h=e.edges.map((m,p)=>{let b=e.nodes.findIndex(L=>L.id===m.source),O=e.nodes.findIndex(L=>L.id===m.target);return b<0||O<0?null:{...m,edgeKey:xt(m,p),originalEdge:m,source:b,sourceId:m.source,target:O,targetId:m.target,value:m.value}}).filter(Pe);return{nodes:a,links:h}},[e]),N=U(()=>{let a=new Map;for(let h of e.edges){let m=a.get(h.source)??[];m.push(h),a.set(h.source,m)}return a},[e]),R=U(()=>({backgroundColor:o.tooltipBGColor,border:`1px solid ${o.tooltipBorderColor}`,borderRadius:8,boxShadow:"0 12px 32px rgba(15, 23, 42, 0.12)",color:o.fontColor,padding:"10px 12px"}),[o.fontColor,o.tooltipBGColor,o.tooltipBorderColor]),w=U(()=>{let a=new Set(e.edges.map(b=>b.source)),h=new Set(e.edges.map(b=>b.target)),m=e.nodes.reduce((b,O)=>h.has(O.id)?b:Math.max(b,Re(O.title)),0),p=e.nodes.reduce((b,O)=>a.has(O.id)?b:Math.max(b,Re(O.title)),0);return{top:Se,right:Math.max(ve,p+ke+16),bottom:Se,left:Math.max(ve,m+ke+16)}},[e]),i=(a,h)=>{if(s){if(h==="node"&&Ae(a.payload)){c(bt(a.payload));return}h==="link"&&J(a.payload)&&c(Ct(a.payload))}},l=()=>{s&&c(null)},f=()=>{if(typeof window>"u")return;let a=y.current?.querySelector("svg");if(!a)return;let h=new XMLSerializer().serializeToString(a),m=new Blob([h],{type:"image/svg+xml;charset=utf-8"}),p=URL.createObjectURL(m),b=document.createElement("a");b.href=p,b.download="sankey-chart.svg",b.click(),window.setTimeout(()=>URL.revokeObjectURL(p),0)},g=({active:a,payload:h})=>{if(!a||!h?.length)return null;let m=h[0]?.payload,p=Le(m);if(!p)return null;let b=J(p),O=Q(m)?m.value:h[0]?.value,L=Q(m)?m.name:void 0,I=Number(p.value??O??0),_=o.valueFormatter?o.valueFormatter(Number(p.value??O??0),b?p.originalEdge:void 0):`${p.value??O??""}`,H=b?Ne(p.source,p.sourceId):"",B=b?Ne(p.target,p.targetId):"",j=b?ee(p.title,p.label,p.name,p.originalEdge?.title,p.originalEdge?.label,p.originalEdge?.name,Oe(L),H&&B?`${H} \u2192 ${B}`:void 0):ee(p.title,Oe(L)),q=b?`${H} \u2192 ${B}`:"";if(x){let Be=b?{type:"link",edge:p.originalEdge,sourceNodeId:p.sourceId,sourceNodeTitle:H,targetNodeId:p.targetId,targetNodeTitle:B,value:Number.isFinite(I)?I:0,payload:p.originalEdge}:{type:"node",node:p,value:Number.isFinite(I)?I:0,payload:p},ne=x(Be);return ne?k(Nt,{children:ne}):null}return!j&&!q&&!_?null:D("div",{className:W(ut),style:R,children:[j?k("p",{className:W(Z,mt),style:{color:o.fontColor,overflowWrap:"anywhere"},children:j}):null,q?k("p",{className:W(Z,ft),style:{color:o.fontColor,overflowWrap:"anywhere"},children:q}):null,_?k("p",{className:W(Z,ht),style:{color:o.fontColor},children:_}):null]})},u={display:"flex",flexDirection:"column",gap:o.enableToolbar?12:0,width:o.width??"100%",height:v,minHeight:v,...n};return D("div",{className:W("cleen cleen-w-full",r),ref:y,style:u,children:[o.enableToolbar?D("div",{className:"cleen-flex cleen-items-center cleen-justify-end cleen-gap-2",children:[k("button",{type:"button",onClick:()=>c(null),disabled:!C,style:{backgroundColor:"rgba(var(--cleen-white))",border:"1px solid rgba(var(--cleen-gray-200))",borderRadius:8,color:o.fontColor,cursor:C?"pointer":"not-allowed",fontSize:13,fontWeight:600,opacity:C?1:.5,padding:"6px 10px"},children:"Reset focus"}),k("button",{type:"button",onClick:f,style:{backgroundColor:"rgba(var(--cleen-white))",border:"1px solid rgba(var(--cleen-gray-200))",borderRadius:8,color:o.fontColor,cursor:"pointer",fontSize:13,fontWeight:600,padding:"6px 10px"},children:"Download SVG"})]}):null,k("div",{style:{flex:1,minHeight:0},children:k(st,{width:"100%",height:"100%",children:k(ct,{data:A,align:o.align,margin:w,node:k(kt,{dimOnHover:o.dimOnHover,dimOpacity:o.dimOpacity,fontColor:o.fontColor??E.fontColor??"rgba(var(--cleen-neutral-800, 38, 38, 38))",highlightOnHover:o.highlightOnHover,hoverState:C,outgoingEdgesById:N,stroke:o.nodeBorderColor??"transparent",strokeWidth:o.nodeBorderWidth}),nodePadding:o.nodePadding,nodeWidth:o.nodeWidth,link:k(At,{chartId:T,dimOnHover:o.dimOnHover,dimOpacity:o.dimOpacity,edgeGradientFill:o.edgeGradientFill,highlightOnHover:o.highlightOnHover,hoverState:C,opacity:o.edgeOpacity}),onClick:(a,h)=>{h==="node"&&d&&Ae(a.payload)&&d(a.payload)},onMouseEnter:i,onMouseLeave:l,children:o.enableTooltip?k(lt,{content:k(g,{}),cursor:!1,allowEscapeViewBox:{x:!1,y:!0},isAnimationActive:!1,wrapperStyle:{transition:"none"}}):null})})})]})}import{applyDefaults as Ot}from"@cleen/ui-core";import{forwardRef as Rt,useEffect as _e,useMemo as He,useRef as V,useState as wt}from"react";var Ie={chart:{type:"treemap",zoom:{enabled:!1},toolbar:{show:!1}},legend:{show:!1},dataLabels:{enabled:!0,style:{fontSize:"12px",fontWeight:400}},plotOptions:{treemap:{enableShades:!0,distributed:!1}},title:{align:"left",style:{color:"rgba(var(--cleen-black))"}}};import{jsx as K,jsxs as Lt}from"react/jsx-runtime";var re=(e,t)=>e.length!==t.length?!1:e.every((r,n)=>{let d=t[n];return Math.round(r.x)===Math.round(d.x)&&Math.round(r.y)===Math.round(d.y)&&Math.round(r.width)===Math.round(d.width)&&Math.round(r.height)===Math.round(d.height)}),Pt=Rt(function({options:t,labelLayout:r="apex",renderTileLabel:n,className:d,style:x,...y},C){let c=V(null),[S,T]=wt([]),o=r==="overlay"&&typeof n=="function",v=V(()=>null);v.current=()=>{let i=c.current;if(!i)return null;let l=i.getBoundingClientRect(),f=i.querySelectorAll(".apexcharts-treemap-rect");return f.length?Array.from(f).map((g,u)=>{let a=g.getBoundingClientRect();return{x:a.left-l.left,y:a.top-l.top,width:a.width,height:a.height,dataIndex:u}}):null};let s=V(0),A=V(()=>{});A.current=()=>{cancelAnimationFrame(s.current);let i=0,l=null,f=()=>{let g=v.current();if(g&&l&&re(l,g)){T(u=>re(u,g)?u:g);return}g&&(l=g),i<30?(i++,s.current=requestAnimationFrame(f)):g&&T(u=>re(u,g)?u:g)};s.current=requestAnimationFrame(f)};let N=He(()=>{let i=Ot(Ie,t??{});if(!o)return i;let l=i.chart?.events??{},f=g=>(...u)=>{A.current(),g?.(...u)};return{...i,dataLabels:{...i.dataLabels,enabled:!1},chart:{...i.chart,animations:{enabled:!1},events:{...l,mounted:f(l.mounted),updated:f(l.updated)}}}},[t,o]);_e(()=>{if(o)return A.current(),()=>cancelAnimationFrame(s.current)},[o]),_e(()=>{if(!o)return;let i=c.current;if(!i||typeof ResizeObserver>"u")return;let l=new ResizeObserver(()=>A.current());return l.observe(i),()=>l.disconnect()},[o]);let R=He(()=>{let i=y.series;return!Array.isArray(i)||i.length===0?[]:(i[0]??{}).data??[]},[y.series]);if(!o)return K(P,{type:"treemap",ref:C,options:N,className:d,style:x,...y});let w={...x,position:"relative"};return Lt("div",{ref:c,className:d,style:w,children:[K(P,{type:"treemap",ref:C,options:N,...y}),S.length>0&&K("div",{style:{position:"absolute",inset:0,pointerEvents:"none",overflow:"hidden"},children:S.map(i=>K("div",{style:{position:"absolute",left:i.x,top:i.y,width:i.width,height:i.height},children:n({point:R[i.dataIndex],width:i.width,height:i.height})},i.dataIndex))})]})});import"react";import{jsx as oe,jsxs as It}from"react/jsx-runtime";var Et=({width:e=240,height:t=80,data:r=[12,28,18,30,24,36],className:n="",style:d})=>{let x=Math.max(...r,1),y=r.map((C,c)=>`${c/(r.length-1)*e},${t-C/x*t}`).join(" ");return It("svg",{width:e,height:t,viewBox:`0 0 ${e} ${t}`,className:n,style:d,role:"img","aria-label":"Simple line chart",children:[oe("rect",{width:"100%",height:"100%",fill:"transparent"}),oe("polyline",{fill:"none",stroke:"rgba(59,130,246,0.9)",strokeWidth:2,points:y,strokeLinecap:"round",strokeLinejoin:"round"}),oe("polygon",{points:`${y} ${e},${t} 0,${t}`,fill:"rgba(59,130,246,0.08)"})]})};export{Ue as BarChart,Ke as BellCurve,ie as Chart,Ze as RadarChart,Tt as SankeyChart,rt as ScatterChart,Et as SimpleChart,Pt as TreemapChart};
|
package/dist/index.d.ts
CHANGED
|
@@ -1169,8 +1169,33 @@ interface InfoLabelsProps extends ComponentProps<'div'> {
|
|
|
1169
1169
|
*/
|
|
1170
1170
|
declare const InfoLabels: ({ className, classNames, style, styles, infoMessage, errorMessage, subtitle, ...props }: InfoLabelsProps) => react_jsx_runtime.JSX.Element;
|
|
1171
1171
|
|
|
1172
|
+
interface LabelProps extends ComponentProps<'label'> {
|
|
1173
|
+
required?: boolean;
|
|
1174
|
+
tooltip?: ReactNode;
|
|
1175
|
+
classNames?: {
|
|
1176
|
+
container?: string;
|
|
1177
|
+
label?: string;
|
|
1178
|
+
required?: string;
|
|
1179
|
+
tooltip?: ComponentClassnames<TooltipProps>;
|
|
1180
|
+
questionIcon?: string;
|
|
1181
|
+
};
|
|
1182
|
+
styles?: {
|
|
1183
|
+
container?: CSSProperties;
|
|
1184
|
+
label?: CSSProperties;
|
|
1185
|
+
required?: CSSProperties;
|
|
1186
|
+
tooltip?: ComponentStyles<TooltipProps>;
|
|
1187
|
+
questionIcon?: CSSProperties;
|
|
1188
|
+
};
|
|
1189
|
+
}
|
|
1190
|
+
/**
|
|
1191
|
+
* The `Label` component is a simple wrapper around the HTML `<label>` element, with optional support for a required indicator and custom class names and styles.
|
|
1192
|
+
*/
|
|
1193
|
+
declare const Label: ({ required, tooltip, children, className, classNames, style, styles, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
1194
|
+
|
|
1172
1195
|
interface InputProps extends ComponentProps<'input'> {
|
|
1173
1196
|
label?: ReactNode;
|
|
1197
|
+
labelTooltip?: ReactNode;
|
|
1198
|
+
files?: FileList | null;
|
|
1174
1199
|
uploadLabel?: ReactNode;
|
|
1175
1200
|
leftIcon?: ReactNode;
|
|
1176
1201
|
rightIcon?: ReactNode;
|
|
@@ -1183,7 +1208,7 @@ interface InputProps extends ComponentProps<'input'> {
|
|
|
1183
1208
|
infoLabels?: InfoLabelsProps;
|
|
1184
1209
|
classNames?: {
|
|
1185
1210
|
container?: string;
|
|
1186
|
-
label?:
|
|
1211
|
+
label?: ComponentClassnames<LabelProps>;
|
|
1187
1212
|
inputContainer?: string;
|
|
1188
1213
|
input?: string;
|
|
1189
1214
|
leftIconContainer?: string;
|
|
@@ -1193,7 +1218,7 @@ interface InputProps extends ComponentProps<'input'> {
|
|
|
1193
1218
|
};
|
|
1194
1219
|
styles?: {
|
|
1195
1220
|
container?: CSSProperties;
|
|
1196
|
-
label?:
|
|
1221
|
+
label?: ComponentStyles<LabelProps>;
|
|
1197
1222
|
inputContainer?: CSSProperties;
|
|
1198
1223
|
input?: CSSProperties;
|
|
1199
1224
|
leftIconContainer?: CSSProperties;
|
|
@@ -1259,6 +1284,7 @@ declare const EditableText: react.ForwardRefExoticComponent<Omit<EditableTextPro
|
|
|
1259
1284
|
|
|
1260
1285
|
type TextAreaProps = Omit<ComponentProps<'textarea'>, 'onChange'> & {
|
|
1261
1286
|
label?: ReactNode;
|
|
1287
|
+
labelTooltip?: ReactNode;
|
|
1262
1288
|
value?: string;
|
|
1263
1289
|
minHeight?: number;
|
|
1264
1290
|
maxHeight?: number;
|
|
@@ -1273,14 +1299,14 @@ type TextAreaProps = Omit<ComponentProps<'textarea'>, 'onChange'> & {
|
|
|
1273
1299
|
textareaOverlay?: ReactNode;
|
|
1274
1300
|
classNames?: {
|
|
1275
1301
|
container?: string;
|
|
1276
|
-
label?:
|
|
1302
|
+
label?: ComponentClassnames<LabelProps>;
|
|
1277
1303
|
textareaContainer?: string;
|
|
1278
1304
|
textarea?: string;
|
|
1279
1305
|
lengthLabel?: string;
|
|
1280
1306
|
};
|
|
1281
1307
|
styles?: {
|
|
1282
1308
|
container?: CSSProperties;
|
|
1283
|
-
label?:
|
|
1309
|
+
label?: ComponentStyles<LabelProps>;
|
|
1284
1310
|
textareaContainer?: CSSProperties;
|
|
1285
1311
|
textarea?: CSSProperties;
|
|
1286
1312
|
lengthLabel?: CSSProperties;
|
|
@@ -1422,7 +1448,9 @@ type CanvasButtonProps = ComponentProps<'button'> & {
|
|
|
1422
1448
|
declare const CanvasButton: react.ForwardRefExoticComponent<Omit<CanvasButtonProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
|
|
1423
1449
|
|
|
1424
1450
|
type CalendarBase = Omit<DayPickerProps, 'classNames' | 'styles' | 'mode' | 'disabled'> & {
|
|
1451
|
+
required?: boolean;
|
|
1425
1452
|
label?: ReactNode;
|
|
1453
|
+
labelTooltip?: ReactNode;
|
|
1426
1454
|
withTodayButton?: boolean;
|
|
1427
1455
|
withDateInput?: boolean;
|
|
1428
1456
|
min?: Date | 'today';
|
|
@@ -1433,11 +1461,11 @@ type CalendarBase = Omit<DayPickerProps, 'classNames' | 'styles' | 'mode' | 'dis
|
|
|
1433
1461
|
today?: ReactNode;
|
|
1434
1462
|
};
|
|
1435
1463
|
classNames?: {
|
|
1436
|
-
label?:
|
|
1464
|
+
label?: ComponentClassnames<LabelProps>;
|
|
1437
1465
|
calendar?: ComponentClassnames<DayPickerProps>;
|
|
1438
1466
|
};
|
|
1439
1467
|
styles?: {
|
|
1440
|
-
label?:
|
|
1468
|
+
label?: ComponentStyles<LabelProps>;
|
|
1441
1469
|
calendar?: ComponentStyles<DayPickerProps>;
|
|
1442
1470
|
};
|
|
1443
1471
|
};
|
|
@@ -1465,7 +1493,9 @@ type DropdownProps = Omit<ComponentProps<'div'>, 'title'> & {
|
|
|
1465
1493
|
type?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
1466
1494
|
disabled?: boolean;
|
|
1467
1495
|
title?: ReactNode;
|
|
1496
|
+
titleTooltip?: ReactNode;
|
|
1468
1497
|
label?: ReactNode;
|
|
1498
|
+
required?: boolean;
|
|
1469
1499
|
fullWidth?: boolean;
|
|
1470
1500
|
fullWidthDropdown?: boolean;
|
|
1471
1501
|
offset?: number;
|
|
@@ -1479,14 +1509,14 @@ type DropdownProps = Omit<ComponentProps<'div'>, 'title'> & {
|
|
|
1479
1509
|
classNames?: {
|
|
1480
1510
|
container?: string;
|
|
1481
1511
|
label?: string;
|
|
1482
|
-
title?:
|
|
1512
|
+
title?: ComponentClassnames<LabelProps>;
|
|
1483
1513
|
trigger?: string;
|
|
1484
1514
|
dropdown?: string;
|
|
1485
1515
|
};
|
|
1486
1516
|
styles?: {
|
|
1487
1517
|
container?: CSSProperties;
|
|
1488
1518
|
label?: CSSProperties;
|
|
1489
|
-
title?:
|
|
1519
|
+
title?: ComponentStyles<LabelProps>;
|
|
1490
1520
|
trigger?: CSSProperties;
|
|
1491
1521
|
dropdown?: CSSProperties;
|
|
1492
1522
|
};
|
|
@@ -1559,6 +1589,7 @@ type CheckboxProps = Omit<ComponentProps<'input'>, 'title'> & {
|
|
|
1559
1589
|
checked?: boolean | null;
|
|
1560
1590
|
defaultChecked?: boolean;
|
|
1561
1591
|
title?: ReactNode;
|
|
1592
|
+
titleTooltip?: ReactNode;
|
|
1562
1593
|
label?: ReactNode;
|
|
1563
1594
|
sublabel?: ReactNode;
|
|
1564
1595
|
variant?: keyof typeof checkedVariants;
|
|
@@ -1566,7 +1597,7 @@ type CheckboxProps = Omit<ComponentProps<'input'>, 'title'> & {
|
|
|
1566
1597
|
fullTriggerArea?: boolean;
|
|
1567
1598
|
classNames?: {
|
|
1568
1599
|
container?: string;
|
|
1569
|
-
title?:
|
|
1600
|
+
title?: ComponentClassnames<LabelProps>;
|
|
1570
1601
|
checkboxContainer?: string;
|
|
1571
1602
|
checkbox?: string;
|
|
1572
1603
|
label?: string;
|
|
@@ -1574,7 +1605,7 @@ type CheckboxProps = Omit<ComponentProps<'input'>, 'title'> & {
|
|
|
1574
1605
|
};
|
|
1575
1606
|
styles?: {
|
|
1576
1607
|
container?: CSSProperties;
|
|
1577
|
-
title?:
|
|
1608
|
+
title?: ComponentStyles<LabelProps>;
|
|
1578
1609
|
checkboxContainer?: CSSProperties;
|
|
1579
1610
|
checkbox?: CSSProperties;
|
|
1580
1611
|
label?: CSSProperties;
|
|
@@ -1596,7 +1627,9 @@ type CheckboxProps = Omit<ComponentProps<'input'>, 'title'> & {
|
|
|
1596
1627
|
declare const Checkbox: react.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
|
|
1597
1628
|
|
|
1598
1629
|
interface CheckboxGroupProps extends Omit<ComponentProps<'div'>, 'onChange'> {
|
|
1630
|
+
required?: boolean;
|
|
1599
1631
|
label?: ReactNode;
|
|
1632
|
+
labelTooltip?: ReactNode;
|
|
1600
1633
|
checkboxes?: CheckboxProps[];
|
|
1601
1634
|
onChange?: (checkbox: CheckboxProps, checkboxArray?: CheckboxProps[]) => void;
|
|
1602
1635
|
allowIndeterminate?: boolean;
|
|
@@ -1607,7 +1640,7 @@ interface CheckboxGroupProps extends Omit<ComponentProps<'div'>, 'onChange'> {
|
|
|
1607
1640
|
};
|
|
1608
1641
|
classNames?: {
|
|
1609
1642
|
container?: string;
|
|
1610
|
-
label?:
|
|
1643
|
+
label?: ComponentClassnames<LabelProps>;
|
|
1611
1644
|
checkboxes?: string;
|
|
1612
1645
|
checkboxContainer?: string;
|
|
1613
1646
|
requiresAtLeastOne?: {
|
|
@@ -1618,7 +1651,7 @@ interface CheckboxGroupProps extends Omit<ComponentProps<'div'>, 'onChange'> {
|
|
|
1618
1651
|
};
|
|
1619
1652
|
styles?: {
|
|
1620
1653
|
container?: CSSProperties;
|
|
1621
|
-
label?:
|
|
1654
|
+
label?: ComponentStyles<LabelProps>;
|
|
1622
1655
|
checkboxes?: CSSProperties;
|
|
1623
1656
|
checkboxContainer?: CSSProperties;
|
|
1624
1657
|
requiresAtLeastOne?: {
|
|
@@ -1638,7 +1671,7 @@ interface CheckboxGroupProps extends Omit<ComponentProps<'div'>, 'onChange'> {
|
|
|
1638
1671
|
* - Use `infoLabels` for static error, info, or subtitle messages below the group.
|
|
1639
1672
|
* - Accepts `classNames` and `styles` to customize: `container`, `label`, `checkboxes`, `checkboxContainer`, `requiresAtLeastOne`.
|
|
1640
1673
|
*/
|
|
1641
|
-
declare const CheckboxGroup: ({ label, checkboxes, allowIndeterminate, infoLabels, requiresAtLeastOneOptions, classNames, styles, onChange, ...props }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1674
|
+
declare const CheckboxGroup: ({ required, label, labelTooltip, checkboxes, allowIndeterminate, infoLabels, requiresAtLeastOneOptions, classNames, styles, onChange, ...props }: CheckboxGroupProps) => react_jsx_runtime.JSX.Element;
|
|
1642
1675
|
|
|
1643
1676
|
interface CollapsibleItem {
|
|
1644
1677
|
content: ReactNode;
|
|
@@ -1686,21 +1719,23 @@ declare const Collapsible: react.ForwardRefExoticComponent<Omit<CollapsibleProps
|
|
|
1686
1719
|
|
|
1687
1720
|
type ColorModel = 'rgba' | 'hexa';
|
|
1688
1721
|
interface ColorPickerProps extends Omit<ComponentProps<'div'>, 'onChange' | 'defaultValue'> {
|
|
1722
|
+
required?: boolean;
|
|
1689
1723
|
value?: string;
|
|
1690
1724
|
defaultValue?: string;
|
|
1691
1725
|
onChange?: (value: string) => void;
|
|
1692
1726
|
colorModel?: ColorModel;
|
|
1693
1727
|
disabled?: boolean;
|
|
1694
1728
|
label?: ReactNode;
|
|
1729
|
+
labelTooltip?: ReactNode;
|
|
1695
1730
|
infoLabels?: InfoLabelsProps;
|
|
1696
1731
|
classNames?: {
|
|
1697
1732
|
container?: string;
|
|
1698
|
-
label?:
|
|
1733
|
+
label?: ComponentClassnames<LabelProps>;
|
|
1699
1734
|
picker?: string;
|
|
1700
1735
|
};
|
|
1701
1736
|
styles?: {
|
|
1702
1737
|
container?: CSSProperties;
|
|
1703
|
-
label?:
|
|
1738
|
+
label?: ComponentStyles<LabelProps>;
|
|
1704
1739
|
picker?: CSSProperties;
|
|
1705
1740
|
};
|
|
1706
1741
|
}
|
|
@@ -1714,7 +1749,7 @@ interface ColorPickerProps extends Omit<ComponentProps<'div'>, 'onChange' | 'def
|
|
|
1714
1749
|
* - Use `infoLabels` to show error, info, or subtitle messages below the picker.
|
|
1715
1750
|
* - Accepts `classNames` and `styles` to customize: `container`, `label`, `picker`.
|
|
1716
1751
|
*/
|
|
1717
|
-
declare const ColorPicker: ({ value, defaultValue, onChange, colorModel, disabled, label, className, classNames, style, styles, infoLabels, ...props }: ColorPickerProps) => react_jsx_runtime.JSX.Element;
|
|
1752
|
+
declare const ColorPicker: ({ required, value, defaultValue, onChange, colorModel, disabled, label, labelTooltip, className, classNames, style, styles, infoLabels, ...props }: ColorPickerProps) => react_jsx_runtime.JSX.Element;
|
|
1718
1753
|
|
|
1719
1754
|
declare function parseRgbaString(rgba: string): RgbaColor;
|
|
1720
1755
|
|
|
@@ -1914,6 +1949,7 @@ interface DropzoneProps extends NativeInputProps {
|
|
|
1914
1949
|
onFileUpload?: (file: FileEntry, updateFile?: (patch: Partial<FileEntry>) => void) => Promise<FileEntry | void>;
|
|
1915
1950
|
onFileRemove?: (id: string) => Promise<void>;
|
|
1916
1951
|
label?: ReactNode;
|
|
1952
|
+
labelTooltip?: ReactNode;
|
|
1917
1953
|
labels?: {
|
|
1918
1954
|
primaryText?: ReactNode;
|
|
1919
1955
|
secondaryText?: ReactNode;
|
|
@@ -1928,7 +1964,7 @@ interface DropzoneProps extends NativeInputProps {
|
|
|
1928
1964
|
className?: string;
|
|
1929
1965
|
style?: CSSProperties;
|
|
1930
1966
|
classNames?: {
|
|
1931
|
-
label?:
|
|
1967
|
+
label?: ComponentClassnames<LabelProps>;
|
|
1932
1968
|
card?: ComponentClassnames<CardProps>;
|
|
1933
1969
|
cardDragActive?: string;
|
|
1934
1970
|
dropArea?: string;
|
|
@@ -1941,7 +1977,7 @@ interface DropzoneProps extends NativeInputProps {
|
|
|
1941
1977
|
fileCard?: FileCardProps['classNames'];
|
|
1942
1978
|
};
|
|
1943
1979
|
styles?: {
|
|
1944
|
-
label?:
|
|
1980
|
+
label?: ComponentStyles<LabelProps>;
|
|
1945
1981
|
card?: ComponentStyles<CardProps>;
|
|
1946
1982
|
cardDragActive?: CSSProperties;
|
|
1947
1983
|
dropArea?: CSSProperties;
|
|
@@ -1986,22 +2022,24 @@ interface FilterDrawerSavedFilter {
|
|
|
1986
2022
|
}
|
|
1987
2023
|
|
|
1988
2024
|
type SwitchProps = Omit<ComponentProps<'button'>, 'onChange' | 'title'> & {
|
|
2025
|
+
required?: boolean;
|
|
1989
2026
|
checked?: boolean;
|
|
1990
2027
|
defaultChecked?: boolean;
|
|
1991
2028
|
title?: ReactNode;
|
|
1992
2029
|
label?: ReactNode;
|
|
2030
|
+
labelTooltip?: ReactNode;
|
|
1993
2031
|
sublabel?: ReactNode;
|
|
1994
2032
|
onChange?: (value: boolean) => void;
|
|
1995
2033
|
infoLabels?: InfoLabelsProps;
|
|
1996
2034
|
classNames?: {
|
|
1997
2035
|
container?: string;
|
|
1998
|
-
title?:
|
|
2036
|
+
title?: ComponentClassnames<LabelProps>;
|
|
1999
2037
|
switch?: string;
|
|
2000
2038
|
check?: string;
|
|
2001
2039
|
};
|
|
2002
2040
|
styles?: {
|
|
2003
2041
|
container?: CSSProperties;
|
|
2004
|
-
title?:
|
|
2042
|
+
title?: ComponentStyles<LabelProps>;
|
|
2005
2043
|
switch?: CSSProperties;
|
|
2006
2044
|
check?: CSSProperties;
|
|
2007
2045
|
};
|
|
@@ -2013,7 +2051,7 @@ type SwitchProps = Omit<ComponentProps<'button'>, 'onChange' | 'title'> & {
|
|
|
2013
2051
|
* - Pass `title` for a heading row above the switch, `label` for primary text, and `sublabel` for secondary text beside it.
|
|
2014
2052
|
* - Accepts `classNames` and `styles` for keys: `container`, `title`, `switch`, `check`.
|
|
2015
2053
|
*/
|
|
2016
|
-
declare const Switch: ({ checked, defaultChecked, onChange, title, label, sublabel, disabled, classNames, className, style, styles, infoLabels, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
|
|
2054
|
+
declare const Switch: ({ required, checked, defaultChecked, onChange, title, label, labelTooltip, sublabel, disabled, classNames, className, style, styles, infoLabels, ...props }: SwitchProps) => react_jsx_runtime.JSX.Element;
|
|
2017
2055
|
|
|
2018
2056
|
interface FilterDrawerLabels {
|
|
2019
2057
|
title?: ReactNode;
|
|
@@ -2118,31 +2156,24 @@ type FilterDrawerProps = DrawerProps & FilterDrawerStandaloneProps;
|
|
|
2118
2156
|
*/
|
|
2119
2157
|
declare const FilterDrawer: react.ForwardRefExoticComponent<Omit<FilterDrawerProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
2120
2158
|
|
|
2121
|
-
interface FormGroupProps extends ComponentProps<'div'> {
|
|
2122
|
-
title:
|
|
2123
|
-
|
|
2159
|
+
interface FormGroupProps extends Omit<ComponentProps<'div'>, 'title'> {
|
|
2160
|
+
title: ReactNode;
|
|
2161
|
+
titleTooltip?: ReactNode;
|
|
2162
|
+
subtitle?: ReactNode;
|
|
2124
2163
|
required?: boolean;
|
|
2125
|
-
requiredMark?: ReactNode;
|
|
2126
|
-
tooltipDescription?: string;
|
|
2127
2164
|
children?: ReactNode;
|
|
2128
2165
|
classNames?: {
|
|
2129
2166
|
container?: string;
|
|
2130
2167
|
titleColumn?: string;
|
|
2131
2168
|
controlsRow?: string;
|
|
2132
|
-
|
|
2133
|
-
tooltip?: ComponentClassnames<TooltipProps>;
|
|
2134
|
-
questionIcon?: string;
|
|
2135
|
-
title?: string;
|
|
2169
|
+
title?: ComponentClassnames<LabelProps>;
|
|
2136
2170
|
subtitle?: string;
|
|
2137
2171
|
};
|
|
2138
2172
|
styles?: {
|
|
2139
2173
|
container?: CSSProperties;
|
|
2140
2174
|
titleColumn?: CSSProperties;
|
|
2141
2175
|
controlsRow?: CSSProperties;
|
|
2142
|
-
|
|
2143
|
-
tooltip?: ComponentStyles<TooltipProps>;
|
|
2144
|
-
questionIcon?: CSSProperties;
|
|
2145
|
-
title?: CSSProperties;
|
|
2176
|
+
title?: ComponentStyles<LabelProps>;
|
|
2146
2177
|
subtitle?: CSSProperties;
|
|
2147
2178
|
};
|
|
2148
2179
|
}
|
|
@@ -2315,6 +2346,7 @@ type LookupOptionListProps = ComponentProps<'div'> & {
|
|
|
2315
2346
|
|
|
2316
2347
|
type LookupProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'> & {
|
|
2317
2348
|
label?: ReactNode;
|
|
2349
|
+
labelTooltip?: ReactNode;
|
|
2318
2350
|
labels?: {
|
|
2319
2351
|
noDataFound?: ReactNode;
|
|
2320
2352
|
};
|
|
@@ -2337,7 +2369,7 @@ type LookupProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'> & {
|
|
|
2337
2369
|
zIndex?: number;
|
|
2338
2370
|
classNames?: {
|
|
2339
2371
|
container?: string;
|
|
2340
|
-
label?:
|
|
2372
|
+
label?: ComponentClassnames<LabelProps>;
|
|
2341
2373
|
input?: {
|
|
2342
2374
|
container?: string;
|
|
2343
2375
|
inlineBadgeContainer?: string;
|
|
@@ -2361,7 +2393,7 @@ type LookupProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'> & {
|
|
|
2361
2393
|
};
|
|
2362
2394
|
styles?: {
|
|
2363
2395
|
container?: CSSProperties;
|
|
2364
|
-
label?:
|
|
2396
|
+
label?: ComponentStyles<LabelProps>;
|
|
2365
2397
|
input?: {
|
|
2366
2398
|
container?: CSSProperties;
|
|
2367
2399
|
inlineBadgeContainer?: CSSProperties;
|
|
@@ -2774,13 +2806,15 @@ interface RadioButtonGroupProps {
|
|
|
2774
2806
|
name?: string;
|
|
2775
2807
|
defaultActiveId?: string | number;
|
|
2776
2808
|
label?: ReactNode;
|
|
2809
|
+
labelTooltip?: ReactNode;
|
|
2810
|
+
required?: boolean;
|
|
2777
2811
|
value?: string | number;
|
|
2778
2812
|
onChange?: (value: string | number) => void;
|
|
2779
2813
|
radioPosition?: 'left' | 'right' | 'hidden';
|
|
2780
2814
|
direction?: 'vertical' | 'horizontal';
|
|
2781
2815
|
classNames?: {
|
|
2782
2816
|
container?: string;
|
|
2783
|
-
label?:
|
|
2817
|
+
label?: ComponentClassnames<LabelProps>;
|
|
2784
2818
|
radios?: string;
|
|
2785
2819
|
radioContainer?: string;
|
|
2786
2820
|
radioActive?: string;
|
|
@@ -2794,7 +2828,7 @@ interface RadioButtonGroupProps {
|
|
|
2794
2828
|
className?: string;
|
|
2795
2829
|
styles?: {
|
|
2796
2830
|
container?: CSSProperties;
|
|
2797
|
-
label?:
|
|
2831
|
+
label?: ComponentStyles<LabelProps>;
|
|
2798
2832
|
radios?: CSSProperties;
|
|
2799
2833
|
radioContainer?: CSSProperties;
|
|
2800
2834
|
radioActive?: CSSProperties;
|
|
@@ -2819,12 +2853,13 @@ interface RadioButtonGroupProps {
|
|
|
2819
2853
|
* - Flip radio indicator position with `radioPosition` (`left` | `right`).
|
|
2820
2854
|
* - Accepts `classNames` and `styles` for keys: `container`, `label`, `radios`, `radioContainer`, `radioActive`, `radioOuterCheckBox`, `radioLabelsContainer`, `radioTitle`, `radiotPostTitle`, `radioSubTitle`, `infoLabels`.
|
|
2821
2855
|
*/
|
|
2822
|
-
declare const RadioButtonGroup: ({ radios, label, className, classNames, style, styles, name, direction, radioPosition, defaultActiveId, value, infoLabels, onChange, }: RadioButtonGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2856
|
+
declare const RadioButtonGroup: ({ required, radios, label, labelTooltip, className, classNames, style, styles, name, direction, radioPosition, defaultActiveId, value, infoLabels, onChange, }: RadioButtonGroupProps) => react_jsx_runtime.JSX.Element;
|
|
2823
2857
|
|
|
2824
2858
|
type RatingLabels = {
|
|
2825
2859
|
helperText?: ReactNode;
|
|
2826
2860
|
};
|
|
2827
2861
|
type RatingProps = Omit<ComponentProps<'div'>, 'onChange'> & {
|
|
2862
|
+
required?: boolean;
|
|
2828
2863
|
value?: number;
|
|
2829
2864
|
onChange?: (value: number) => void;
|
|
2830
2865
|
amount?: number;
|
|
@@ -2834,11 +2869,12 @@ type RatingProps = Omit<ComponentProps<'div'>, 'onChange'> & {
|
|
|
2834
2869
|
readonly?: boolean;
|
|
2835
2870
|
color?: string;
|
|
2836
2871
|
label?: ReactNode;
|
|
2872
|
+
labelTooltip?: ReactNode;
|
|
2837
2873
|
labels?: RatingLabels;
|
|
2838
2874
|
infoLabels?: InfoLabelsProps;
|
|
2839
2875
|
classNames?: {
|
|
2840
2876
|
container?: string;
|
|
2841
|
-
label?:
|
|
2877
|
+
label?: ComponentClassnames<LabelProps>;
|
|
2842
2878
|
list?: string;
|
|
2843
2879
|
item?: string;
|
|
2844
2880
|
value?: string;
|
|
@@ -2846,7 +2882,7 @@ type RatingProps = Omit<ComponentProps<'div'>, 'onChange'> & {
|
|
|
2846
2882
|
};
|
|
2847
2883
|
styles?: {
|
|
2848
2884
|
container?: CSSProperties;
|
|
2849
|
-
label?:
|
|
2885
|
+
label?: ComponentStyles<LabelProps>;
|
|
2850
2886
|
list?: CSSProperties;
|
|
2851
2887
|
item?: CSSProperties;
|
|
2852
2888
|
value?: CSSProperties;
|
|
@@ -2874,6 +2910,7 @@ type SelectOptionData = {
|
|
|
2874
2910
|
interface SelectProps extends Omit<ComponentPropsWithoutRef<ReactSelect>, 'isDisabled' | 'options'> {
|
|
2875
2911
|
options?: SelectOptionData[];
|
|
2876
2912
|
label?: ReactNode;
|
|
2913
|
+
labelTooltip?: ReactNode;
|
|
2877
2914
|
sublabel?: ReactNode;
|
|
2878
2915
|
emboldenOptions?: boolean;
|
|
2879
2916
|
disabled?: boolean;
|
|
@@ -2885,7 +2922,7 @@ interface SelectProps extends Omit<ComponentPropsWithoutRef<ReactSelect>, 'isDis
|
|
|
2885
2922
|
cleenContainer?: string;
|
|
2886
2923
|
labels?: {
|
|
2887
2924
|
container?: string;
|
|
2888
|
-
label?:
|
|
2925
|
+
label?: ComponentClassnames<LabelProps>;
|
|
2889
2926
|
sublabel?: string;
|
|
2890
2927
|
};
|
|
2891
2928
|
inputOuterContainer?: string;
|
|
@@ -2895,7 +2932,7 @@ interface SelectProps extends Omit<ComponentPropsWithoutRef<ReactSelect>, 'isDis
|
|
|
2895
2932
|
cleenContainer?: CSSProperties;
|
|
2896
2933
|
labels?: {
|
|
2897
2934
|
container?: CSSProperties;
|
|
2898
|
-
label?:
|
|
2935
|
+
label?: ComponentStyles<LabelProps>;
|
|
2899
2936
|
sublabel?: CSSProperties;
|
|
2900
2937
|
};
|
|
2901
2938
|
};
|
|
@@ -3298,6 +3335,7 @@ interface SkeletonWrapperProps extends SkeletonComponentProps {
|
|
|
3298
3335
|
declare const SkeletonWrapper: react.ForwardRefExoticComponent<SkeletonWrapperProps & react.RefAttributes<HTMLDivElement>>;
|
|
3299
3336
|
|
|
3300
3337
|
interface SliderProps {
|
|
3338
|
+
required?: boolean;
|
|
3301
3339
|
minValue?: number;
|
|
3302
3340
|
maxValue?: number;
|
|
3303
3341
|
step?: number;
|
|
@@ -3309,6 +3347,7 @@ interface SliderProps {
|
|
|
3309
3347
|
className?: string;
|
|
3310
3348
|
classNames?: {
|
|
3311
3349
|
container?: string;
|
|
3350
|
+
label?: ComponentClassnames<LabelProps>;
|
|
3312
3351
|
slider?: string;
|
|
3313
3352
|
track?: string;
|
|
3314
3353
|
path?: string;
|
|
@@ -3318,6 +3357,7 @@ interface SliderProps {
|
|
|
3318
3357
|
style?: CSSProperties;
|
|
3319
3358
|
styles?: {
|
|
3320
3359
|
container?: CSSProperties;
|
|
3360
|
+
label?: ComponentStyles<LabelProps>;
|
|
3321
3361
|
slider?: CSSProperties;
|
|
3322
3362
|
track?: CSSProperties;
|
|
3323
3363
|
path?: CSSProperties;
|
|
@@ -3326,6 +3366,7 @@ interface SliderProps {
|
|
|
3326
3366
|
};
|
|
3327
3367
|
disabled?: boolean;
|
|
3328
3368
|
label?: ReactNode;
|
|
3369
|
+
labelTooltip?: ReactNode;
|
|
3329
3370
|
labels?: {
|
|
3330
3371
|
minLabel?: ReactNode;
|
|
3331
3372
|
maxLabel?: ReactNode;
|
|
@@ -3345,7 +3386,7 @@ interface SliderProps {
|
|
|
3345
3386
|
declare const Slider: react__default.FC<SliderProps>;
|
|
3346
3387
|
|
|
3347
3388
|
interface SliderRangeProps {
|
|
3348
|
-
|
|
3389
|
+
required?: boolean;
|
|
3349
3390
|
minValue?: number;
|
|
3350
3391
|
maxValue?: number;
|
|
3351
3392
|
step?: number;
|
|
@@ -3357,6 +3398,7 @@ interface SliderRangeProps {
|
|
|
3357
3398
|
className?: string;
|
|
3358
3399
|
classNames?: {
|
|
3359
3400
|
container?: string;
|
|
3401
|
+
label?: ComponentClassnames<LabelProps>;
|
|
3360
3402
|
slider?: string;
|
|
3361
3403
|
track?: string;
|
|
3362
3404
|
filledTrack?: string;
|
|
@@ -3365,6 +3407,7 @@ interface SliderRangeProps {
|
|
|
3365
3407
|
style?: CSSProperties;
|
|
3366
3408
|
styles?: {
|
|
3367
3409
|
container?: CSSProperties;
|
|
3410
|
+
label?: ComponentStyles<LabelProps>;
|
|
3368
3411
|
slider?: CSSProperties;
|
|
3369
3412
|
track?: CSSProperties;
|
|
3370
3413
|
filledTrack?: CSSProperties;
|
|
@@ -3372,6 +3415,7 @@ interface SliderRangeProps {
|
|
|
3372
3415
|
};
|
|
3373
3416
|
disabled?: boolean;
|
|
3374
3417
|
label?: ReactNode;
|
|
3418
|
+
labelTooltip?: ReactNode;
|
|
3375
3419
|
labels?: {
|
|
3376
3420
|
minLabel?: ReactNode;
|
|
3377
3421
|
maxLabel?: ReactNode;
|
|
@@ -3504,4 +3548,4 @@ type TabsProps = ComponentProps<'div'> & {
|
|
|
3504
3548
|
*/
|
|
3505
3549
|
declare const Tabs: react.ForwardRefExoticComponent<Omit<TabsProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
3506
3550
|
|
|
3507
|
-
export { AdvancedProgressBar, type AdvancedProgressBarProps, AudioPlayback, type AudioPlaybackProps, AudioRecorder, type AudioRecorderProps, Avatar, type AvatarProps, AvatarRow, type AvatarRowProps, Breadcrumb, type BreadcrumbProps, Button, type ButtonProps, type ButtonVariant, Calendar, CalendarDropdown, type CalendarDropdownProps, type CalendarProps, CanvasButton, Card, CardIcon, type CardIconProps, CardMedia, type CardMediaProps, type Media as CardMediaType, type CardProps, Carousel, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CleenIcon, CleenNotificationContainer, Collapsible, type CollapsibleProps, type CollapsibleSection, type ColorModel, ColorPicker, type ColorPickerProps, CreditCardInput, type CreditCardInputProps, Divider, type DividerProps, Drawer, type DrawerConfig, DrawerContainer, type DrawerContainerProps, DrawerContentTitle, type DrawerContentTitleProps, type DrawerProps, Dropdown, type DropdownProps, Dropzone, type DropzoneProps, EditableCard, type EditableCardField, type EditableCardProps, EditableText, EditableTextArea, type EditableTextAreaProps, type EditableTextAreaRef, type EditableTextProps, type EditableTextRef, FilterDrawer, type FilterDrawerFilterCategories, type FilterDrawerNewFilter, type FilterDrawerProps, type FilterDrawerSavedFilter, FormGroup, type FormGroupProps, GroupSelector, type GroupSelectorProps, type GroupSelectorSaveResult, type GroupSelectorThreeDotOption, IconAlertCircle, IconAlertFeatured, IconAlertOctagon, IconAlertTriangle, IconAlignRight, IconArrowDown, IconArrowLeft, IconArrowLeft2, IconArrowRight, IconArrowToTop, IconArrowUp, IconArrowUpRight, IconArrowUpRightNarrow, IconArrowUpRightSquare, IconAttachment, IconBarChartSquare, IconBold, IconBookmarkCheck, IconBookmarkCheckFill, IconBookmarkX, IconBoxLines, IconBoxText, IconBracketsCheck, IconBracketsEllipses, IconCalendar, IconCertificateHeart, IconCheck, IconCheckCircle, IconCheckCircleBroken, IconCheckFill, IconCheckVerified, IconChevronDown, IconChevronLeft, IconChevronLeftDouble, IconChevronRight, IconChevronRightDouble, IconChevronSelectorVertical, IconChevronUp, IconCircleSwap, IconClockFastForward, IconClockRewind, IconClockRewind2, IconCodeBrowser, IconCodeCircle, IconColors, IconColumnEdit, IconCopy, IconCopy2, IconCopy3, IconCopy4, IconCopy5, IconCopyCheck, IconCube, IconCubeOutline, IconCursorBox, IconDataflow, IconDataflow2, IconDataflow3, IconDelete, IconDollarCircle, IconDotsGrid, IconDotsHorizontal, IconDotsVertical, IconEdit, IconEditable, IconExpand, IconEye, IconEyeHidden, IconEyeHidden2, IconFaceSmile, IconFilter, IconFilter2, IconFlag, IconFlag2, IconFlag3, IconHandShield, IconHash, IconHeadsetMic, IconHeart, IconHouseLine, IconImage, IconImage2, IconImage3, IconImage4, IconImageCheck, IconInfoCircle, IconInfoHexagon, IconItalic, IconLayersMultiple, IconLayersSingle, IconLayout, IconLayout2, IconLayoutColumns, IconLayoutCustom, IconLayoutSequential, IconLayoutStuffed, IconLayoutTile, IconLifeBuoy, IconLightbulb, IconLightning, IconLightning2, IconLightningFast, IconLineChartBar, IconLineChartBreakoutSquare, IconLineChartUp, IconLineChartUp2, IconLines, IconLinesCheck, IconLinesPlay, IconLink, IconLink2, IconLink3, IconLink4, IconLink5, IconListBullet, IconListOrder, IconListOrder2, IconLock, IconLock2, IconLogIn, IconLogOut, IconLogOut2, IconMagicWand, IconMagicWand2, IconMail, IconMessageSquare, IconMessageSquare2, IconMessageXSquare, IconMinusCircle, IconMobile, IconMonitor, IconMonitor2, IconMonitor3, IconMoonCircle, IconName, IconNavigationPointer, IconNotificationBox, IconPCSetup, IconPalette, IconPasscodeLock, IconPencil, IconPercentageCircle, IconPerspective, IconPhoneCall, IconPin, IconPlayCircle, IconPlus, IconPlusCircle, IconPulse, IconQuestionCircle, IconRadioButton, IconRadioButtonActive, IconReceiptCheck, IconRedo, IconRefresh, IconRefresh2, IconRefresh3, IconRepeat, IconRepeat2, IconRetweet, IconRoundChart, IconRoundChart2, IconRoute, IconSave, IconSave2, IconScanDots, IconSearch, IconSend, IconSettings, IconSettings2, IconSettings3, IconShieldLightning, IconShieldPlus, IconShieldRemove, IconShuffle, IconSlashCircle, IconSlashOctagon, IconSocialGlobe, IconSocialLinkedin, IconSocialX, IconSpeedometer, IconStairsRound, IconStar, IconStarHalf, IconStars, IconStars2, IconStrikethrough, IconSuccessFeatured, IconSun, IconSwitchHorizontal, IconTag, IconTarget, IconTarget2, IconTextFormat, IconTextFormat2, IconTextHighlight, IconTranslate, IconTrash, IconTrending, IconUnderline, IconUndo, IconUndo2, IconUploadCloud, IconUser, IconUserEdit, IconUserRight, IconUserSquare, IconUsers, IconUsersUp, IconVolume, IconWrench, IconX, IconXCircle, IconXCircle2, IconXClose, IconXSquare, InfoLabels, type InfoLabelsProps, Input, type InputProps, Loader, type LoaderProps, Lookup, type LookupOption, type LookupProps, Markdown, type MarkdownProps, Menu, type MenuProps, Modal, type ModalProps, type NotificationProps, Pagination, PaginationGoToPage, type PaginationGoToPageProps, PaginationPageSize, type PaginationPageSizeProps, type PaginationProps, PillBadge, type PillBadgeProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, RadioBoxGroup, type RadioBoxGroupProps, RadioButtonGroup, type RadioButtonGroupProps, Rating, type RatingProps, Select, type SelectProps, Sidebar, SidebarItem, type SidebarItemConfig, type SidebarItemProps, type SidebarProps, Skeleton, SkeletonAvatar, SkeletonBadge, SkeletonBanner, SkeletonButton, SkeletonCard, SkeletonCard2, SkeletonCard3, SkeletonCardStack, SkeletonChart, type SkeletonComponentProps, SkeletonContentCard, SkeletonDataGrid, SkeletonForm, SkeletonGlowingCard, SkeletonImage, SkeletonInfoCard, SkeletonInput, SkeletonList, SkeletonParagraph, type SkeletonProps, type SkeletonRoundness, SkeletonText, type SkeletonType, SkeletonVideo, SkeletonWidgetCard, SkeletonWrapper, Slider, type SliderProps, SliderRange, type SliderRangeProps, StarRating, type StarRatingProps, Stepper, type StepperProps, type SubmenuItem, Switch, type SwitchProps, type Tab, Tabs, type TabsProps, TextArea, type TextAreaProps, Tooltip, type TooltipProps, parseRgbaString, showNotification };
|
|
3551
|
+
export { AdvancedProgressBar, type AdvancedProgressBarProps, AudioPlayback, type AudioPlaybackProps, AudioRecorder, type AudioRecorderProps, Avatar, type AvatarProps, AvatarRow, type AvatarRowProps, Breadcrumb, type BreadcrumbProps, Button, type ButtonProps, type ButtonVariant, Calendar, CalendarDropdown, type CalendarDropdownProps, type CalendarProps, CanvasButton, Card, CardIcon, type CardIconProps, CardMedia, type CardMediaProps, type Media as CardMediaType, type CardProps, Carousel, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, CleenIcon, CleenNotificationContainer, Collapsible, type CollapsibleProps, type CollapsibleSection, type ColorModel, ColorPicker, type ColorPickerProps, CreditCardInput, type CreditCardInputProps, Divider, type DividerProps, Drawer, type DrawerConfig, DrawerContainer, type DrawerContainerProps, DrawerContentTitle, type DrawerContentTitleProps, type DrawerProps, Dropdown, type DropdownProps, Dropzone, type DropzoneProps, EditableCard, type EditableCardField, type EditableCardProps, EditableText, EditableTextArea, type EditableTextAreaProps, type EditableTextAreaRef, type EditableTextProps, type EditableTextRef, FilterDrawer, type FilterDrawerFilterCategories, type FilterDrawerNewFilter, type FilterDrawerProps, type FilterDrawerSavedFilter, FormGroup, type FormGroupProps, GroupSelector, type GroupSelectorProps, type GroupSelectorSaveResult, type GroupSelectorThreeDotOption, IconAlertCircle, IconAlertFeatured, IconAlertOctagon, IconAlertTriangle, IconAlignRight, IconArrowDown, IconArrowLeft, IconArrowLeft2, IconArrowRight, IconArrowToTop, IconArrowUp, IconArrowUpRight, IconArrowUpRightNarrow, IconArrowUpRightSquare, IconAttachment, IconBarChartSquare, IconBold, IconBookmarkCheck, IconBookmarkCheckFill, IconBookmarkX, IconBoxLines, IconBoxText, IconBracketsCheck, IconBracketsEllipses, IconCalendar, IconCertificateHeart, IconCheck, IconCheckCircle, IconCheckCircleBroken, IconCheckFill, IconCheckVerified, IconChevronDown, IconChevronLeft, IconChevronLeftDouble, IconChevronRight, IconChevronRightDouble, IconChevronSelectorVertical, IconChevronUp, IconCircleSwap, IconClockFastForward, IconClockRewind, IconClockRewind2, IconCodeBrowser, IconCodeCircle, IconColors, IconColumnEdit, IconCopy, IconCopy2, IconCopy3, IconCopy4, IconCopy5, IconCopyCheck, IconCube, IconCubeOutline, IconCursorBox, IconDataflow, IconDataflow2, IconDataflow3, IconDelete, IconDollarCircle, IconDotsGrid, IconDotsHorizontal, IconDotsVertical, IconEdit, IconEditable, IconExpand, IconEye, IconEyeHidden, IconEyeHidden2, IconFaceSmile, IconFilter, IconFilter2, IconFlag, IconFlag2, IconFlag3, IconHandShield, IconHash, IconHeadsetMic, IconHeart, IconHouseLine, IconImage, IconImage2, IconImage3, IconImage4, IconImageCheck, IconInfoCircle, IconInfoHexagon, IconItalic, IconLayersMultiple, IconLayersSingle, IconLayout, IconLayout2, IconLayoutColumns, IconLayoutCustom, IconLayoutSequential, IconLayoutStuffed, IconLayoutTile, IconLifeBuoy, IconLightbulb, IconLightning, IconLightning2, IconLightningFast, IconLineChartBar, IconLineChartBreakoutSquare, IconLineChartUp, IconLineChartUp2, IconLines, IconLinesCheck, IconLinesPlay, IconLink, IconLink2, IconLink3, IconLink4, IconLink5, IconListBullet, IconListOrder, IconListOrder2, IconLock, IconLock2, IconLogIn, IconLogOut, IconLogOut2, IconMagicWand, IconMagicWand2, IconMail, IconMessageSquare, IconMessageSquare2, IconMessageXSquare, IconMinusCircle, IconMobile, IconMonitor, IconMonitor2, IconMonitor3, IconMoonCircle, IconName, IconNavigationPointer, IconNotificationBox, IconPCSetup, IconPalette, IconPasscodeLock, IconPencil, IconPercentageCircle, IconPerspective, IconPhoneCall, IconPin, IconPlayCircle, IconPlus, IconPlusCircle, IconPulse, IconQuestionCircle, IconRadioButton, IconRadioButtonActive, IconReceiptCheck, IconRedo, IconRefresh, IconRefresh2, IconRefresh3, IconRepeat, IconRepeat2, IconRetweet, IconRoundChart, IconRoundChart2, IconRoute, IconSave, IconSave2, IconScanDots, IconSearch, IconSend, IconSettings, IconSettings2, IconSettings3, IconShieldLightning, IconShieldPlus, IconShieldRemove, IconShuffle, IconSlashCircle, IconSlashOctagon, IconSocialGlobe, IconSocialLinkedin, IconSocialX, IconSpeedometer, IconStairsRound, IconStar, IconStarHalf, IconStars, IconStars2, IconStrikethrough, IconSuccessFeatured, IconSun, IconSwitchHorizontal, IconTag, IconTarget, IconTarget2, IconTextFormat, IconTextFormat2, IconTextHighlight, IconTranslate, IconTrash, IconTrending, IconUnderline, IconUndo, IconUndo2, IconUploadCloud, IconUser, IconUserEdit, IconUserRight, IconUserSquare, IconUsers, IconUsersUp, IconVolume, IconWrench, IconX, IconXCircle, IconXCircle2, IconXClose, IconXSquare, InfoLabels, type InfoLabelsProps, Input, type InputProps, Label, type LabelProps, Loader, type LoaderProps, Lookup, type LookupOption, type LookupProps, Markdown, type MarkdownProps, Menu, type MenuProps, Modal, type ModalProps, type NotificationProps, Pagination, PaginationGoToPage, type PaginationGoToPageProps, PaginationPageSize, type PaginationPageSizeProps, type PaginationProps, PillBadge, type PillBadgeProps, Popover, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, RadioBoxGroup, type RadioBoxGroupProps, RadioButtonGroup, type RadioButtonGroupProps, Rating, type RatingProps, Select, type SelectProps, Sidebar, SidebarItem, type SidebarItemConfig, type SidebarItemProps, type SidebarProps, Skeleton, SkeletonAvatar, SkeletonBadge, SkeletonBanner, SkeletonButton, SkeletonCard, SkeletonCard2, SkeletonCard3, SkeletonCardStack, SkeletonChart, type SkeletonComponentProps, SkeletonContentCard, SkeletonDataGrid, SkeletonForm, SkeletonGlowingCard, SkeletonImage, SkeletonInfoCard, SkeletonInput, SkeletonList, SkeletonParagraph, type SkeletonProps, type SkeletonRoundness, SkeletonText, type SkeletonType, SkeletonVideo, SkeletonWidgetCard, SkeletonWrapper, Slider, type SliderProps, SliderRange, type SliderRangeProps, StarRating, type StarRatingProps, Stepper, type StepperProps, type SubmenuItem, Switch, type SwitchProps, type Tab, Tabs, type TabsProps, TextArea, type TextAreaProps, Tooltip, type TooltipProps, parseRgbaString, showNotification };
|