@muil/charts
Advanced tools
Comparing version 0.0.8-alpha-4 to 0.0.8-alpha-6
@@ -1,1 +0,1 @@ | ||
module.exports=function(n){var e={};function t(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return n[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var a in n)t.d(r,a,function(e){return n[e]}.bind(null,a));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=2)}([function(n,e){n.exports=require("react")},function(n,e){n.exports=require("styled-components")},function(n,e,t){"use strict";t.r(e);var r=t(0),a=t.n(r),u=t(1),l=t.n(u);function c(){var n=w(["\n width: ","%;\n height: 30px;\n background: ",";\n display: inline-block;\n vertical-align: middle;\n"]);return c=function(){return n},n}function o(){var n=w(["\n width: 100%;\n white-space: nowrap;\n > span {\n margin-left: 5px;\n }\n"]);return o=function(){return n},n}function i(){var n=w(["\n vertical-align: bottom;\n text-align: center;\n"]);return i=function(){return n},n}function f(){var n=w(["\n width: 5%;\n"]);return f=function(){return n},n}function m(){var n=w(["\n display: inline-block;\n max-width: 50px;\n"]);return m=function(){return n},n}function d(){var n=w(["\n > td {\n padding: 6px;\n font-size: 14px;\n vertical-align: top;\n }\n"]);return d=function(){return n},n}function s(){var n=w(["\n font-size: 12px;\n color: #929292;\n"]);return s=function(){return n},n}function p(){var n=w(["\n height: ","%;\n background: ",";\n min-width: 18px;\n"]);return p=function(){return n},n}function v(){var n=w(["\n height: 100%;\n > td {\n border-bottom: 1px solid #d5d5d4;\n }\n"]);return v=function(){return n},n}function g(){var n=w(["\n display: inline-block;\n width: 12px;\n height: 12px;\n margin-right: 7px;\n background: ",";\n"]);return g=function(){return n},n}function h(){var n=w(["\n height: 6px;\n"]);return h=function(){return n},n}function b(){var n=w(["\n font-size: 12px;\n"]);return b=function(){return n},n}function E(){var n=w(["\n ",";\n width: 100%;\n max-width: ","px;\n"]);return E=function(){return n},n}function x(){var n=w(["\n ",";\n height: ","px;\n"]);return x=function(){return n},n}function y(){var n=w(["\n font-family: Arial;\n padding-top: 20px;\n"]);return y=function(){return n},n}function w(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}var N=Object(u.css)(y()),j=l.a.table(x(),N,(function(n){return n.height||200})),k=l.a.table(E(),N,(function(n){return n.width||200})),O=l.a.td(b()),S=l.a.td(h()),P=l.a.div(g(),(function(n){return n.color})),z=l.a.tr(v()),_=l.a.div(p(),(function(n){return n.value}),(function(n){return n.color||"#17a2b8"})),F=l.a.span(s()),M=l.a.tr(d()),q=l.a.span(m()),B=l.a.td(f()),C=l.a.td(i()),T=l.a.td(o()),A=l.a.div(c(),(function(n){return n.value}),(function(n){return n.color||"#17a2b8"})),H=function(n){var e=n.className,t=n.height,r=n.series,u=void 0===r?[]:r,l=n.categories,c=n.legend,o=void 0!==c&&c;return a.a.createElement(j,{className:e,cellSpacing:"0",cellPadding:"0",height:t},o&&a.a.createElement(a.a.Fragment,null,l.map((function(n,e){var t=n.label,r=n.color;return a.a.createElement(a.a.Fragment,{key:e},a.a.createElement("tr",null,a.a.createElement(O,{className:"category-row",colSpan:l.length*u.length},a.a.createElement(P,{color:r}),a.a.createElement("span",null,t))),a.a.createElement("tr",null,a.a.createElement(S,{className:"category-space"})))})),a.a.createElement("tr",{style:{height:30}})),a.a.createElement(z,{className:"columns"},u.map((function(n,e){var t=n.data,r=n.value;return a.a.createElement(a.a.Fragment,{key:e},(t||[r]).map((function(n,e){return a.a.createElement(C,{key:e,className:"column"},a.a.createElement(F,{className:"column label"},n),a.a.createElement(_,{value:n,color:l[e].color,className:"column bar"}))})),e<u.length-1&&a.a.createElement(B,null))}))),a.a.createElement(M,{className:"labels"},u.map((function(n,e){var t=n.label;return a.a.createElement(a.a.Fragment,{key:e},a.a.createElement(C,{colSpan:l.length,className:"label"},a.a.createElement(q,null,t)),e<u.length-1&&a.a.createElement(B,null))}))))},D=function(n){var e=n.className,t=n.color,r=n.width,u=n.values,l=void 0===u?[]:u;return a.a.createElement(k,{className:e,width:r},l.map((function(n,e){var r=n.label,u=n.value;return a.a.createElement("tr",{key:e},a.a.createElement("td",null,a.a.createElement(q,null,r)),a.a.createElement(T,null,a.a.createElement(A,{value:u,color:t}),a.a.createElement(F,null,u)))})))};t.d(e,"BarChart",(function(){return H})),t.d(e,"HorizontalBarChart",(function(){return D}))}]); | ||
module.exports=function(n){var e={};function t(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return n[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var a in n)t.d(r,a,function(e){return n[e]}.bind(null,a));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},t.p="",t(t.s=2)}([function(n,e){n.exports=require("react")},function(n,e){n.exports=require("styled-components")},function(n,e,t){"use strict";t.r(e);var r=t(0),a=t.n(r),c=t(1),l=t.n(c);function u(){var n=k(["\n max-width: 30%;\n > span {\n margin-right: 10px;\n }\n"]);return u=function(){return n},n}function i(){var n=k(["\n height: 10px;\n"]);return i=function(){return n},n}function o(){var n=k(["\n width: ","%;\n height: 100%;\n min-height: 25px;\n background: ",";\n display: inline-block;\n vertical-align: middle;\n"]);return o=function(){return n},n}function f(){var n=k(["\n width: 75%;\n white-space: nowrap;\n > span {\n margin-left: 5px;\n }\n"]);return f=function(){return n},n}function m(){var n=k(["\n vertical-align: bottom;\n text-align: center;\n"]);return m=function(){return n},n}function s(){var n=k(["\n width: 5%;\n"]);return s=function(){return n},n}function d(){var n=k(["\n display: inline-block;\n max-width: 50px;\n"]);return d=function(){return n},n}function p(){var n=k(["\n > td {\n padding: 6px;\n font-size: 14px;\n vertical-align: top;\n }\n"]);return p=function(){return n},n}function g(){var n=k(["\n font-size: 12px;\n color: #929292;\n"]);return g=function(){return n},n}function v(){var n=k(["\n height: ","%;\n background: ",";\n min-width: 18px;\n"]);return v=function(){return n},n}function h(){var n=k(["\n height: 100%;\n > td {\n border-bottom: 1px solid #d5d5d4;\n }\n"]);return h=function(){return n},n}function b(){var n=k(["\n display: inline-block;\n width: 12px;\n height: 12px;\n margin-right: 7px;\n background: ",";\n"]);return b=function(){return n},n}function x(){var n=k(["\n height: 6px;\n"]);return x=function(){return n},n}function E(){var n=k(["\n font-size: 12px;\n"]);return E=function(){return n},n}function y(){var n=k(["\n ",";\n width: 95%;\n max-width: ","px;\n"]);return y=function(){return n},n}function w(){var n=k(["\n ",";\n height: ","px;\n"]);return w=function(){return n},n}function N(){var n=k(["\n font-family: Arial;\n padding-top: 20px;\n"]);return N=function(){return n},n}function k(n,e){return e||(e=n.slice(0)),Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(e)}}))}var j=Object(c.css)(N()),O=l.a.table(w(),j,(function(n){return n.height||200})),S=l.a.table(y(),j,(function(n){return n.maxWidth||200})),P=l.a.td(E()),z=l.a.td(x()),_=l.a.div(b(),(function(n){return n.color})),F=l.a.tr(h()),M=l.a.div(v(),(function(n){return n.value}),(function(n){return n.color||"#17a2b8"})),W=l.a.span(g()),q=l.a.tr(p()),B=l.a.span(d()),C=l.a.td(s()),T=l.a.td(m()),A=l.a.td(f()),H=l.a.div(o(),(function(n){return n.value}),(function(n){return n.color||"#17a2b8"})),D=l.a.tr(i()),G=l.a.td(u()),I=function(n){var e=n.categories;return a.a.createElement(a.a.Fragment,null,e.map((function(n,e){var t=n.label,r=n.color;return a.a.createElement(a.a.Fragment,{key:e},a.a.createElement("tr",null,a.a.createElement(P,{className:"category-row",colSpan:"100%"},a.a.createElement(_,{color:r}),a.a.createElement("span",null,t))),a.a.createElement("tr",null,a.a.createElement(z,{className:"category-space"})))})),a.a.createElement("tr",{style:{height:30}}))},J=function(n){var e=n.className,t=n.height,r=n.series,c=void 0===r?[]:r,l=n.categories,u=n.legend,i=void 0!==u&&u;return a.a.createElement(O,{className:e,cellSpacing:"0",cellPadding:"0",height:t},i&&a.a.createElement(I,{categories:l}),a.a.createElement(F,{className:"columns"},c.map((function(n,e){var t=n.data,r=n.value;return a.a.createElement(a.a.Fragment,{key:e},(t||[r]).map((function(n,e){return a.a.createElement(T,{key:e,className:"column"},a.a.createElement(W,{className:"column label"},n),a.a.createElement(M,{value:n,color:l[e].color,className:"column bar"}))})),e<c.length-1&&a.a.createElement(C,null))}))),a.a.createElement(q,{className:"labels"},c.map((function(n,e){var t=n.label;return a.a.createElement(a.a.Fragment,{key:e},a.a.createElement(T,{colSpan:l.length,className:"label"},a.a.createElement(B,null,t)),e<c.length-1&&a.a.createElement(C,null))}))))},K=function(n){var e=n.className,t=n.maxWidth,r=n.series,c=void 0===r?[]:r,l=n.categories,u=n.legend,i=void 0!==u&&u;return a.a.createElement(S,{className:e,maxWidth:t,cellSpacing:"0",cellPadding:"0"},i&&a.a.createElement(I,{categories:l}),c.map((function(n,e){var t=n.label,r=n.value,c=n.data;return a.a.createElement(a.a.Fragment,{key:e},(c||[r]).map((function(n,e){return a.a.createElement("tr",{key:e},0===e&&a.a.createElement(G,{rowSpan:l.length,className:"label"},a.a.createElement("span",null,t)),a.a.createElement(A,null,a.a.createElement(H,{value:n,color:l[e].color,className:"column bar"}),a.a.createElement(W,{className:"column label"},n)))})),a.a.createElement(D,null))})))};t.d(e,"BarChart",(function(){return J})),t.d(e,"HorizontalBarChart",(function(){return K}))}]); |
{ | ||
"name": "@muil/charts", | ||
"version": "0.0.8-alpha-4", | ||
"version": "0.0.8-alpha-6", | ||
"license": "UNLICENSED", | ||
@@ -12,3 +12,3 @@ "scripts": { | ||
"main": "lib/index.js", | ||
"gitHead": "30b5ed9817b114ce613196ffa80942fd41ec3ca9" | ||
"gitHead": "476df96c5c1ed5869a677d8a726a33f9a307458c" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6020