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

@economist/fabric-carousel

Package Overview
Dependencies
Maintainers
27
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@economist/fabric-carousel - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

12

core/slide/Slide.js

@@ -16,2 +16,4 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -35,4 +37,10 @@

/*#__PURE__*/
(0, _core.css)("height:100%;padding:10px;width:", totalSlides - (index - 1) < visibleCount && totalSlides % visibleCount !== 0 && index % visibleCount !== 0 && index > visibleCount * Math.floor(totalSlides / visibleCount) ? 100 / (totalSlides % visibleCount) : 100 / visibleCount, "%;flex:0 0 auto;box-sizing:border-box;", styling, ";label:Slide;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zbGlkZS9TbGlkZS5qc3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBU2UiLCJmaWxlIjoiLi4vLi4vc3JjL3NsaWRlL1NsaWRlLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB1c2VDb250ZXh0IH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9jb3JlJ1xuaW1wb3J0IENhcm91c2VsQ29udGV4dCBmcm9tICcuLi9DYXJvdXNlbENvbnRleHQnXG5cbmV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIFNsaWRlKHtpbmRleCxjaGlsZHJlbiwgc3R5bGluZ30pIHtcbiAgICBjb25zdCB7dmlzaWJsZUNvdW50LCB0b3RhbFNsaWRlc30gPSB1c2VDb250ZXh0KENhcm91c2VsQ29udGV4dClcblxuICAgIHJldHVybiAoXG4gICAgICAgIDxkaXYgY3NzPXtcbiAgICAgICAgICAgIGNzc2BcbiAgICAgICAgICAgIGhlaWdodDogMTAwJTtcbiAgICAgICAgICAgIHBhZGRpbmc6IDEwcHg7XG4gICAgICAgICAgICB3aWR0aDogJHt0b3RhbFNsaWRlcyAtIChpbmRleC0xKTwgdmlzaWJsZUNvdW50ICYmIHRvdGFsU2xpZGVzICUgdmlzaWJsZUNvdW50ICE9PSAwICAmJiBpbmRleCAlIHZpc2libGVDb3VudCAhPT0gMCAmJiBpbmRleCA+IHZpc2libGVDb3VudCAqIE1hdGguZmxvb3IodG90YWxTbGlkZXMgLyB2aXNpYmxlQ291bnQpICA/IDEwMC8odG90YWxTbGlkZXMgJSB2aXNpYmxlQ291bnQpIDogMTAwL3Zpc2libGVDb3VudH0lO1xuICAgICAgICAgICAgZmxleDogMCAwIGF1dG87XG4gICAgICAgICAgICBib3gtc2l6aW5nOiBib3JkZXItYm94O1xuICAgICAgICAgICAgJHtzdHlsaW5nfVxuICAgICAgICBgfT5cbiAgICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPC9kaXY+XG4gICAgKVxufVxuIl19 */"))
(0, _core.css)("height:100%;padding:10px;width:", totalSlides - (index - 1) < visibleCount && totalSlides % visibleCount !== 0 && index % visibleCount !== 0 && index > visibleCount * Math.floor(totalSlides / visibleCount) ? 100 / (totalSlides % visibleCount) : 100 / visibleCount, "%;flex:0 0 auto;box-sizing:border-box;", styling, ";label:Slide;" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zbGlkZS9TbGlkZS5qc3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBVWUiLCJmaWxlIjoiLi4vLi4vc3JjL3NsaWRlL1NsaWRlLmpzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZ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XBlcy5udW1iZXIuaXNSZXF1aXJlZCxcbiAgICBjaGlsZHJlbjogUHJvcFR5cGVzLmVsZW1lbnQsXG4gICAgc3R5bGluZzogUHJvcFR5cGVzLnN0cmluZ1xufVxuXG4iXX0= */"))
}, children);
}
}
Slide.propTypes = {
index: _propTypes["default"].number.isRequired,
children: _propTypes["default"].element,
styling: _propTypes["default"].string
};

@@ -12,2 +12,4 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -23,3 +25,3 @@

styles: "left:-80px;;label:LeftButton;",
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXR5L0xlZnRCdXR0b24uanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQU9XIiwiZmlsZSI6Ii4uLy4uL3NyYy91dGlsaXR5L0xlZnRCdXR0b24uanN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSdcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gTGVmdEJ1dHRvbih7IGNoYW5nZUhhbmRsZXIsIGNvbnRlbnQgfSkge1xuIFxuICAgIHJldHVybiAoXG4gICAgICA8YnV0dG9uIG9uQ2xpY2s9eygpID0+IHtjaGFuZ2VIYW5kbGVyKC0xKSB9fSBjc3M9e1xuICAgICAgICBjc3NgXG4gICAgICAgIGxlZnQ6IC04MHB4O1xuICAgICAgYH0+XG4gICAgICAgIHtjb250ZW50fVxuICAgICAgPC9idXR0b24+XG4gICAgKVxuICB9XG4gICJdfQ== */",
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXR5L0xlZnRCdXR0b24uanN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVFXIiwiZmlsZSI6Ii4uLy4uL3NyYy91dGlsaXR5L0xlZnRCdXR0b24uanN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSdcbmltcG9ydCBQcm9wVHlwZXMgZnJvbSAncHJvcC10eXBlcydcblxuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBMZWZ0QnV0dG9uKHsgY2hhbmdlSGFuZGxlciwgY29udGVudCB9KSB7XG4gICAgcmV0dXJuIChcbiAgICAgIDxidXR0b24gb25DbGljaz17KCkgPT4ge2NoYW5nZUhhbmRsZXIoLTEpIH19IGNzcz17XG4gICAgICAgIGNzc2BcbiAgICAgICAgbGVmdDogLTgwcHg7XG4gICAgICBgfT5cbiAgICAgICAge2NvbnRlbnR9XG4gICAgICA8L2J1dHRvbj5cbiAgICApXG59XG4gIFxuXG5MZWZ0QnV0dG9uLnByb3BUeXBlcyA9IHtcbiAgICBjaGFuZ2VIYW5kbGVyOiBQcm9wVHlwZXMuZnVuYyxcbiAgICBjb250ZW50OiBQcm9wVHlwZXMub25lT2ZUeXBlKFtcbiAgICAgICAgUHJvcFR5cGVzLmVsZW1lbnQsXG4gICAgICAgIFByb3BUeXBlcy5zdHJpbmdcbiAgICBdKVxufSJdfQ== */",
toString: _EMOTION_STRINGIFIED_CSS_ERROR__

@@ -37,2 +39,7 @@ };

}, content);
}
}
LeftButton.propTypes = {
changeHandler: _propTypes["default"].func,
content: _propTypes["default"].oneOfType([_propTypes["default"].element, _propTypes["default"].string])
};

@@ -12,2 +12,4 @@ "use strict";

var _propTypes = _interopRequireDefault(require("prop-types"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

@@ -23,3 +25,3 @@

styles: "right:-80px;;label:RightButton;",
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXR5L1JpZ2h0QnV0dG9uLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFNVyIsImZpbGUiOiIuLi8uLi9zcmMvdXRpbGl0eS9SaWdodEJ1dHRvbi5qc3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9jb3JlJ1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBSaWdodEJ1dHRvbiAoeyBjaGFuZ2VIYW5kbGVyLCBjb250ZW50fSkge1xuICAgIHJldHVybiAoXG4gICAgICA8YnV0dG9uIG9uQ2xpY2s9eygpID0+IHsgIGNoYW5nZUhhbmRsZXIoMSkgfX0gY3NzPXtcbiAgICAgICAgY3NzYFxuICAgICAgICAgIHJpZ2h0OiAtODBweDtcbiAgICAgICAgICBcbiAgICAgICAgYH0+XG4gICAgICAgIHtjb250ZW50fVxuICAgICAgPC9idXR0b24+XG4gICAgKVxuICB9XG5cbiJdfQ== */",
map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXR5L1JpZ2h0QnV0dG9uLmpzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPVyIsImZpbGUiOiIuLi8uLi9zcmMvdXRpbGl0eS9SaWdodEJ1dHRvbi5qc3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBjc3MgfSBmcm9tICdAZW1vdGlvbi9jb3JlJ1xuaW1wb3J0IFByb3BUeXBlcyBmcm9tICdwcm9wLXR5cGVzJ1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBSaWdodEJ1dHRvbiAoeyBjaGFuZ2VIYW5kbGVyLCBjb250ZW50fSkge1xuICAgIHJldHVybiAoXG4gICAgICA8YnV0dG9uIG9uQ2xpY2s9eygpID0+IHsgIGNoYW5nZUhhbmRsZXIoMSkgfX0gY3NzPXtcbiAgICAgICAgY3NzYFxuICAgICAgICAgIHJpZ2h0OiAtODBweDtcbiAgICAgICAgICBcbiAgICAgICAgYH0+XG4gICAgICAgIHtjb250ZW50fVxuICAgICAgPC9idXR0b24+XG4gICAgKVxufVxuXG5cblJpZ2h0QnV0dG9uLnByb3BUeXBlcyA9IHtcbiAgICBjaGFuZ2VIYW5kbGVyOiBQcm9wVHlwZXMuZnVuYyxcbiAgICBjb250ZW50OiBQcm9wVHlwZXMub25lT2ZUeXBlKFtcbiAgICAgICAgUHJvcFR5cGVzLmVsZW1lbnQsXG4gICAgICAgIFByb3BUeXBlcy5zdHJpbmdcbiAgICBdKVxufSJdfQ== */",
toString: _EMOTION_STRINGIFIED_CSS_ERROR__

@@ -37,2 +39,7 @@ };

}, content);
}
}
RightButton.propTypes = {
changeHandler: _propTypes["default"].func,
content: _propTypes["default"].oneOfType([_propTypes["default"].element, _propTypes["default"].string])
};

2

package.json
{
"name": "@economist/fabric-carousel",
"version": "0.1.0",
"version": "0.1.1",
"description": "A small package for quickly creating carousels.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/EconomistDigitalSolutions/fabric-carousel/",

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