@corva/ui 0.26.0-1 → 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/ui",
3
- "version": "0.26.0-1",
3
+ "version": "0.26.0-2",
4
4
  "description": "Shared components/utils for Corva ui projects",
5
5
  "keywords": [
6
6
  "corva-ui"