kwant-ui 3.33.12-alpha.0 → 3.33.13-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -4247,7 +4247,7 @@ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import n,{css as
|
|
|
4247
4247
|
font-style: normal;
|
|
4248
4248
|
font-weight: 500;
|
|
4249
4249
|
line-height: 16px; /* 133.333% */
|
|
4250
|
-
`,tF=(e,t)=>{if(e&&"MM/DD/YYYY"===t&&!t.includes("-")){const t=e.split("/");return`${t[2]}-${t[0]}-${t[1]}`}if(e&&"DD/MM/YYYY"===t&&!t.includes("-")){const t=e.split("/");return`${t[2]}-${t[1]}-${t[0]}`}return e},rF="Actual Workforce overlay",nF="Workforce Variance",aF="#F7EFF3",cF="transparent",iF=r=>{const{payload:n}=r;return e(TN,{children:n?.map((({color:r,type:n,value:a,payload:c,shape:i})=>{if("none"===n)return null;if(a===rF)return null;return t(NN,{children:[i??e(FN,{children:e(QN,{color:(a===nF?aF:r===cF?c?.fill:r||cF)||cF})}),e(YN,{children:a})]},a)}))})},oF=t=>{const{value:r,dy:n}=t;return e(UN,{dy:n,...RN,children:r})},sF=r=>{const{x:n,y:a,payload:c,rotate:i=0,dateFormat:o}=r,s=ti(tF(c.value,o)).format("ddd"),l=ti(tF(c.value,o)).format(o);return t($N,{transform:`translate(${n},${a}), rotate(${i})`,children:[e(oF,{value:s,dy:16}),e(oF,{value:l,dy:36})]})},lF=(e,t)
|
|
4250
|
+
`,tF=(e,t)=>{if(e&&"MM/DD/YYYY"===t&&!t.includes("-")){const t=e.split("/");return`${t[2]}-${t[0]}-${t[1]}`}if(e&&"DD/MM/YYYY"===t&&!t.includes("-")){const t=e.split("/");return`${t[2]}-${t[1]}-${t[0]}`}return e},rF="Actual Workforce overlay",nF="Workforce Variance",aF="#F7EFF3",cF="transparent",iF=r=>{const{payload:n}=r;return e(TN,{children:n?.map((({color:r,type:n,value:a,payload:c,shape:i})=>{if("none"===n)return null;if(a===rF)return null;return t(NN,{children:[i??e(FN,{children:e(QN,{color:(a===nF?aF:r===cF?c?.fill:r||cF)||cF})}),e(YN,{children:a})]},a)}))})},oF=t=>{const{value:r,dy:n}=t;return e(UN,{dy:n,...RN,children:r})},sF=r=>{const{x:n,y:a,payload:c,rotate:i=0,dateFormat:o}=r,s=ti(tF(c.value,o)).format("ddd"),l=ti(tF(c.value,o)).format(o);return t($N,{transform:`translate(${n},${a}), rotate(${i})`,children:[e(oF,{value:s,dy:16}),e(oF,{value:l,dy:36})]})},lF=(e,t)=>ti(tF(e,t)).format("ddd, DD MMM YYYY"),hF=({color:r,name:n,value:a,shape:c})=>n===rF?null:t(KN,{children:[t(qN,{children:[c,r&&e(GN,{color:n===nF?aF:r||cF}),e(JN,{children:n})]}),e(eF,{children:a})]}),vF=r=>{const{label:n,payload:a,labelFormatter:c}=r,i=c?c(n,a||[]):n;return t(WN,{style:{transform:"translateY(-50%)"},children:[e(XN,{children:i}),a?.map((t=>{return e(hF,{color:t.color,name:t.name,value:(r=t.value,isNaN(Number(r))?r:Number(r).toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:2}))});var r}))]})},pF=n=>{const{width:a,height:c=600,margin:i={right:30,bottom:20},data:o,areas:s,areasYAxisRight:l,xAxisDataKey:h,showTooltip:v,xAxisLabel:g,yAxisLeftLabel:m,showLegends:d,showRightYAxis:_,isGradient:w=!1,yAxisRightLabel:b,gradientColor:y,gradientStart:x=0,gradientStop:Z=.3,customTooltip:O=e(vF,{}),areaProps:M={},cartesianGridProps:E={},legendProps:H={},tooltipProps:P={},xAxisProps:j={},yAxisProps:V={},yAxisRightProps:C={},areaYAxisRightProps:A={},showAverageLine:L=!0,averageLineValue:z,averageLineColor:B="#2DA170",customTooltipLabelFormatter:k=lF,hideXAxis:S=!1,hideYAxis:R=!1,hideCartesianGrid:D=!1,dateFormat:I}=n,[T,N]=p({x:0,y:0}),F=u(null),Q=F?.current?.current?.parentElement;return e(Dy,{width:a,height:c,ref:F,children:t(dN,{data:o,margin:i,onMouseMove:e=>N({x:e.chartX,y:e.chartY<=60?70:e.chartY}),children:[e("defs",{children:w&&t("linearGradient",{id:"custom_linear_gradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[e("stop",{offset:"5%",stopColor:y,stopOpacity:Z}),e("stop",{offset:"95%",stopColor:y,stopOpacity:x})]})}),v&&e(vy,{content:O,labelFormatter:e=>k(e,I),coordinate:{...T},position:{y:T.y},reverseDirection:{x:T.x>Q?.getBoundingClientRect().width/2},...P}),d&&e(jd,{dy:80,verticalAlign:"bottom",height:100,layout:"horizontal",content:e(iF,{}),wrapperStyle:{paddingTop:60},...H}),!S&&e(NS,{dataKey:h,includeHidden:!0,interval:1,minTickGap:10,tick:e(sF,{dateFormat:I,rotate:o.length>15?-15:0}),axisLine:{stroke:"#E4E9F2"},tickLine:!1,label:{value:g,position:"insideBottom",fill:"#455F7B",fontSize:12,fontFamily:"Poppins",offset:-45},...j}),!R&&e(FS,{yAxisId:"left",...DN,label:{value:m,angle:-90,dx:-30,...DN.label},...V}),_&&t(r,{children:[e(FS,{...DN,yAxisId:"right",hide:!_,orientation:"right",tickCount:3,tickFormatter:e=>`${e}%`,interval:0,minTickGap:20,domain:[0,100],label:{value:b,angle:90,dx:20,...DN.label},...V,...C}),l?.map((e=>f(OS,{...e,...IN,key:e.dataKey,dataKey:e.dataKey,fillOpacity:e.fillOpacity,stroke:e.stroke||"transparent",fill:w?"url(#custom_linear_gradient)":e.color||"transparent",yAxisId:e.yAxisId||"left",name:e.name,...M,...A})))]}),s?.map((e=>f(OS,{...e,...IN,key:e.dataKey,dataKey:e.dataKey,fillOpacity:e.fillOpacity,stroke:e.stroke||"transparent",fill:w?"url(#custom_linear_gradient)":e.color||"transparent",yAxisId:e.yAxisId||"left",name:e.name,...M,...A}))),!D&&e(Uk,{...E,strokeDasharray:"4 4",vertical:!1,stroke:"#E4E9F2"}),L&&e(JB,{y:z,yAxisId:"left",stroke:B,strokeDasharray:"4 4"})]})})},uF=t=>{const{x:r,y:n,payload:a,rotate:c=0,dateFormat:i}=t,[o,s]=a.value.split(" - "),l=i.replace(/\/yyyy/gi,""),h=ti(o,i).format(l),v=ti(s,i).format(i);return e($N,{transform:`translate(${r},${n}), rotate(${c})`,children:e(oF,{value:`${h} - ${v}`,dy:16})})},gF=t=>{const{x:r,y:n,width:a,height:c}=t;return e("svg",{style:{pointerEvents:"none"},children:e("line",{x1:+r+ +a/2,y1:0,x2:+r+ +a/2,y2:+n+ +c+10,stroke:"#A1AFC0",strokeWidth:1,opacity:.1})})},mF=r=>{const n=r.dateFormat,a=r.payload[0]?.dataKey,[c]="string"==typeof a&&a?.split(".")||[],i=r.payload[0]?.payload[c],o=ti(i?.date,n).format(`ddd, ${n}`);return t(WN,{style:{transform:"translateY(-50%)"},children:[e(XN,{children:o}),e(hF,{name:"Work Phase Time:",value:i?.workPhaseTimeHour||"N/A",color:"#5879EF"}),e(hF,{name:"Slack Time:",value:i?.slackTimeHour||"N/A",color:"#A1AFC0"})]})},dF={},fF=[1,2,3,4,5,6,7],_F=e=>`${e}h`,wF=r=>{const{legends:n,data:a,width:c,height:i,labelX:s,labelY:l,workPhaseTimeHourLabel:h,slackTimeHourLabel:v,dataKeyX:u,dataKeyY:g,workPhaseTimeHourDataKey:m,slackTimeHourDataKey:d,margin:f,showLegends:_,showTooltip:w,customXAxisTickFormatter:b,customYAxisTickFormatter:y=_F,dateFormat:x="MM/DD/YYYY"}=r,[Z,O]=p(!1),[M,E]=p({chartX:0}),H=a.length>4?-10:0,P=e=>{const{x:t}=e||{};"number"==typeof t&&(E({chartX:t+18}),O(!0))},j=()=>{O(!1)};return e(Dy,{width:c,height:i,children:t(XR,{data:a,barSize:18,barGap:6,margin:f,children:[e(Uk,{vertical:!1,strokeDasharray:"4 4",stroke:"#E4E9F2"}),w&&e(vy,{shared:!1,content:e(mF,{dateFormat:x})}),_&&e(jd,{dy:80,verticalAlign:"bottom",height:100,layout:"horizontal",content:e(iF,{}),wrapperStyle:{paddingTop:60},payload:n}),e(NS,{dataKey:u,tickLine:!1,xAxisId:"xAxis",tick:e(uF,{dateFormat:x,rotate:H}),tickFormatter:b,interval:0,axisLine:{stroke:"#E4E9F2"},padding:{left:0,right:0},label:{value:s,fill:"#455F7B",fontSize:12,fontFamily:"Poppins",dy:40}}),e(FS,{...DN,tickFormatter:y,dataKey:g,label:{...DN.label,value:l,angle:-90,dx:-30}}),fF.map((r=>t(o.Fragment,{children:[e(zB,{dataKey:`day${r}.${m}`,stackId:r,xAxisId:"xAxis",fill:Z?"#9FB2F6":"#708CF1",...dF,className:"productive",name:h,activeBar:!1,onMouseOver:P,onMouseLeave:j,children:Z&&e(JV,{dataKey:`day${r}.${m}`,content:gF,x:M.chartX-18})}),e(zB,{dataKey:`day${r}.${d}`,stackId:r,xAxisId:"xAxis",fill:Z?"#BFCADF":"#D1D9E7",...dF,radius:[4,4,0,0],className:"unproductive",name:v,activeBar:!1,onMouseOver:P,onMouseLeave:j})]},r)))]})})},bF={fill:"#798CA4",fontFamily:"Poppins",fontSize:12,textAnchor:"middle",x:0,y:0},yF={tick:{fill:"#798CA4",fontFamily:"Poppins",fontSize:12,fontWeight:400},tickLine:!1,axisLine:!1,label:{position:"inside",fill:"#455F7B",fontSize:12,fontFamily:"Poppins",offset:20}},xF=n.div`
|
|
4251
4251
|
display: flex;
|
|
4252
4252
|
justify-content: center;
|
|
4253
4253
|
align-items: center;
|
package/dist/index.js
CHANGED
|
@@ -4247,7 +4247,7 @@
|
|
|
4247
4247
|
font-style: normal;
|
|
4248
4248
|
font-weight: 500;
|
|
4249
4249
|
line-height: 16px; /* 133.333% */
|
|
4250
|
-
`,JT=(e,t)=>{if(e&&"MM/DD/YYYY"===t&&!t.includes("-")){const t=e.split("/");return`${t[2]}-${t[0]}-${t[1]}`}if(e&&"DD/MM/YYYY"===t&&!t.includes("-")){const t=e.split("/");return`${t[2]}-${t[1]}-${t[0]}`}return e},eN="Actual Workforce overlay",tN="Workforce Variance",rN="#F7EFF3",nN="transparent",aN=t=>{const{payload:r}=t;return e.jsx(DT,{children:r?.map((({color:t,type:r,value:n,payload:a,shape:c})=>{if("none"===r)return null;if(n===eN)return null;const i=n===tN?rN:t===nN?a?.fill:t||nN;return e.jsxs(IT,{children:[c??e.jsx(TT,{children:e.jsx(NT,{color:i||nN})}),e.jsx(FT,{children:n})]},n)}))})},cN=t=>{const{value:r,dy:n}=t;return e.jsx(YT,{dy:n,...kT,children:r})},iN=t=>{const{x:r,y:n,payload:a,rotate:c=0,dateFormat:i}=t,o=tc(JT(a.value,i)).format("ddd"),s=tc(JT(a.value,i)).format(i);return e.jsxs(QT,{transform:`translate(${r},${n}), rotate(${c})`,children:[e.jsx(cN,{value:o,dy:16}),e.jsx(cN,{value:s,dy:36})]})},oN=(e,t)
|
|
4250
|
+
`,JT=(e,t)=>{if(e&&"MM/DD/YYYY"===t&&!t.includes("-")){const t=e.split("/");return`${t[2]}-${t[0]}-${t[1]}`}if(e&&"DD/MM/YYYY"===t&&!t.includes("-")){const t=e.split("/");return`${t[2]}-${t[1]}-${t[0]}`}return e},eN="Actual Workforce overlay",tN="Workforce Variance",rN="#F7EFF3",nN="transparent",aN=t=>{const{payload:r}=t;return e.jsx(DT,{children:r?.map((({color:t,type:r,value:n,payload:a,shape:c})=>{if("none"===r)return null;if(n===eN)return null;const i=n===tN?rN:t===nN?a?.fill:t||nN;return e.jsxs(IT,{children:[c??e.jsx(TT,{children:e.jsx(NT,{color:i||nN})}),e.jsx(FT,{children:n})]},n)}))})},cN=t=>{const{value:r,dy:n}=t;return e.jsx(YT,{dy:n,...kT,children:r})},iN=t=>{const{x:r,y:n,payload:a,rotate:c=0,dateFormat:i}=t,o=tc(JT(a.value,i)).format("ddd"),s=tc(JT(a.value,i)).format(i);return e.jsxs(QT,{transform:`translate(${r},${n}), rotate(${c})`,children:[e.jsx(cN,{value:o,dy:16}),e.jsx(cN,{value:s,dy:36})]})},oN=(e,t)=>tc(JT(e,t)).format("ddd, DD MMM YYYY"),sN=({color:t,name:r,value:n,shape:a})=>r===eN?null:e.jsxs(WT,{children:[e.jsxs(XT,{children:[a,t&&e.jsx(KT,{color:r===tN?rN:t||nN}),e.jsx(qT,{children:r})]}),e.jsx(GT,{children:n})]}),lN=t=>{const{label:r,payload:n,labelFormatter:a}=t,c=a?a(r,n||[]):r;return e.jsxs($T,{style:{transform:"translateY(-50%)"},children:[e.jsx(UT,{children:c}),n?.map((t=>{return e.jsx(sN,{color:t.color,name:t.name,value:(r=t.value,isNaN(Number(r))?r:Number(r).toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:2}))});var r}))]})},hN=t=>{const{x:r,y:n,payload:a,rotate:c=0,dateFormat:i}=t,[o,s]=a.value.split(" - "),l=i.replace(/\/yyyy/gi,""),h=`${tc(o,i).format(l)} - ${tc(s,i).format(i)}`;return e.jsx(QT,{transform:`translate(${r},${n}), rotate(${c})`,children:e.jsx(cN,{value:h,dy:16})})},vN=t=>{const{x:r,y:n,width:a,height:c}=t;return e.jsx("svg",{style:{pointerEvents:"none"},children:e.jsx("line",{x1:+r+ +a/2,y1:0,x2:+r+ +a/2,y2:+n+ +c+10,stroke:"#A1AFC0",strokeWidth:1,opacity:.1})})},pN=t=>{const r=t.dateFormat,n=t.payload[0]?.dataKey,[a]="string"==typeof n&&n?.split(".")||[],c=t.payload[0]?.payload[a],i=tc(c?.date,r).format(`ddd, ${r}`);return e.jsxs($T,{style:{transform:"translateY(-50%)"},children:[e.jsx(UT,{children:i}),e.jsx(sN,{name:"Work Phase Time:",value:c?.workPhaseTimeHour||"N/A",color:"#5879EF"}),e.jsx(sN,{name:"Slack Time:",value:c?.slackTimeHour||"N/A",color:"#A1AFC0"})]})},uN={},gN=[1,2,3,4,5,6,7],mN=e=>`${e}h`,dN={fill:"#798CA4",fontFamily:"Poppins",fontSize:12,textAnchor:"middle",x:0,y:0},fN={tick:{fill:"#798CA4",fontFamily:"Poppins",fontSize:12,fontWeight:400},tickLine:!1,axisLine:!1,label:{position:"inside",fill:"#455F7B",fontSize:12,fontFamily:"Poppins",offset:20}},_N=t.div`
|
|
4251
4251
|
display: flex;
|
|
4252
4252
|
justify-content: center;
|
|
4253
4253
|
align-items: center;
|
package/dist/package.json
CHANGED