Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@commercetools-uikit/spacings-inset-squish

Package Overview
Dependencies
Maintainers
3
Versions
777
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools-uikit/spacings-inset-squish - npm Package Compare versions

Comparing version 10.41.0 to 10.42.0

dist/spacings-inset-squish.cjs.dev.js

12

CHANGELOG.md
# @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 @@

59

dist/spacings-inset-squish.cjs.js
'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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc