@commercetools-uikit/spacings-inset-squish
Advanced tools
Comparing version 10.41.0 to 10.42.0
# @commercetools-uikit/spacings-inset-squish | ||
## 10.42.0 | ||
### Minor Changes | ||
- [`04ea8ab`](https://github.com/commercetools/ui-kit/commit/04ea8abdfbada5fedd9a932743323762fb790fd0) [#1671](https://github.com/commercetools/ui-kit/pull/1671) Thanks [@emmenko](https://github.com/emmenko)! - Compile and bundle packages using [preconstruct](https://preconstruct.tools) | ||
### Patch Changes | ||
- Updated dependencies [[`04ea8ab`](https://github.com/commercetools/ui-kit/commit/04ea8abdfbada5fedd9a932743323762fb790fd0)]: | ||
- @commercetools-uikit/design-system@10.42.0 | ||
- @commercetools-uikit/utils@10.42.0 | ||
## 10.41.0 | ||
@@ -4,0 +16,0 @@ |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var _extends = require('@babel/runtime-corejs3/helpers/extends'); | ||
var _concatInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/concat'); | ||
var PropTypes = require('prop-types'); | ||
var react = require('@emotion/react'); | ||
var designSystem = require('@commercetools-uikit/design-system'); | ||
var utils = require('@commercetools-uikit/utils'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends); | ||
var _concatInstanceProperty__default = /*#__PURE__*/_interopDefaultLegacy(_concatInstanceProperty); | ||
var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes); | ||
var getPadding = function getPadding(scale) { | ||
var _context, _context2, _context3; | ||
switch (scale) { | ||
case 's': | ||
return _concatInstanceProperty__default['default'](_context = "".concat(designSystem.customProperties.spacingXs, " ")).call(_context, designSystem.customProperties.spacingS); | ||
case 'm': | ||
return _concatInstanceProperty__default['default'](_context2 = "".concat(designSystem.customProperties.spacingS, " ")).call(_context2, designSystem.customProperties.spacingM); | ||
case 'l': | ||
return _concatInstanceProperty__default['default'](_context3 = "".concat(designSystem.customProperties.spacingM, " ")).call(_context3, designSystem.customProperties.spacingXl); | ||
default: | ||
return 0; | ||
} | ||
}; | ||
var InsetSquish = function InsetSquish(props) { | ||
return react.jsx("div", _extends__default['default']({ | ||
css: /*#__PURE__*/react.css("padding:", getPadding(props.scale), ";" + (process.env.NODE_ENV === "production" ? "" : ";label:InsetSquish;")) | ||
}, utils.filterDataAttributes(props)), props.children); | ||
}; | ||
InsetSquish.displayName = 'InsetSquish'; | ||
InsetSquish.propTypes = process.env.NODE_ENV !== "production" ? { | ||
scale: PropTypes__default['default'].oneOf(['s', 'm', 'l']), | ||
children: PropTypes__default['default'].node | ||
} : {}; | ||
InsetSquish.defaultProps = { | ||
scale: 'm' | ||
}; | ||
// NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file. | ||
var version = '10.41.0'; | ||
exports.default = InsetSquish; | ||
exports.version = version; | ||
//# sourceMappingURL=spacings-inset-squish.cjs.js.map | ||
if (process.env.NODE_ENV === "production") { | ||
module.exports = require("./spacings-inset-squish.cjs.prod.js"); | ||
} else { | ||
module.exports = require("./spacings-inset-squish.cjs.dev.js"); | ||
} |
{ | ||
"name": "@commercetools-uikit/spacings-inset-squish", | ||
"description": "An inset squish spacing component provides a consistent padding to the inner component, with horizontal padding being proportionally bigger than the vertical padding.", | ||
"version": "10.41.0", | ||
"version": "10.42.0", | ||
"bugs": "https://github.com/commercetools/ui-kit/issues", | ||
@@ -20,10 +20,6 @@ "repository": { | ||
"main": "dist/spacings-inset-squish.cjs.js", | ||
"module": "dist/spacings-inset-squish.es.js", | ||
"module": "dist/spacings-inset-squish.esm.js", | ||
"files": ["dist"], | ||
"scripts": { | ||
"prepare": "../../../../scripts/version.js replace", | ||
"prebuild": "rimraf dist", | ||
"build": "yarn build:bundles", | ||
"build:bundles": "cross-env NODE_ENV=production rollup -c ../../../../rollup.config.js -i ./src/index.js", | ||
"build:bundles:watch": "yarn build:bundles -w" | ||
"prepare": "../../../../scripts/version.js replace" | ||
}, | ||
@@ -33,4 +29,4 @@ "dependencies": { | ||
"@babel/runtime-corejs3": "7.12.5", | ||
"@commercetools-uikit/design-system": "10.40.0", | ||
"@commercetools-uikit/utils": "10.41.0", | ||
"@commercetools-uikit/design-system": "10.42.0", | ||
"@commercetools-uikit/utils": "10.42.0", | ||
"@emotion/react": "^11.1.1", | ||
@@ -37,0 +33,0 @@ "prop-types": "15.7.2" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
120
15180
5
1
+ Added@commercetools-uikit/design-system@10.42.0(transitive)
+ Added@commercetools-uikit/utils@10.42.0(transitive)
- Removed@commercetools-uikit/design-system@10.40.0(transitive)
- Removed@commercetools-uikit/utils@10.41.0(transitive)