@corva/ui 0.99.0-11 → 0.99.0-12
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
|
-
"use strict";var e=require("prop-types"),t=require("@material-ui/core"),i=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(e),s="/static/media/7dcfb5193fd2f60e28374f31ee0a26bf.svg",d={bit:"Bit",other:"Non Magnetic",pdm:"PDM",rss:"Rotary Steerables",stabilizer:"Stabilizer"};function
|
|
1
|
+
"use strict";var e=require("prop-types"),t=require("@material-ui/core"),i=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=a(e),s="/static/media/7dcfb5193fd2f60e28374f31ee0a26bf.svg",d={bit:"Bit",other:"Non Magnetic",pdm:"PDM",rss:"Rotary Steerables",stabilizer:"Stabilizer"},c=t.makeStyles({iconWrapper:{width:function(e){return e.width},height:function(e){return e.height}},tileIcon:{width:"100%",height:"100%"}});function n(e){var a,r=e.component,n=e.width,f=e.height,l=r.family,o=(r.material,c({width:n,height:f}));return a="bit"===l?"/static/media/50e73f59728296f6d5a248384d53193a.svg":"pdm"===l?"/static/media/d8f7c4b371a4666ca44cae9ec3058c26.svg":"rss"===l?"/static/media/bf34c472868f0f04afd2523062f9f363.svg":"stabilizer"===l?"/static/media/3f3100ae49e552599e0bbd9b60eb783d.svg":s,i.jsx(t.Tooltip,{title:d[l]||d.other,placement:"bottom",children:i.jsx("div",{className:o.iconWrapper,children:i.jsx("img",{src:a,className:o.tileIcon,alt:l})})})}n.propTypes={width:r.default.string.isRequired,height:r.default.number.isRequired,component:r.default.shape({family:r.default.string,material:r.default.string,bit_type:r.default.string}).isRequired},module.exports=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BHATileIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Drillstring/BHATileIcon.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"BHATileIcon.d.ts","sourceRoot":"","sources":["../../../src/components/Drillstring/BHATileIcon.js"],"names":[],"mappings":";AA4BA;;;;gBA0BC;;;;;;;;;;;;sBAtDqB,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"prop-types";import{Tooltip as
|
|
1
|
+
import t from"prop-types";import{makeStyles as e,Tooltip as i}from"@material-ui/core";import{jsx as r}from"react/jsx-runtime";var a="/static/media/7dcfb5193fd2f60e28374f31ee0a26bf.svg",s={bit:"Bit",other:"Non Magnetic",pdm:"PDM",rss:"Rotary Steerables",stabilizer:"Stabilizer"},c=e({iconWrapper:{width:function(t){return t.width},height:function(t){return t.height}},tileIcon:{width:"100%",height:"100%"}});function d(t){var e,d=t.component,n=t.width,m=t.height,o=d.family,f=(d.material,c({width:n,height:m}));return e="bit"===o?"/static/media/50e73f59728296f6d5a248384d53193a.svg":"pdm"===o?"/static/media/d8f7c4b371a4666ca44cae9ec3058c26.svg":"rss"===o?"/static/media/bf34c472868f0f04afd2523062f9f363.svg":"stabilizer"===o?"/static/media/3f3100ae49e552599e0bbd9b60eb783d.svg":a,r(i,{title:s[o]||s.other,placement:"bottom",children:r("div",{className:f.iconWrapper,children:r("img",{src:e,className:f.tileIcon,alt:o})})})}d.propTypes={width:t.string.isRequired,height:t.number.isRequired,component:t.shape({family:t.string,material:t.string,bit_type:t.string}).isRequired};export{d as default};
|