@corva/ui 0.25.0-9 → 0.26.0-2

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.
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{jsxs as r,jsx as i}from"react/jsx-runtime";import{makeStyles as n,TableRow as o,TableCell as l}from"@material-ui/core";import{memo as c}from"react";import{shape as t,number as a,func as m}from"prop-types";import{InfoOutlined as s}from"@material-ui/icons";import d from"../BHAComponentIcon.js";var p,h=n({tableBodyCell:{padding:0,borderBottom:"none",height:49},componentIconCell:{padding:0,borderBottom:"none",height:49,display:"flex",alignItems:"center"},infoIcon:{fontSize:16,color:"#ccc"},iconWrapper:(p={display:"inline-block",width:"40px",height:"48px"},e(p,"display","flex"),e(p,"justifyContent","center"),e(p,"marginRight","4px"),p)}),f=function(e){var n=e.component,c=e.order,t=e.onSelect,a=h(),m=a.tableBodyCell,p=a.componentIconCell,f=a.iconWrapper,u=a.infoIcon;return r(o,{children:[i(l,{className:m,children:c}),r(l,{className:p,children:[i("div",{className:f,children:i(d,{component:n})}),i("div",{children:n.family_name||n.family})]}),i(l,{className:m,children:n.name}),i(l,{className:m,children:n.outer_diameter}),i(l,{className:m,children:n.inner_diameter}),i(l,{className:m,children:n.linear_weight}),i(l,{className:m,children:n.length}),i(l,{className:m,children:n.weight}),i(l,{className:m,children:Number.isFinite(n.c_length)?n.c_length.toFixed(2):""}),i(l,{className:m,children:n.grade}),i(l,{className:m,children:i(s,{className:u,onClick:function(){return t(n)}})})]})};f.propTypes={component:t({}).isRequired,order:a.isRequired,onSelect:m.isRequired};var u=c(f);export default u;
1
+ import{jsxs as e,jsx as n}from"react/jsx-runtime";import{makeStyles as i,TableRow as r,TableCell as o}from"@material-ui/core";import{memo as c}from"react";import{shape as t,number as l,func as a}from"prop-types";import{InfoOutlined as m}from"@material-ui/icons";import s from"../BHAComponentIcon.js";var d=i({tableBodyCell:{padding:0,borderBottom:"none",height:49,fontSize:"13px"},componentIconCell:{padding:0,borderBottom:"none",height:49,display:"flex",alignItems:"center",fontSize:"13px"},infoIcon:{fontSize:16,color:"#ccc"},iconWrapper:{width:"40px",height:"48px",display:"flex",justifyContent:"center",marginRight:"4px"}}),p=function(i){var c=i.component,t=i.order,l=i.onSelect,a=d(),p=a.tableBodyCell,h=a.componentIconCell,f=a.iconWrapper,g=a.infoIcon;return e(r,{children:[n(o,{className:p,children:t}),e(o,{className:h,children:[n("div",{className:f,children:n(s,{component:c})}),n("div",{children:c.family_name||c.family})]}),n(o,{className:p,children:c.name}),n(o,{className:p,children:c.outer_diameter}),n(o,{className:p,children:c.inner_diameter}),n(o,{className:p,children:c.linear_weight}),n(o,{className:p,children:c.length}),n(o,{className:p,children:c.weight}),n(o,{className:p,children:Number.isFinite(c.c_length)?c.c_length.toFixed(2):""}),n(o,{className:p,children:c.grade}),n(o,{className:p,children:n(m,{className:g,onClick:function(){return l(c)}})})]})};p.propTypes={component:t({}).isRequired,order:l.isRequired,onSelect:a.isRequired};var h=c(p);export default h;
@@ -1 +1 @@
1
- import{getUnitDisplay as e}from"../../../utils/index.js";import{jsxs as t,jsx as l}from"react/jsx-runtime";import{makeStyles as r,Table as a,TableHead as s,TableRow as i,TableCell as n,TableBody as o}from"@material-ui/core";import{memo as d}from"react";import c from"prop-types";import h from"./BHAComponent.js";var m=r({tableStyle:{tableLayout:"fixed"},tableHeadCellStyle:{padding:"14px 0px",color:"#9E9E9E",borderTop:"1px solid rgba(81, 81, 81, 1)"}});function p(r){var d=r.components,c=r.onSelectComponent,p=m(),y=p.tableStyle,f=p.tableHeadCellStyle;return t(a,{className:y,children:[l(s,{children:t(i,{children:[l(n,{className:f,style:{width:"2%"},children:"#"}),l(n,{className:f,style:{width:"13%",paddingLeft:44},children:"Category"}),l(n,{className:f,style:{width:"13%"},children:"Name"}),t(n,{className:f,style:{width:"7%"},children:["OD (",e("shortLength"),")"]}),t(n,{className:f,style:{width:"7%"},children:["ID (",e("shortLength"),")"]}),t(n,{className:f,style:{width:"15%"},children:["Linear Weight (",e("massPerLength"),")"]}),t(n,{className:f,style:{width:"10%"},children:["Length (",e("length"),")"]}),t(n,{className:f,style:{width:"10%"},children:["Weight (",e("mass"),")"]}),t(n,{className:f,style:{width:"13%"},children:["Cum.Length (",e("length"),")"]}),l(n,{className:f,style:{width:"7%"},children:"Grade"}),l(n,{className:f,style:{width:"3%"}})]})}),l(o,{children:d.map((function(e,t){return l(h,{component:e,order:t+1,onSelect:c},e.id)}))})]})}p.propTypes={components:c.arrayOf(c.shape({})).isRequired,onSelectComponent:c.func.isRequired};var y=d(p);export default y;
1
+ import{getUnitDisplay as e}from"../../../utils/index.js";import{jsxs as t,jsx as l}from"react/jsx-runtime";import{makeStyles as r,Table as a,TableHead as s,TableRow as i,TableCell as n,TableBody as o}from"@material-ui/core";import{memo as d}from"react";import c from"prop-types";import h from"./BHAComponent.js";var m=r({tableStyle:{tableLayout:"fixed"},tableHeadCellStyle:{height:"38px",padding:"0px",color:"#999999",fontSize:"12px",borderTop:"1px solid rgba(81, 81, 81, 1)"}});function p(r){var d=r.components,c=r.onSelectComponent,p=m(),y=p.tableStyle,f=p.tableHeadCellStyle;return t(a,{className:y,children:[l(s,{children:t(i,{children:[l(n,{className:f,style:{width:"2%"},children:"#"}),l(n,{className:f,style:{width:"13%",paddingLeft:44},children:"Category"}),l(n,{className:f,style:{width:"13%"},children:"Name"}),t(n,{className:f,style:{width:"7%"},children:["OD (",e("shortLength"),")"]}),t(n,{className:f,style:{width:"7%"},children:["ID (",e("shortLength"),")"]}),t(n,{className:f,style:{width:"15%"},children:["Linear Weight (",e("massPerLength"),")"]}),t(n,{className:f,style:{width:"10%"},children:["Length (",e("length"),")"]}),t(n,{className:f,style:{width:"10%"},children:["Weight (",e("mass"),")"]}),t(n,{className:f,style:{width:"13%"},children:["Cum.Length (",e("length"),")"]}),l(n,{className:f,style:{width:"7%"},children:"Grade"}),l(n,{className:f,style:{width:"3%"}})]})}),l(o,{children:d.map((function(e,t){return l(h,{component:e,order:t+1,onSelect:c},e.id)}))})]})}p.propTypes={components:c.arrayOf(c.shape({})).isRequired,onSelectComponent:c.func.isRequired};var y=d(p);export default y;
@@ -1 +1 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import{jsxs as i,jsx as t,Fragment as a}from"react/jsx-runtime";import{makeStyles as n,Typography as r}from"@material-ui/core";import{useRef as o,useEffect as l}from"react";import c from"prop-types";import d from"classnames";import{drawDonutSlice as s}from"./utils.js";var m=n((function(e){return{root:{width:"228px",height:"228px",borderRadius:"50%",padding:"6px",position:"relative",background:"url(".concat("/static/media/9bda514bfc837939d0b6f7d8dbe94d03.svg",")"),backgroundRepeat:"no-repeat"},backgroundRoot:{width:"100%",height:"100%",borderRadius:"50%",border:"2px solid #616161",padding:"2px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",background:"url(".concat("/static/media/49092309a3fda5ecf77311bd794ac103.svg",")")},emptyStateBackground:{background:"radial-gradient(50% 50% at 50% 50%, rgba(100, 181, 246, 0) 54.4%, rgba(100, 181, 246, 0.01) 76.49%, rgba(100, 181, 246, 0.06) 100%)"},dropShadowRoot:{width:"100%",height:"100%",borderRadius:"50%",filter:"blur(36px)",border:"2px solid #64B5F6",display:"flex",alignItems:"center",justifyContent:"center"},content:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",left:0,top:0},timeRange:{fontSize:"10px",textTransform:"uppercase",color:e.palette.primary.text7,lineHeight:"24px",fontWeight:500,letterSpacing:"1px",position:"absolute",top:36},time:{marginTop:42},timing:{fontFamily:"Roboto",fontSize:36,lineHeight:"24px",letterSpacing:.4,fontWeight:300,color:e.palette.background.b9},wirelineText:{color:"#FF9C00"},wirelineDot:{backgroundColor:"#FF9C00"},fracturingText:{color:"#8572FF"},fracturingDot:{backgroundColor:"#8572FF"},legend:{marginTop:24},legendItem:{fontFamily:"Roboto",fontSize:12,lineHeight:"14px",letterSpacing:.4,display:"flex",margin:"2px 0",alignItems:"center"},dot:{width:8,height:8,borderRadius:"100%",marginRight:9},chart:{position:"absolute",left:2,top:2,width:"100%",height:"100%",padding:"12px"},noData:{width:90,height:90},noDataText:{marginTop:24,color:"#9E9E9E",display:"flex",justifyContent:"center"},canvas:{width:"100%",height:"100%"},activities:{position:"absolute",left:12,top:12}}}));function p(e,i,t,a,n,r,o,l){var c=e.current;if(c){c.width=200,c.height=200,c.style.width="".concat(200,"px"),c.style.height="".concat(200,"px");var d=c.getContext("2d");s(d,i,t,a,n,r,o,l)}}function g(n){var c=n.wirelineTime,s=n.fracturingTime,g=m(),h=o(null),u=o(null),f=o(null);return l((function(){var e=h.current;e.width=200,e.height=200,e.style.width="".concat(200,"px"),e.style.height="".concat(200,"px");var i=60*c/86400*Math.PI*2,t=i+60*s/86400*Math.PI*2;p(u,100,100,100,0,i,"#FF9C00",!0),p(f,100,100,100,i,t,"#8572FF",!0)})),i("div",{className:g.root,children:[t("div",{className:d(g.backgroundRoot,e({},g.emptyStateBackground,!c||!s)),children:t("div",{className:g.dropShadowRoot})}),i("div",{className:g.content,children:[t(r,{className:g.timeRange,children:"Previous 24hrs"}),c&&s?i(a,{children:[i("div",{className:g.time,children:[t(r,{className:d(g.timing,g.wirelineText),display:"inline",children:c/60}),t(r,{className:g.timing,display:"inline",children:"/"}),t(r,{className:d(g.timing,g.fracturingText),display:"inline",children:s/60}),t(r,{display:"inline",children:" h"})]}),i("div",{className:g.legend,children:[i(r,{className:g.legendItem,display:"inline",children:[t("div",{className:d(g.dot,g.wirelineDot)})," Wireline"]}),i(r,{className:g.legendItem,display:"inline",children:[t("div",{className:d(g.dot,g.fracturingDot)}),"Fracturing"]})]})]}):t("div",{className:g.noData,children:t(r,{className:g.noDataText,children:"No Data"})})]}),i("div",{className:g.chart,children:[t("canvas",{ref:h,className:g.canvas}),t("canvas",{ref:u,className:g.activities}),t("canvas",{ref:f,className:g.activities})]})]})}g.propTypes={wirelineTime:c.number,fracturingTime:c.number},g.defaultProps={wirelineTime:void 0,fracturingTime:void 0};export default g;
1
+ import e from"@babel/runtime/helpers/defineProperty";import{jsxs as i,jsx as t,Fragment as a}from"react/jsx-runtime";import{makeStyles as n,Typography as r}from"@material-ui/core";import{useRef as o,useEffect as l}from"react";import c from"prop-types";import d from"classnames";import{drawDonutSlice as s}from"./utils.js";var m=n((function(e){return{root:{width:"228px",height:"228px",borderRadius:"50%",padding:"6px",position:"relative",background:"url(".concat("/static/media/9bda514bfc837939d0b6f7d8dbe94d03.svg",")"),backgroundRepeat:"no-repeat"},backgroundRoot:{width:"100%",height:"100%",borderRadius:"50%",border:"2px solid #616161",padding:"2px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden",background:"url(".concat("/static/media/49092309a3fda5ecf77311bd794ac103.svg",")")},emptyStateBackground:{background:"radial-gradient(50% 50% at 50% 50%, rgba(100, 181, 246, 0) 54.4%, rgba(100, 181, 246, 0.01) 76.49%, rgba(100, 181, 246, 0.06) 100%)"},dropShadowRoot:{width:"100%",height:"100%",borderRadius:"50%",filter:"blur(36px)",border:"2px solid #64B5F6",display:"flex",alignItems:"center",justifyContent:"center"},content:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",left:0,top:0},timeRange:{fontSize:"10px",textTransform:"uppercase",color:e.palette.primary.text7,lineHeight:"24px",fontWeight:500,letterSpacing:"1px",position:"absolute",top:36},time:{marginTop:42},timing:{fontFamily:"Roboto",fontSize:36,lineHeight:"24px",letterSpacing:.4,fontWeight:300,color:e.palette.background.b9},wirelineText:{color:"#FF9C00"},wirelineDot:{backgroundColor:"#FF9C00"},fracturingText:{color:"#8572FF"},fracturingDot:{backgroundColor:"#8572FF"},legend:{marginTop:24},legendItem:{fontFamily:"Roboto",fontSize:12,lineHeight:"14px",letterSpacing:.4,display:"flex",margin:"2px 0",alignItems:"center"},dot:{width:8,height:8,borderRadius:"100%",marginRight:9},chart:{position:"absolute",left:2,top:2,width:"100%",height:"100%",padding:"12px"},noData:{width:90,height:90},noDataText:{marginTop:24,color:"#9E9E9E",display:"flex",justifyContent:"center"},canvas:{width:"100%",height:"100%"},activities:{position:"absolute",left:12,top:12}}}));function p(e,i,t,a,n,r,o,l){var c=e.current;if(c){c.width=200,c.height=200,c.style.width="".concat(200,"px"),c.style.height="".concat(200,"px");var d=c.getContext("2d");s(d,i,t,a,n,r,o,l)}}function g(n){var c=n.wirelineTime,s=n.fracturingTime,g=m(),h=o(null),u=o(null),f=o(null);return l((function(){var e=h.current;e.width=200,e.height=200,e.style.width="".concat(200,"px"),e.style.height="".concat(200,"px");var i=60*c/86400*Math.PI*2,t=i+60*s/86400*Math.PI*2;p(u,100,100,100,0,i,"#FF9C00",!0),p(f,100,100,100,i,t,"#8572FF",!0)})),i("div",{className:g.root,children:[t("div",{className:d(g.backgroundRoot,e({},g.emptyStateBackground,!c||!s)),children:t("div",{className:g.dropShadowRoot})}),i("div",{className:g.content,children:[t(r,{className:g.timeRange,children:"Previous 24hrs"}),c&&s?i(a,{children:[i("div",{className:g.time,children:[t(r,{className:d(g.timing,g.wirelineText),display:"inline",children:(c/60).toFixed(1)}),t(r,{className:g.timing,display:"inline",children:"/"}),t(r,{className:d(g.timing,g.fracturingText),display:"inline",children:(s/60).toFixed(1)}),t(r,{display:"inline",children:" h"})]}),i("div",{className:g.legend,children:[i(r,{className:g.legendItem,display:"inline",children:[t("div",{className:d(g.dot,g.wirelineDot)})," Wireline"]}),i(r,{className:g.legendItem,display:"inline",children:[t("div",{className:d(g.dot,g.fracturingDot)}),"Fracturing"]})]})]}):t("div",{className:g.noData,children:t(r,{className:g.noDataText,children:"No Data"})})]}),i("div",{className:g.chart,children:[t("canvas",{ref:h,className:g.canvas}),t("canvas",{ref:u,className:g.activities}),t("canvas",{ref:f,className:g.activities})]})]})}g.propTypes={wirelineTime:c.number,fracturingTime:c.number},g.defaultProps={wirelineTime:void 0,fracturingTime:void 0};export default g;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.25.0-9",
3
+ "version": "0.26.0-2",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"