@invisionag/iris-tools
Advanced tools
Comparing version 3.0.18 to 3.0.19
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(require("@invisionag/iris-colors"), require("@invisionag/iris-settings"), require("polished")); | ||
module.exports = factory(require("@invisionag/iris-settings"), require("polished"), require("@invisionag/iris-colors")); | ||
else if(typeof define === 'function' && define.amd) | ||
define(["@invisionag/iris-colors", "@invisionag/iris-settings", "polished"], factory); | ||
define(["@invisionag/iris-settings", "polished", "@invisionag/iris-colors"], factory); | ||
else { | ||
var a = typeof exports === 'object' ? factory(require("@invisionag/iris-colors"), require("@invisionag/iris-settings"), require("polished")) : factory(root["@invisionag/iris-colors"], root["@invisionag/iris-settings"], root["polished"]); | ||
var a = typeof exports === 'object' ? factory(require("@invisionag/iris-settings"), require("polished"), require("@invisionag/iris-colors")) : factory(root["@invisionag/iris-settings"], root["polished"], root["@invisionag/iris-colors"]); | ||
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i]; | ||
} | ||
})(global, function(__WEBPACK_EXTERNAL_MODULE__invisionag_iris_colors__, __WEBPACK_EXTERNAL_MODULE__invisionag_iris_settings__, __WEBPACK_EXTERNAL_MODULE_polished__) { | ||
})(global, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__1__, __WEBPACK_EXTERNAL_MODULE__2__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -79,113 +79,160 @@ /******/ // The module cache | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = "./src/index.js"); | ||
/******/ return __webpack_require__(__webpack_require__.s = 3); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ({ | ||
/******/ ([ | ||
/* 0 */ | ||
/***/ (function(module, exports) { | ||
/***/ "./src/box-shadow.js": | ||
/*!***************************!*\ | ||
!*** ./src/box-shadow.js ***! | ||
\***************************/ | ||
/*! exports provided: shadowColor, shadowOpacity, boxShadowSmall, boxShadowLarge, boxShadow, default */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__0__; | ||
"use strict"; | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"shadowColor\", function() { return shadowColor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"shadowOpacity\", function() { return shadowOpacity; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"boxShadowSmall\", function() { return boxShadowSmall; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"boxShadowLarge\", function() { return boxShadowLarge; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"boxShadow\", function() { return boxShadow; });\n/* harmony import */ var polished__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! polished */ \"polished\");\n/* harmony import */ var polished__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(polished__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _invisionag_iris_settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @invisionag/iris-settings */ \"@invisionag/iris-settings\");\n/* harmony import */ var _invisionag_iris_settings__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_invisionag_iris_settings__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _invisionag_iris_colors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @invisionag/iris-colors */ \"@invisionag/iris-colors\");\n/* harmony import */ var _invisionag_iris_colors__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_invisionag_iris_colors__WEBPACK_IMPORTED_MODULE_2__);\n\n\n\n\nvar shadowColor = _invisionag_iris_colors__WEBPACK_IMPORTED_MODULE_2___default.a.black120;\nvar shadowOpacity = 0.25;\n\nvar boxShadowSmall = '0 0.0675em 0.125em ' + Object(polished__WEBPACK_IMPORTED_MODULE_0__[\"rgba\"])(shadowColor, shadowOpacity);\n\nvar boxShadowLarge = '0 0.25em 0.5em ' + Object(polished__WEBPACK_IMPORTED_MODULE_0__[\"rgba\"])(shadowColor, shadowOpacity) + ', ' + boxShadowSmall;\n\nvar boxShadow = function boxShadow() {\n var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'large';\n var withActiveState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n if (!_invisionag_iris_settings__WEBPACK_IMPORTED_MODULE_1__[\"settings\"].shadow) return '';\n\n var shadowStyling = 'box-shadow: ' + (size === 'large' ? boxShadowLarge : boxShadowSmall) + ';';\n var activeStyling = withActiveState ? '\\n &:active {\\n ' + shadowStyling + '\\n }\\n ' : '';\n\n return '\\n ' + activeStyling + '\\n ' + shadowStyling + '\\n ';\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n boxShadowSmall: boxShadowSmall,\n boxShadowLarge: boxShadowLarge,\n boxShadow: boxShadow\n});\n\n//# sourceURL=webpack:///./src/box-shadow.js?"); | ||
/***/ }), | ||
/* 1 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__1__; | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, exports) { | ||
/***/ "./src/calc.js": | ||
/*!*********************!*\ | ||
!*** ./src/calc.js ***! | ||
\*********************/ | ||
/*! exports provided: default */ | ||
module.exports = __WEBPACK_EXTERNAL_MODULE__2__; | ||
/***/ }), | ||
/* 3 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _extractUnit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./extractUnit */ \"./src/extractUnit.js\");\n\n\nfunction calc(value) {\n var calculation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (v) {\n return v;\n };\n\n if (typeof value === 'string') {\n var unit = Object(_extractUnit__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(value);\n var unitlessValue = parseFloat(value);\n\n // eslint-disable-next-line no-restricted-globals\n if (isNaN(unitlessValue)) return '';\n\n return '' + calculation(parseFloat(value)) + unit;\n }\n return calculation(parseFloat(value));\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (calc);\n\n//# sourceURL=webpack:///./src/calc.js?"); | ||
__webpack_require__.r(__webpack_exports__); | ||
/***/ }), | ||
// EXTERNAL MODULE: external "polished" | ||
var external_polished_ = __webpack_require__(1); | ||
/***/ "./src/equal-size-siblings.js": | ||
/*!************************************!*\ | ||
!*** ./src/equal-size-siblings.js ***! | ||
\************************************/ | ||
/*! exports provided: default */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
// EXTERNAL MODULE: external "@invisionag/iris-settings" | ||
var iris_settings_ = __webpack_require__(0); | ||
"use strict"; | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return \"\\n /* one item */\\n &:nth-child(1):nth-last-child(1) {\\n width: 100%;\\n }\\n\\n /* two items */\\n &:nth-child(1):nth-last-child(2),\\n &:nth-child(2):nth-last-child(1) {\\n width: 50%;\\n }\\n\\n /* three items */\\n &:nth-child(1):nth-last-child(3),\\n &:nth-child(2):nth-last-child(2),\\n &:nth-child(3):nth-last-child(1) {\\n width: 33.3333%;\\n }\\n\\n /* four items */\\n &:nth-child(1):nth-last-child(4),\\n &:nth-child(2):nth-last-child(3),\\n &:nth-child(3):nth-last-child(2),\\n &:nth-child(4):nth-last-child(1) {\\n width: 25%;\\n }\\n\\n /* five items */\\n &:nth-child(1):nth-last-child(5),\\n &:nth-child(2):nth-last-child(4),\\n &:nth-child(3):nth-last-child(3),\\n &:nth-child(4):nth-last-child(2),\\n &:nth-child(5):nth-last-child(1) {\\n width: 20%;\\n }\\n\\n /* six items */\\n &:nth-child(1):nth-last-child(6),\\n &:nth-child(2):nth-last-child(5),\\n &:nth-child(3):nth-last-child(4),\\n &:nth-child(4):nth-last-child(3),\\n &:nth-child(5):nth-last-child(2),\\n &:nth-child(6):nth-last-child(1) {\\n width: 16.66%;\\n }\\n\";\n});\n\n//# sourceURL=webpack:///./src/equal-size-siblings.js?"); | ||
// EXTERNAL MODULE: external "@invisionag/iris-colors" | ||
var iris_colors_ = __webpack_require__(2); | ||
var iris_colors_default = /*#__PURE__*/__webpack_require__.n(iris_colors_); | ||
/***/ }), | ||
// CONCATENATED MODULE: ./src/box-shadow.js | ||
/***/ "./src/extractUnit.js": | ||
/*!****************************!*\ | ||
!*** ./src/extractUnit.js ***! | ||
\****************************/ | ||
/*! exports provided: default */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
eval("__webpack_require__.r(__webpack_exports__);\nvar reverseString = function reverseString(v) {\n return v.split('').reverse().join('');\n};\n\nvar hasNoUnit = function hasNoUnit(v) {\n return !!v.match(/^\\d/);\n};\n\nfunction extractUnit(v) {\n if (typeof v === 'string') {\n // if string starts with digit, no unit was passed\n if (hasNoUnit(reverseString(v))) return '';\n\n var matches = reverseString(v).match(/.+?(?=\\d)/);\n if (!matches || matches.length < 1) return '';\n return reverseString(matches[0]);\n }\n return '';\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (extractUnit);\n\n//# sourceURL=webpack:///./src/extractUnit.js?"); | ||
/***/ }), | ||
/***/ "./src/index.js": | ||
/*!**********************!*\ | ||
!*** ./src/index.js ***! | ||
\**********************/ | ||
/*! exports provided: boxShadow, boxShadowLarge, boxShadowSmall, shadowColor, shadowOpacity, calc, extractUnit, pxToRem, equalSizeSiblings, default */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
var shadowColor = iris_colors_default.a.black120; | ||
var shadowOpacity = 0.25; | ||
"use strict"; | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _box_shadow__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./box-shadow */ \"./src/box-shadow.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"boxShadow\", function() { return _box_shadow__WEBPACK_IMPORTED_MODULE_0__[\"boxShadow\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"boxShadowLarge\", function() { return _box_shadow__WEBPACK_IMPORTED_MODULE_0__[\"boxShadowLarge\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"boxShadowSmall\", function() { return _box_shadow__WEBPACK_IMPORTED_MODULE_0__[\"boxShadowSmall\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"shadowColor\", function() { return _box_shadow__WEBPACK_IMPORTED_MODULE_0__[\"shadowColor\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"shadowOpacity\", function() { return _box_shadow__WEBPACK_IMPORTED_MODULE_0__[\"shadowOpacity\"]; });\n\n/* harmony import */ var _px_to_rem__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./px-to-rem */ \"./src/px-to-rem.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"pxToRem\", function() { return _px_to_rem__WEBPACK_IMPORTED_MODULE_1__[\"default\"]; });\n\n/* harmony import */ var _equal_size_siblings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./equal-size-siblings */ \"./src/equal-size-siblings.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"equalSizeSiblings\", function() { return _equal_size_siblings__WEBPACK_IMPORTED_MODULE_2__[\"default\"]; });\n\n/* harmony import */ var _extractUnit__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./extractUnit */ \"./src/extractUnit.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"extractUnit\", function() { return _extractUnit__WEBPACK_IMPORTED_MODULE_3__[\"default\"]; });\n\n/* harmony import */ var _calc__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./calc */ \"./src/calc.js\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"calc\", function() { return _calc__WEBPACK_IMPORTED_MODULE_4__[\"default\"]; });\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n boxShadow: _box_shadow__WEBPACK_IMPORTED_MODULE_0__[\"boxShadow\"],\n boxShadowLarge: _box_shadow__WEBPACK_IMPORTED_MODULE_0__[\"boxShadowLarge\"],\n boxShadowSmall: _box_shadow__WEBPACK_IMPORTED_MODULE_0__[\"boxShadowSmall\"],\n shadowColor: _box_shadow__WEBPACK_IMPORTED_MODULE_0__[\"shadowColor\"],\n shadowOpacity: _box_shadow__WEBPACK_IMPORTED_MODULE_0__[\"shadowOpacity\"],\n calc: _calc__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n extractUnit: _extractUnit__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n pxToRem: _px_to_rem__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n equalSizeSiblings: _equal_size_siblings__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n});\n\n//# sourceURL=webpack:///./src/index.js?"); | ||
var boxShadowSmall = '0 0.0675em 0.125em ' + Object(external_polished_["rgba"])(shadowColor, shadowOpacity); | ||
/***/ }), | ||
var boxShadowLarge = '0 0.25em 0.5em ' + Object(external_polished_["rgba"])(shadowColor, shadowOpacity) + ', ' + boxShadowSmall; | ||
/***/ "./src/px-to-rem.js": | ||
/*!**************************!*\ | ||
!*** ./src/px-to-rem.js ***! | ||
\**************************/ | ||
/*! exports provided: default */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
var box_shadow_boxShadow = function boxShadow() { | ||
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'large'; | ||
var withActiveState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false; | ||
"use strict"; | ||
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _invisionag_iris_settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @invisionag/iris-settings */ \"@invisionag/iris-settings\");\n/* harmony import */ var _invisionag_iris_settings__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_invisionag_iris_settings__WEBPACK_IMPORTED_MODULE_0__);\n\n\nvar getValue = function getValue(value) {\n var pattern = new RegExp(/\\^px/, 'ig');\n return !!pattern.exec(value)[0].toString();\n};\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (value) {\n if (!getValue(value)) throw new Error(value + ' needs to be a pixel value');\n return parseInt(value, 10) / _invisionag_iris_settings__WEBPACK_IMPORTED_MODULE_0__[\"settings\"].basePx;\n});\n\n//# sourceURL=webpack:///./src/px-to-rem.js?"); | ||
if (!iris_settings_["settings"].shadow) return ''; | ||
/***/ }), | ||
var shadowStyling = 'box-shadow: ' + (size === 'large' ? boxShadowLarge : boxShadowSmall) + ';'; | ||
var activeStyling = withActiveState ? '\n &:active {\n ' + shadowStyling + '\n }\n ' : ''; | ||
/***/ "@invisionag/iris-colors": | ||
/*!******************************************!*\ | ||
!*** external "@invisionag/iris-colors" ***! | ||
\******************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports) { | ||
return '\n ' + activeStyling + '\n ' + shadowStyling + '\n '; | ||
}; | ||
eval("module.exports = __WEBPACK_EXTERNAL_MODULE__invisionag_iris_colors__;\n\n//# sourceURL=webpack:///external_%22@invisionag/iris-colors%22?"); | ||
/* harmony default export */ var box_shadow = ({ | ||
boxShadowSmall: boxShadowSmall, | ||
boxShadowLarge: boxShadowLarge, | ||
boxShadow: box_shadow_boxShadow | ||
}); | ||
// CONCATENATED MODULE: ./src/px-to-rem.js | ||
/***/ }), | ||
/***/ "@invisionag/iris-settings": | ||
/*!********************************************!*\ | ||
!*** external "@invisionag/iris-settings" ***! | ||
\********************************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports) { | ||
var getValue = function getValue(value) { | ||
var pattern = new RegExp(/\^px/, 'ig'); | ||
return !!pattern.exec(value)[0].toString(); | ||
}; | ||
eval("module.exports = __WEBPACK_EXTERNAL_MODULE__invisionag_iris_settings__;\n\n//# sourceURL=webpack:///external_%22@invisionag/iris-settings%22?"); | ||
/* harmony default export */ var px_to_rem = (function (value) { | ||
if (!getValue(value)) throw new Error(value + ' needs to be a pixel value'); | ||
return parseInt(value, 10) / iris_settings_["settings"].basePx; | ||
}); | ||
// CONCATENATED MODULE: ./src/equal-size-siblings.js | ||
/* harmony default export */ var equal_size_siblings = (function () { | ||
return "\n /* one item */\n &:nth-child(1):nth-last-child(1) {\n width: 100%;\n }\n\n /* two items */\n &:nth-child(1):nth-last-child(2),\n &:nth-child(2):nth-last-child(1) {\n width: 50%;\n }\n\n /* three items */\n &:nth-child(1):nth-last-child(3),\n &:nth-child(2):nth-last-child(2),\n &:nth-child(3):nth-last-child(1) {\n width: 33.3333%;\n }\n\n /* four items */\n &:nth-child(1):nth-last-child(4),\n &:nth-child(2):nth-last-child(3),\n &:nth-child(3):nth-last-child(2),\n &:nth-child(4):nth-last-child(1) {\n width: 25%;\n }\n\n /* five items */\n &:nth-child(1):nth-last-child(5),\n &:nth-child(2):nth-last-child(4),\n &:nth-child(3):nth-last-child(3),\n &:nth-child(4):nth-last-child(2),\n &:nth-child(5):nth-last-child(1) {\n width: 20%;\n }\n\n /* six items */\n &:nth-child(1):nth-last-child(6),\n &:nth-child(2):nth-last-child(5),\n &:nth-child(3):nth-last-child(4),\n &:nth-child(4):nth-last-child(3),\n &:nth-child(5):nth-last-child(2),\n &:nth-child(6):nth-last-child(1) {\n width: 16.66%;\n }\n"; | ||
}); | ||
// CONCATENATED MODULE: ./src/extractUnit.js | ||
var reverseString = function reverseString(v) { | ||
return v.split('').reverse().join(''); | ||
}; | ||
/***/ }), | ||
var hasNoUnit = function hasNoUnit(v) { | ||
return !!v.match(/^\d/); | ||
}; | ||
/***/ "polished": | ||
/*!***************************!*\ | ||
!*** external "polished" ***! | ||
\***************************/ | ||
/*! no static exports found */ | ||
/***/ (function(module, exports) { | ||
function extractUnit(v) { | ||
if (typeof v === 'string') { | ||
// if string starts with digit, no unit was passed | ||
if (hasNoUnit(reverseString(v))) return ''; | ||
eval("module.exports = __WEBPACK_EXTERNAL_MODULE_polished__;\n\n//# sourceURL=webpack:///external_%22polished%22?"); | ||
var matches = reverseString(v).match(/.+?(?=\d)/); | ||
if (!matches || matches.length < 1) return ''; | ||
return reverseString(matches[0]); | ||
} | ||
return ''; | ||
} | ||
/* harmony default export */ var src_extractUnit = (extractUnit); | ||
// CONCATENATED MODULE: ./src/calc.js | ||
function calc(value) { | ||
var calculation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (v) { | ||
return v; | ||
}; | ||
if (typeof value === 'string') { | ||
var unit = src_extractUnit(value); | ||
var unitlessValue = parseFloat(value); | ||
// eslint-disable-next-line no-restricted-globals | ||
if (isNaN(unitlessValue)) return ''; | ||
return '' + calculation(parseFloat(value)) + unit; | ||
} | ||
return calculation(parseFloat(value)); | ||
} | ||
/* harmony default export */ var src_calc = (calc); | ||
// CONCATENATED MODULE: ./src/index.js | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "boxShadow", function() { return box_shadow_boxShadow; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "boxShadowLarge", function() { return boxShadowLarge; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "boxShadowSmall", function() { return boxShadowSmall; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "shadowColor", function() { return shadowColor; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "shadowOpacity", function() { return shadowOpacity; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "calc", function() { return src_calc; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "extractUnit", function() { return src_extractUnit; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "pxToRem", function() { return px_to_rem; }); | ||
/* concated harmony reexport */__webpack_require__.d(__webpack_exports__, "equalSizeSiblings", function() { return equal_size_siblings; }); | ||
/* harmony default export */ var src = __webpack_exports__["default"] = ({ | ||
boxShadow: box_shadow_boxShadow, | ||
boxShadowLarge: boxShadowLarge, | ||
boxShadowSmall: boxShadowSmall, | ||
shadowColor: shadowColor, | ||
shadowOpacity: shadowOpacity, | ||
calc: src_calc, | ||
extractUnit: src_extractUnit, | ||
pxToRem: px_to_rem, | ||
equalSizeSiblings: equal_size_siblings | ||
}); | ||
/***/ }) | ||
/******/ }); | ||
/******/ ]); | ||
}); |
{ | ||
"name": "@invisionag/iris-tools", | ||
"version": "3.0.18", | ||
"version": "3.0.19", | ||
"main": "dist/index.js", | ||
@@ -16,4 +16,4 @@ "license": "MIT", | ||
"dependencies": { | ||
"@invisionag/iris-colors": "^3.0.10", | ||
"@invisionag/iris-settings": "^4.2.8", | ||
"@invisionag/iris-colors": "^3.0.11", | ||
"@invisionag/iris-settings": "^4.2.9", | ||
"polished": "^1.9.2" | ||
@@ -20,0 +20,0 @@ }, |
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
355
1
0
20561