nzk-react-components 3.0.0-1 → 3.0.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
- "use strict";var o,n=require("../../_virtual/_tslib.js"),e=require("styled-components"),r=require("polished"),t=function(o,n){return o.height*n/64};exports.getPadding=function(o){return"".concat(.001*o.height,"px ").concat(o.height/2,"px")},exports.getShadows=function(a){var x=r.getLuminance(a.backgroundColor),p=a.shadowColor||x&&r.darken(.2,a.backgroundColor)||!x&&r.lighten(.2,a.backgroundColor),i=a.dropShadowColor||"rgba(0,0,0,0.3)",s=a.strokeColor||x&&r.lighten(.1,a.backgroundColor)||!x&&r.darken(.1,a.backgroundColor);return e.css(o||(o=n.__makeTemplateObject(["\n box-shadow: 0 ","px 0 ",",\n 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n\n :active {\n transform: translateY(","px);\n box-shadow: 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n }\n "],["\n box-shadow: 0 ","px 0 ",",\n 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n\n :active {\n transform: translateY(","px);\n box-shadow: 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n }\n "])),t(a,5),p,t(a,12),i,t(a,5),s,t(a,7),t(a,5),p,t(a,5),s)},exports.getSizeComparedToBase=t,exports.getTextColor=function(o){return o.color?o.color:o.backgroundColor&&r.getLuminance(o.backgroundColor)<=.5?"#fff":"#000"},exports.getTextSize=function(o){return function(o){return Boolean(o.fontSize)}(o)?o.fontSize:"".concat(o.height/2.5,"px")};
1
+ "use strict";var n,o=require("../../_virtual/_tslib.js"),e=require("styled-components"),r=require("polished"),t=function(n,o){return n.height*o/64};exports.getPadding=function(n){return"".concat(.001*n.height,"px ").concat(n.height/2,"px")},exports.getShadows=function(a){var x=r.getLuminance(a.backgroundColor),p=a.shadowColor||x&&r.darken(.2,a.backgroundColor)||!x&&r.lighten(.2,a.backgroundColor),i=a.dropShadowColor||"rgba(0,0,0,0.3)",s=a.strokeColor||x&&r.lighten(.1,a.backgroundColor)||!x&&r.darken(.1,a.backgroundColor);return e.css(n||(n=o.__makeTemplateObject(["\n box-shadow:\n 0 ","px 0 ",",\n 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n\n &:active {\n transform: translateY(","px);\n box-shadow:\n 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n }\n "],["\n box-shadow:\n 0 ","px 0 ",",\n 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n\n &:active {\n transform: translateY(","px);\n box-shadow:\n 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n }\n "])),t(a,5),p,t(a,12),i,t(a,5),s,t(a,7),t(a,5),p,t(a,5),s)},exports.getSizeComparedToBase=t,exports.getTextColor=function(n){return n.color?n.color:n.backgroundColor&&r.getLuminance(n.backgroundColor)<=.5?"#fff":"#000"},exports.getTextSize=function(n){return function(n){return Boolean(n.fontSize)}(n)?n.fontSize:"".concat(n.height/2.5,"px")};
@@ -1 +1 @@
1
- import{__makeTemplateObject as o}from"../../_virtual/_tslib.js";import{css as n}from"styled-components";import{getLuminance as r,darken as t,lighten as p}from"polished";var a,x=function(o){return o.color?o.color:o.backgroundColor&&r(o.backgroundColor)<=.5?"#fff":"#000"},e=function(o){return function(o){return Boolean(o.fontSize)}(o)?o.fontSize:"".concat(o.height/2.5,"px")},c=function(o){return"".concat(.001*o.height,"px ").concat(o.height/2,"px")},i=function(o,n){return o.height*n/64},u=function(x){var e=r(x.backgroundColor),c=x.shadowColor||e&&t(.2,x.backgroundColor)||!e&&p(.2,x.backgroundColor),u=x.dropShadowColor||"rgba(0,0,0,0.3)",l=x.strokeColor||e&&p(.1,x.backgroundColor)||!e&&t(.1,x.backgroundColor);return n(a||(a=o(["\n box-shadow: 0 ","px 0 ",",\n 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n\n :active {\n transform: translateY(","px);\n box-shadow: 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n }\n "],["\n box-shadow: 0 ","px 0 ",",\n 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n\n :active {\n transform: translateY(","px);\n box-shadow: 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n }\n "])),i(x,5),c,i(x,12),u,i(x,5),l,i(x,7),i(x,5),c,i(x,5),l)};export{c as getPadding,u as getShadows,i as getSizeComparedToBase,x as getTextColor,e as getTextSize};
1
+ import{__makeTemplateObject as o}from"../../_virtual/_tslib.js";import{css as n}from"styled-components";import{getLuminance as r,darken as t,lighten as p}from"polished";var a,x=function(o){return o.color?o.color:o.backgroundColor&&r(o.backgroundColor)<=.5?"#fff":"#000"},e=function(o){return function(o){return Boolean(o.fontSize)}(o)?o.fontSize:"".concat(o.height/2.5,"px")},c=function(o){return"".concat(.001*o.height,"px ").concat(o.height/2,"px")},i=function(o,n){return o.height*n/64},u=function(x){var e=r(x.backgroundColor),c=x.shadowColor||e&&t(.2,x.backgroundColor)||!e&&p(.2,x.backgroundColor),u=x.dropShadowColor||"rgba(0,0,0,0.3)",l=x.strokeColor||e&&p(.1,x.backgroundColor)||!e&&t(.1,x.backgroundColor);return n(a||(a=o(["\n box-shadow:\n 0 ","px 0 ",",\n 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n\n &:active {\n transform: translateY(","px);\n box-shadow:\n 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n }\n "],["\n box-shadow:\n 0 ","px 0 ",",\n 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n\n &:active {\n transform: translateY(","px);\n box-shadow:\n 0 ","px 0 ",",\n inset 0 0px 0px ","px ",";\n }\n "])),i(x,5),c,i(x,12),u,i(x,5),l,i(x,7),i(x,5),c,i(x,5),l)};export{c as getPadding,u as getShadows,i as getSizeComparedToBase,x as getTextColor,e as getTextSize};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nzk-react-components",
3
- "version": "3.0.0-1",
3
+ "version": "3.0.0-2",
4
4
  "license": "MIT",
5
5
  "main": "dist/cjs/index.js",
6
6
  "files": [