@data-ui/theme
Advanced tools
Comparing version 0.0.73 to 0.0.74
@@ -1,1 +0,1 @@ | ||
import"core-js/modules/es6.number.constructor";import"core-js/modules/es6.object.assign";import color from"./color";import font from"./font";import{tickLabels,baseLabel}from"./svgLabel";import{unit}from"./size";export var colors=color;export var labelStyles=Object.assign({},baseLabel,font.light);export var gridStyles={stroke:colors.grid,strokeWidth:1};export var xAxisStyles={stroke:colors.gridDark,strokeWidth:2,label:{bottom:Object.assign({},baseLabel),top:Object.assign({},baseLabel)}};export var yAxisStyles={stroke:colors.grid,strokeWidth:1,label:{left:Object.assign({},baseLabel),right:Object.assign({},baseLabel)}};export var xTickStyles={stroke:colors.grid,length:+unit,label:{bottom:Object.assign({},tickLabels.bottom),top:Object.assign({},tickLabels.top)}};export var yTickStyles={stroke:colors.grid,length:+unit,label:{left:Object.assign({},tickLabels.left),right:Object.assign({},tickLabels.right)}};export default{colors:colors,labelStyles:labelStyles,gridStyles:gridStyles,xAxisStyles:xAxisStyles,xTickStyles:xTickStyles,yAxisStyles:yAxisStyles,yTickStyles:yTickStyles}; | ||
function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}import color from"./color";import font from"./font";import{tickLabels,baseLabel}from"./svgLabel";import{unit}from"./size";export var colors=color;export var labelStyles=_extends({},baseLabel,font.light);export var gridStyles={stroke:colors.grid,strokeWidth:1};export var xAxisStyles={stroke:colors.gridDark,strokeWidth:2,label:{bottom:_extends({},baseLabel),top:_extends({},baseLabel)}};export var yAxisStyles={stroke:colors.grid,strokeWidth:1,label:{left:_extends({},baseLabel),right:_extends({},baseLabel)}};export var xTickStyles={stroke:colors.grid,length:+unit,label:{bottom:_extends({},tickLabels.bottom),top:_extends({},tickLabels.top)}};export var yTickStyles={stroke:colors.grid,length:+unit,label:{left:_extends({},tickLabels.left),right:_extends({},tickLabels.right)}};export default{colors:colors,labelStyles:labelStyles,gridStyles:gridStyles,xAxisStyles:xAxisStyles,xTickStyles:xTickStyles,yAxisStyles:yAxisStyles,yTickStyles:yTickStyles}; |
@@ -1,4 +0,4 @@ | ||
import"core-js/modules/web.dom.iterable";import"core-js/modules/es6.array.iterator";import"core-js/modules/es6.object.keys";// source https://yeun.github.io/open-color/ | ||
// source https://yeun.github.io/open-color/ | ||
export var allColors={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e8f7ff","#ccedff","#a3daff","#72c3fc","#4dadf7","#329af0","#228ae6","#1c7cd6","#1b6ec2","#1862ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]};export var grayColors=allColors.gray;var DEFAULT_BRIGHTNESS=6,DEFAULT_BRIGHTNESS_DARK=2;export var getPaletteForBrightness=function(a,b){void 0===a&&(a=DEFAULT_BRIGHTNESS),void 0===b&&(b=["cyan","yellow","pink","grape","blue","lime","teal","red","violet","orange","indigo","green"]);// sanity check indices | ||
var c=Math.max(0,Math.min(a,allColors.red.length-1));// filter non-sensical hues | ||
return b.map(function(a){return allColors[a]&&allColors[a][c]}).filter(function(a){return a})};var primaryHue="cyan";export var colorHues=Object.keys(allColors).sort();export var textColor=grayColors[7];export default{default:allColors[primaryHue][5],dark:allColors[primaryHue][7],light:allColors[primaryHue][3],disabled:textColor,lightDisabled:grayColors[3],text:textColor,black:grayColors[9],darkGray:grayColors[8],lightGray:grayColors[3],grid:grayColors[4],gridDark:grayColors[8],label:textColor,tickLabel:textColor,grays:grayColors,categories:getPaletteForBrightness(DEFAULT_BRIGHTNESS).concat(getPaletteForBrightness(DEFAULT_BRIGHTNESS_DARK))}; |
@@ -1,3 +0,3 @@ | ||
import"core-js/modules/es6.object.assign";import{textColor}from"./color";var getFont=function(a){var b=a.fontFamily,c=a.fontSize,d=a.letterSpacing,e=void 0===d?0:d,f=a.lineHeight,g=a.padding;return{color:textColor,fontFamily:b,fontSize:c,letterSpacing:e,lineHeight:f+"px",paddingBottom:g,paddingTop:g}},fontFamily="BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif";export default{fontFamily:fontFamily,// weights | ||
function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}import{textColor}from"./color";var getFont=function(a){var b=a.fontFamily,c=a.fontSize,d=a.letterSpacing,e=void 0===d?0:d,f=a.lineHeight,g=a.padding;return{color:textColor,fontFamily:b,fontSize:c,letterSpacing:e,lineHeight:f+"px",paddingBottom:g,paddingTop:g}},fontFamily="BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif";export default{fontFamily:fontFamily,// weights | ||
light:{fontWeight:200},bold:{fontWeight:700},// size | ||
tiny:Object.assign({},getFont({fontFamily:fontFamily,fontSize:10,lineHeight:12,letterSpacing:.4})),small:Object.assign({},getFont({fontFamily:fontFamily,fontSize:12,lineHeight:16,letterSpacing:.4})),regular:Object.assign({},getFont({fontFamily:fontFamily,fontSize:14,lineHeight:18,letterSpacing:.2})),large:Object.assign({},getFont({fontFamily:fontFamily,fontSize:18,lineHeight:24,spacing:0}))}; | ||
tiny:_extends({},getFont({fontFamily:fontFamily,fontSize:10,lineHeight:12,letterSpacing:.4})),small:_extends({},getFont({fontFamily:fontFamily,fontSize:12,lineHeight:16,letterSpacing:.4})),regular:_extends({},getFont({fontFamily:fontFamily,fontSize:14,lineHeight:18,letterSpacing:.2})),large:_extends({},getFont({fontFamily:fontFamily,fontSize:18,lineHeight:24,spacing:0}))}; |
@@ -1,4 +0,4 @@ | ||
import"core-js/modules/es6.object.assign";import{textColor}from"./color";var getSvgFont=function(a){var b=a.fontFamily,c=a.fontSize,d=a.letterSpacing;return{fill:textColor,stroke:"none",fontFamily:b,fontSize:c,letterSpacing:d}},fontFamily="BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif";export default{fontFamily:fontFamily,// weights | ||
function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}import{textColor}from"./color";var getSvgFont=function(a){var b=a.fontFamily,c=a.fontSize,d=a.letterSpacing;return{fill:textColor,stroke:"none",fontFamily:b,fontSize:c,letterSpacing:d}},fontFamily="BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif";export default{fontFamily:fontFamily,// weights | ||
light:{fontWeight:200},bold:{fontWeight:700},// alignment | ||
start:{textAnchor:"start"},middle:{textAnchor:"middle"},end:{textAnchor:"end"},// size | ||
tiny:Object.assign({},getSvgFont({fontFamily:fontFamily,fontSize:10,letterSpacing:.4})),small:Object.assign({},getSvgFont({fontFamily:fontFamily,fontSize:12,letterSpacing:.4})),regular:Object.assign({},getSvgFont({fontFamily:fontFamily,fontSize:14,letterSpacing:.2})),large:Object.assign({},getSvgFont({fontFamily:fontFamily,fontSize:18,spacing:0}))}; | ||
tiny:_extends({},getSvgFont({fontFamily:fontFamily,fontSize:10,letterSpacing:.4})),small:_extends({},getSvgFont({fontFamily:fontFamily,fontSize:12,letterSpacing:.4})),regular:_extends({},getSvgFont({fontFamily:fontFamily,fontSize:14,letterSpacing:.2})),large:_extends({},getSvgFont({fontFamily:fontFamily,fontSize:18,spacing:0}))}; |
@@ -1,1 +0,1 @@ | ||
import"core-js/modules/es6.string.bold";import"core-js/modules/es6.string.small";import"core-js/modules/es6.object.assign";import font from"./svgFont";export var baseLabel=Object.assign({},font.small,font.bold,font.middle,{pointerEvents:"none"});export var labelTiny=Object.assign({},font.tiny,font.bold,font.middle,{pointerEvents:"none"});export var baseTickLabel=Object.assign({},font.small,font.light,font.middle,{pointerEvents:"none"});export var tickLabels={top:Object.assign({},baseTickLabel,{dy:"-0.25em"}),right:Object.assign({},baseTickLabel,font.start,{dx:"0.25em",dy:"0.25em"}),bottom:Object.assign({},baseTickLabel,{dy:"0.25em"}),left:Object.assign({},baseTickLabel,font.end,{dx:"-0.25em",dy:"0.25em"})};export default{baseLabel:baseLabel,baseTickLabel:baseTickLabel,tickLabels:tickLabels}; | ||
function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}import font from"./svgFont";export var baseLabel=_extends({},font.small,font.bold,font.middle,{pointerEvents:"none"});export var labelTiny=_extends({},font.tiny,font.bold,font.middle,{pointerEvents:"none"});export var baseTickLabel=_extends({},font.small,font.light,font.middle,{pointerEvents:"none"});export var tickLabels={top:_extends({},baseTickLabel,{dy:"-0.25em"}),right:_extends({},baseTickLabel,font.start,{dx:"0.25em",dy:"0.25em"}),bottom:_extends({},baseTickLabel,{dy:"0.25em"}),left:_extends({},baseTickLabel,font.end,{dx:"-0.25em",dy:"0.25em"})};export default{baseLabel:baseLabel,baseTickLabel:baseTickLabel,tickLabels:tickLabels}; |
@@ -1,1 +0,1 @@ | ||
"use strict";exports.__esModule=!0,exports.default=exports.yTickStyles=exports.xTickStyles=exports.yAxisStyles=exports.xAxisStyles=exports.gridStyles=exports.labelStyles=exports.colors=void 0,require("core-js/modules/es6.number.constructor"),require("core-js/modules/es6.object.assign");var _color=_interopRequireDefault(require("./color")),_font=_interopRequireDefault(require("./font")),_svgLabel=require("./svgLabel"),_size=require("./size");function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var colors=_color.default;exports.colors=colors;var labelStyles=Object.assign({},_svgLabel.baseLabel,_font.default.light);exports.labelStyles=labelStyles;var gridStyles={stroke:colors.grid,strokeWidth:1};exports.gridStyles=gridStyles;var xAxisStyles={stroke:colors.gridDark,strokeWidth:2,label:{bottom:Object.assign({},_svgLabel.baseLabel),top:Object.assign({},_svgLabel.baseLabel)}};exports.xAxisStyles=xAxisStyles;var yAxisStyles={stroke:colors.grid,strokeWidth:1,label:{left:Object.assign({},_svgLabel.baseLabel),right:Object.assign({},_svgLabel.baseLabel)}};exports.yAxisStyles=yAxisStyles;var xTickStyles={stroke:colors.grid,length:+_size.unit,label:{bottom:Object.assign({},_svgLabel.tickLabels.bottom),top:Object.assign({},_svgLabel.tickLabels.top)}};exports.xTickStyles=xTickStyles;var yTickStyles={stroke:colors.grid,length:+_size.unit,label:{left:Object.assign({},_svgLabel.tickLabels.left),right:Object.assign({},_svgLabel.tickLabels.right)}};exports.yTickStyles=yTickStyles;var _default={colors:colors,labelStyles:labelStyles,gridStyles:gridStyles,xAxisStyles:xAxisStyles,xTickStyles:xTickStyles,yAxisStyles:yAxisStyles,yTickStyles:yTickStyles};exports.default=_default; | ||
"use strict";exports.__esModule=!0,exports.default=exports.yTickStyles=exports.xTickStyles=exports.yAxisStyles=exports.xAxisStyles=exports.gridStyles=exports.labelStyles=exports.colors=void 0;var _color=_interopRequireDefault(require("./color")),_font=_interopRequireDefault(require("./font")),_svgLabel=require("./svgLabel"),_size=require("./size");function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var colors=_color.default;exports.colors=colors;var labelStyles=_extends({},_svgLabel.baseLabel,_font.default.light);exports.labelStyles=labelStyles;var gridStyles={stroke:colors.grid,strokeWidth:1};exports.gridStyles=gridStyles;var xAxisStyles={stroke:colors.gridDark,strokeWidth:2,label:{bottom:_extends({},_svgLabel.baseLabel),top:_extends({},_svgLabel.baseLabel)}};exports.xAxisStyles=xAxisStyles;var yAxisStyles={stroke:colors.grid,strokeWidth:1,label:{left:_extends({},_svgLabel.baseLabel),right:_extends({},_svgLabel.baseLabel)}};exports.yAxisStyles=yAxisStyles;var xTickStyles={stroke:colors.grid,length:+_size.unit,label:{bottom:_extends({},_svgLabel.tickLabels.bottom),top:_extends({},_svgLabel.tickLabels.top)}};exports.xTickStyles=xTickStyles;var yTickStyles={stroke:colors.grid,length:+_size.unit,label:{left:_extends({},_svgLabel.tickLabels.left),right:_extends({},_svgLabel.tickLabels.right)}};exports.yTickStyles=yTickStyles;var _default={colors:colors,labelStyles:labelStyles,gridStyles:gridStyles,xAxisStyles:xAxisStyles,xTickStyles:xTickStyles,yAxisStyles:yAxisStyles,yTickStyles:yTickStyles};exports.default=_default; |
@@ -1,4 +0,4 @@ | ||
"use strict";exports.__esModule=!0,exports.default=exports.textColor=exports.colorHues=exports.getPaletteForBrightness=exports.grayColors=exports.allColors=void 0,require("core-js/modules/web.dom.iterable"),require("core-js/modules/es6.array.iterator"),require("core-js/modules/es6.object.keys");// source https://yeun.github.io/open-color/ | ||
"use strict";exports.__esModule=!0,exports.default=exports.textColor=exports.colorHues=exports.getPaletteForBrightness=exports.grayColors=exports.allColors=void 0;// source https://yeun.github.io/open-color/ | ||
var allColors={red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e8f7ff","#ccedff","#a3daff","#72c3fc","#4dadf7","#329af0","#228ae6","#1c7cd6","#1b6ec2","#1862ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"]};exports.allColors=allColors;var grayColors=allColors.gray;exports.grayColors=grayColors;var DEFAULT_BRIGHTNESS=6,DEFAULT_BRIGHTNESS_DARK=2,getPaletteForBrightness=function(a,b){void 0===a&&(a=DEFAULT_BRIGHTNESS),void 0===b&&(b=["cyan","yellow","pink","grape","blue","lime","teal","red","violet","orange","indigo","green"]);// sanity check indices | ||
var c=Math.max(0,Math.min(a,allColors.red.length-1));// filter non-sensical hues | ||
return b.map(function(a){return allColors[a]&&allColors[a][c]}).filter(function(a){return a})};exports.getPaletteForBrightness=getPaletteForBrightness;var primaryHue="cyan",colorHues=Object.keys(allColors).sort();exports.colorHues=colorHues;var textColor=grayColors[7];exports.textColor=textColor;var _default={default:allColors[primaryHue][5],dark:allColors[primaryHue][7],light:allColors[primaryHue][3],disabled:textColor,lightDisabled:grayColors[3],text:textColor,black:grayColors[9],darkGray:grayColors[8],lightGray:grayColors[3],grid:grayColors[4],gridDark:grayColors[8],label:textColor,tickLabel:textColor,grays:grayColors,categories:getPaletteForBrightness(DEFAULT_BRIGHTNESS).concat(getPaletteForBrightness(DEFAULT_BRIGHTNESS_DARK))};exports.default=_default; |
@@ -1,3 +0,3 @@ | ||
"use strict";exports.__esModule=!0,exports.default=void 0,require("core-js/modules/es6.object.assign");var _color=require("./color"),getFont=function(a){var b=a.fontFamily,c=a.fontSize,d=a.letterSpacing,e=void 0===d?0:d,f=a.lineHeight,g=a.padding;return{color:_color.textColor,fontFamily:b,fontSize:c,letterSpacing:e,lineHeight:f+"px",paddingBottom:g,paddingTop:g}},fontFamily="BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif",_default={fontFamily:fontFamily,// weights | ||
"use strict";var _color=require("./color");exports.__esModule=!0,exports.default=void 0;function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var getFont=function(a){var b=a.fontFamily,c=a.fontSize,d=a.letterSpacing,e=void 0===d?0:d,f=a.lineHeight,g=a.padding;return{color:_color.textColor,fontFamily:b,fontSize:c,letterSpacing:e,lineHeight:f+"px",paddingBottom:g,paddingTop:g}},fontFamily="BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif",_default={fontFamily:fontFamily,// weights | ||
light:{fontWeight:200},bold:{fontWeight:700},// size | ||
tiny:Object.assign({},getFont({fontFamily:fontFamily,fontSize:10,lineHeight:12,letterSpacing:.4})),small:Object.assign({},getFont({fontFamily:fontFamily,fontSize:12,lineHeight:16,letterSpacing:.4})),regular:Object.assign({},getFont({fontFamily:fontFamily,fontSize:14,lineHeight:18,letterSpacing:.2})),large:Object.assign({},getFont({fontFamily:fontFamily,fontSize:18,lineHeight:24,spacing:0}))};exports.default=_default; | ||
tiny:_extends({},getFont({fontFamily:fontFamily,fontSize:10,lineHeight:12,letterSpacing:.4})),small:_extends({},getFont({fontFamily:fontFamily,fontSize:12,lineHeight:16,letterSpacing:.4})),regular:_extends({},getFont({fontFamily:fontFamily,fontSize:14,lineHeight:18,letterSpacing:.2})),large:_extends({},getFont({fontFamily:fontFamily,fontSize:18,lineHeight:24,spacing:0}))};exports.default=_default; |
@@ -1,4 +0,4 @@ | ||
"use strict";exports.__esModule=!0,exports.default=void 0,require("core-js/modules/es6.object.assign");var _color=require("./color"),getSvgFont=function(a){var b=a.fontFamily,c=a.fontSize,d=a.letterSpacing;return{fill:_color.textColor,stroke:"none",fontFamily:b,fontSize:c,letterSpacing:d}},fontFamily="BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif",_default={fontFamily:fontFamily,// weights | ||
"use strict";var _color=require("./color");exports.__esModule=!0,exports.default=void 0;function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var getSvgFont=function(a){var b=a.fontFamily,c=a.fontSize,d=a.letterSpacing;return{fill:_color.textColor,stroke:"none",fontFamily:b,fontSize:c,letterSpacing:d}},fontFamily="BlinkMacSystemFont,Roboto,Helvetica Neue,sans-serif",_default={fontFamily:fontFamily,// weights | ||
light:{fontWeight:200},bold:{fontWeight:700},// alignment | ||
start:{textAnchor:"start"},middle:{textAnchor:"middle"},end:{textAnchor:"end"},// size | ||
tiny:Object.assign({},getSvgFont({fontFamily:fontFamily,fontSize:10,letterSpacing:.4})),small:Object.assign({},getSvgFont({fontFamily:fontFamily,fontSize:12,letterSpacing:.4})),regular:Object.assign({},getSvgFont({fontFamily:fontFamily,fontSize:14,letterSpacing:.2})),large:Object.assign({},getSvgFont({fontFamily:fontFamily,fontSize:18,spacing:0}))};exports.default=_default; | ||
tiny:_extends({},getSvgFont({fontFamily:fontFamily,fontSize:10,letterSpacing:.4})),small:_extends({},getSvgFont({fontFamily:fontFamily,fontSize:12,letterSpacing:.4})),regular:_extends({},getSvgFont({fontFamily:fontFamily,fontSize:14,letterSpacing:.2})),large:_extends({},getSvgFont({fontFamily:fontFamily,fontSize:18,spacing:0}))};exports.default=_default; |
@@ -1,1 +0,1 @@ | ||
"use strict";var _svgFont=_interopRequireDefault(require("./svgFont"));exports.__esModule=!0,exports.default=exports.tickLabels=exports.baseTickLabel=exports.labelTiny=exports.baseLabel=void 0,require("core-js/modules/es6.string.bold"),require("core-js/modules/es6.string.small"),require("core-js/modules/es6.object.assign");function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}var baseLabel=Object.assign({},_svgFont.default.small,_svgFont.default.bold,_svgFont.default.middle,{pointerEvents:"none"});exports.baseLabel=baseLabel;var labelTiny=Object.assign({},_svgFont.default.tiny,_svgFont.default.bold,_svgFont.default.middle,{pointerEvents:"none"});exports.labelTiny=labelTiny;var baseTickLabel=Object.assign({},_svgFont.default.small,_svgFont.default.light,_svgFont.default.middle,{pointerEvents:"none"});exports.baseTickLabel=baseTickLabel;var tickLabels={top:Object.assign({},baseTickLabel,{dy:"-0.25em"}),right:Object.assign({},baseTickLabel,_svgFont.default.start,{dx:"0.25em",dy:"0.25em"}),bottom:Object.assign({},baseTickLabel,{dy:"0.25em"}),left:Object.assign({},baseTickLabel,_svgFont.default.end,{dx:"-0.25em",dy:"0.25em"})};exports.tickLabels=tickLabels;var _default={baseLabel:baseLabel,baseTickLabel:baseTickLabel,tickLabels:tickLabels};exports.default=_default; | ||
"use strict";var _svgFont=_interopRequireDefault(require("./svgFont"));exports.__esModule=!0,exports.default=exports.tickLabels=exports.baseTickLabel=exports.labelTiny=exports.baseLabel=void 0;function _interopRequireDefault(a){return a&&a.__esModule?a:{default:a}}function _extends(){return _extends=Object.assign||function(a){for(var b,c=1;c<arguments.length;c++)for(var d in b=arguments[c],b)Object.prototype.hasOwnProperty.call(b,d)&&(a[d]=b[d]);return a},_extends.apply(this,arguments)}var baseLabel=_extends({},_svgFont.default.small,_svgFont.default.bold,_svgFont.default.middle,{pointerEvents:"none"});exports.baseLabel=baseLabel;var labelTiny=_extends({},_svgFont.default.tiny,_svgFont.default.bold,_svgFont.default.middle,{pointerEvents:"none"});exports.labelTiny=labelTiny;var baseTickLabel=_extends({},_svgFont.default.small,_svgFont.default.light,_svgFont.default.middle,{pointerEvents:"none"});exports.baseTickLabel=baseTickLabel;var tickLabels={top:_extends({},baseTickLabel,{dy:"-0.25em"}),right:_extends({},baseTickLabel,_svgFont.default.start,{dx:"0.25em",dy:"0.25em"}),bottom:_extends({},baseTickLabel,{dy:"0.25em"}),left:_extends({},baseTickLabel,_svgFont.default.end,{dx:"-0.25em",dy:"0.25em"})};exports.tickLabels=tickLabels;var _default={baseLabel:baseLabel,baseTickLabel:baseTickLabel,tickLabels:tickLabels};exports.default=_default; |
{ | ||
"name": "@data-ui/theme", | ||
"version": "0.0.73", | ||
"version": "0.0.74", | ||
"description": "Themes for data-ui", | ||
@@ -33,3 +33,3 @@ "sideEffects": false, | ||
"devDependencies": { | ||
"@data-ui/build-config": "^0.0.28" | ||
"@data-ui/build-config": "^0.0.32" | ||
}, | ||
@@ -55,3 +55,3 @@ "beemo": { | ||
}, | ||
"gitHead": "f23385adaae8a1f7d422ee288dba0ca5540d71d3" | ||
"gitHead": "1dff24fef34cf4dd9be10429b6f3a122ba7a62d1" | ||
} |
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 2 instances in 1 package
19276
36
5