@twilio-paste/absolute
Advanced tools
Comparing version 2.0.14 to 2.0.15
@@ -6,2 +6,13 @@ # Change Log | ||
## [2.0.15](https://github.com/twilio-labs/paste/compare/@twilio-paste/absolute@2.0.14...@twilio-paste/absolute@2.0.15) (2020-02-26) | ||
### Bug Fixes | ||
* package dependencies and deprecation warnings ([#334](https://github.com/twilio-labs/paste/issues/334)) ([0e88338](https://github.com/twilio-labs/paste/commit/0e88338511e6835a79eb0a9cea8d5b3a1cdf0a88)) | ||
## [2.0.14](https://github.com/twilio-labs/paste/compare/@twilio-paste/absolute@2.0.13...@twilio-paste/absolute@2.0.14) (2020-02-14) | ||
@@ -8,0 +19,0 @@ |
@@ -1,1 +0,1 @@ | ||
import t from"@emotion/styled";import{zIndex as l,top as o,right as i,bottom as f,left as e}from"styled-system";import{Box as _}from"@twilio-paste/box";var r=["fill","left","left_top","left_bottom","left_fill","top_left","top_fill","bottom_left","bottom_fill"],p=["fill","right","right_top","right_bottom","right_fill","top_right","top_fill","bottom_right","bottom_fill"],m=["fill","top","top_right","top_left","top_fill","right_top","right_fill","left_top","left_fill"],b=["fill","bottom","bottom_right","bottom_left","bottom_fill","right_bottom","right_fill","left_bottom","left_fill"],s=t(_)((function(t){var l=t.preset,o={};return null==l?o:(r.includes(l)&&(o.left=0),p.includes(l)&&(o.right=0),m.includes(l)&&(o.top=0),b.includes(l)&&(o.bottom=0),o)}),l,o,i,f,e,{position:"absolute"});s.defaultProps={preset:"fill"};export{s as Absolute}; | ||
import t from"@emotion/styled";import{zIndex as l,top as o,right as i,bottom as f,left as e}from"styled-system";import{Box as _}from"@twilio-paste/box";var r=["fill","left","left_top","left_bottom","left_fill","top_left","top_fill","bottom_left","bottom_fill"],p=["fill","right","right_top","right_bottom","right_fill","top_right","top_fill","bottom_right","bottom_fill"],m=["fill","top","top_right","top_left","top_fill","right_top","right_fill","left_top","left_fill"],b=["fill","bottom","bottom_right","bottom_left","bottom_fill","right_bottom","right_fill","left_bottom","left_fill"],s=t(_)((function(t){var l=t.preset,o={};return null==l||(r.includes(l)&&(o.left=0),p.includes(l)&&(o.right=0),m.includes(l)&&(o.top=0),b.includes(l)&&(o.bottom=0)),o}),l,o,i,f,e,{position:"absolute"});s.defaultProps={preset:"fill"};export{s as Absolute}; |
@@ -1,1 +0,1 @@ | ||
"use strict";function _interopDefault(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(exports,"__esModule",{value:!0});var styled=_interopDefault(require("@emotion/styled")),styledSystem=require("styled-system"),box=require("@twilio-paste/box"),LEFT_OPTIONS=["fill","left","left_top","left_bottom","left_fill","top_left","top_fill","bottom_left","bottom_fill"],RIGHT_OPTIONS=["fill","right","right_top","right_bottom","right_fill","top_right","top_fill","bottom_right","bottom_fill"],TOP_OPTIONS=["fill","top","top_right","top_left","top_fill","right_top","right_fill","left_top","left_fill"],BOTTOM_OPTIONS=["fill","bottom","bottom_right","bottom_left","bottom_fill","right_bottom","right_fill","left_bottom","left_fill"],preset=function(t){var e=t.preset,l={};return null==e?l:(LEFT_OPTIONS.includes(e)&&(l.left=0),RIGHT_OPTIONS.includes(e)&&(l.right=0),TOP_OPTIONS.includes(e)&&(l.top=0),BOTTOM_OPTIONS.includes(e)&&(l.bottom=0),l)},Absolute=styled(box.Box)(preset,styledSystem.zIndex,styledSystem.top,styledSystem.right,styledSystem.bottom,styledSystem.left,{position:"absolute"});Absolute.defaultProps={preset:"fill"},exports.Absolute=Absolute; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,l=(t=require("@emotion/styled"))&&"object"==typeof t&&"default"in t?t.default:t,o=require("styled-system"),e=require("@twilio-paste/box"),i=["fill","left","left_top","left_bottom","left_fill","top_left","top_fill","bottom_left","bottom_fill"],f=["fill","right","right_top","right_bottom","right_fill","top_right","top_fill","bottom_right","bottom_fill"],r=["fill","top","top_right","top_left","top_fill","right_top","right_fill","left_top","left_fill"],_=["fill","bottom","bottom_right","bottom_left","bottom_fill","right_bottom","right_fill","left_bottom","left_fill"],p=l(e.Box)((function(t){var l=t.preset,o={};return null==l||(i.includes(l)&&(o.left=0),f.includes(l)&&(o.right=0),r.includes(l)&&(o.top=0),_.includes(l)&&(o.bottom=0)),o}),o.zIndex,o.top,o.right,o.bottom,o.left,{position:"absolute"});p.defaultProps={preset:"fill"},exports.Absolute=p; |
{ | ||
"name": "@twilio-paste/absolute", | ||
"version": "2.0.14", | ||
"version": "2.0.15", | ||
"category": "layout", | ||
@@ -32,3 +32,6 @@ "status": "alpha", | ||
"@emotion/styled": "^10.0.10", | ||
"@twilio-paste/box": "^2.1.8", | ||
"@twilio-paste/box": "^2.1.9", | ||
"@twilio-paste/design-tokens": "^4.1.2", | ||
"@twilio-paste/style-props": "^0.1.7", | ||
"@twilio-paste/theme-tokens": "^3.0.3", | ||
"prop-types": "^15.7.2", | ||
@@ -40,13 +43,23 @@ "react": "^16.8.6", | ||
"devDependencies": { | ||
"@twilio-paste/box": "^2.1.9", | ||
"@babel/core": "^7.8.4", | ||
"@emotion/core": "^10.0.10", | ||
"@emotion/styled": "^10.0.10", | ||
"@rollup/plugin-commonjs": "^11.0.2", | ||
"@rollup/plugin-node-resolve": "^7.1.1", | ||
"@twilio-paste/box": "^2.1.10", | ||
"@twilio-paste/design-tokens": "^4.1.3", | ||
"@twilio-paste/style-props": "^0.1.8", | ||
"@twilio-paste/theme-tokens": "^3.0.4", | ||
"prop-types": "^15.7.2", | ||
"react": "^16.8.6", | ||
"react-dom": "^16.8.6", | ||
"rollup": "^1.16.2", | ||
"rollup-plugin-babel": "^4.3.3", | ||
"rollup-plugin-commonjs": "^10.0.1", | ||
"rollup-plugin-node-resolve": "^5.1.0", | ||
"rollup-plugin-terser": "^5.0.0", | ||
"rollup-plugin-typescript2": "^0.21.2", | ||
"styled-system": "^5.1.2", | ||
"typedoc": "^0.16.9", | ||
"typescript": "^3.5.2" | ||
"typescript": "3.7.5" | ||
}, | ||
"gitHead": "a2944bbb69844c5c39b0a47e8db00732caa4e0bd" | ||
"gitHead": "2cf3ec5e09466356561b22bb22d4402d93ebaabd" | ||
} |
Sorry, the diff of this file is too big to display
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 1 instance in 1 package
272367
9
19
11905