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

@infotech/uikit-accordeon

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@infotech/uikit-accordeon - npm Package Compare versions

Comparing version 0.1.1-v1-beta.19 to 0.1.1-v1-beta.20

16

lib/Accordeon.js

@@ -23,10 +23,10 @@ "use strict";

var styles = {
"Accordeon": "uikit_6ca4f1e6_components_accordeon__Accordeon_62262baf",
"Header": "uikit_6ca4f1e6_components_accordeon__Header_62262baf",
"Sign": "uikit_6ca4f1e6_components_accordeon__Sign_62262baf",
"Label": "uikit_6ca4f1e6_components_accordeon__Label_62262baf",
"Badge": "uikit_6ca4f1e6_components_accordeon__Badge_62262baf",
"Body": "uikit_6ca4f1e6_components_accordeon__Body_62262baf",
"Light": "uikit_6ca4f1e6_components_accordeon__Light_62262baf",
"AccordeonGroup": "uikit_6ca4f1e6_components_accordeon__AccordeonGroup_62262baf"
"Accordeon": "uikit_61b3294c_components_accordeon__Accordeon_62262baf",
"Header": "uikit_61b3294c_components_accordeon__Header_62262baf",
"Sign": "uikit_61b3294c_components_accordeon__Sign_62262baf",
"Label": "uikit_61b3294c_components_accordeon__Label_62262baf",
"Badge": "uikit_61b3294c_components_accordeon__Badge_62262baf",
"Body": "uikit_61b3294c_components_accordeon__Body_62262baf",
"Light": "uikit_61b3294c_components_accordeon__Light_62262baf",
"AccordeonGroup": "uikit_61b3294c_components_accordeon__AccordeonGroup_62262baf"
}; // @related-file ./styles.css

@@ -33,0 +33,0 @@

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

var _propTypes = _interopRequireDefault(require("prop-types"));
var _includes = _interopRequireDefault(require("lodash/includes"));

@@ -15,2 +17,4 @@

var _take = _interopRequireDefault(require("lodash/take"));
var _Accordeon = _interopRequireDefault(require("./Accordeon"));

@@ -30,2 +34,6 @@

function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

@@ -60,10 +68,10 @@

var styles = {
"Accordeon": "uikit_6ca4f1e6_components_accordeon__Accordeon_62262baf",
"Header": "uikit_6ca4f1e6_components_accordeon__Header_62262baf",
"Sign": "uikit_6ca4f1e6_components_accordeon__Sign_62262baf",
"Label": "uikit_6ca4f1e6_components_accordeon__Label_62262baf",
"Badge": "uikit_6ca4f1e6_components_accordeon__Badge_62262baf",
"Body": "uikit_6ca4f1e6_components_accordeon__Body_62262baf",
"Light": "uikit_6ca4f1e6_components_accordeon__Light_62262baf",
"AccordeonGroup": "uikit_6ca4f1e6_components_accordeon__AccordeonGroup_62262baf"
"Accordeon": "uikit_61b3294c_components_accordeon__Accordeon_62262baf",
"Header": "uikit_61b3294c_components_accordeon__Header_62262baf",
"Sign": "uikit_61b3294c_components_accordeon__Sign_62262baf",
"Label": "uikit_61b3294c_components_accordeon__Label_62262baf",
"Badge": "uikit_61b3294c_components_accordeon__Badge_62262baf",
"Body": "uikit_61b3294c_components_accordeon__Body_62262baf",
"Light": "uikit_61b3294c_components_accordeon__Light_62262baf",
"AccordeonGroup": "uikit_61b3294c_components_accordeon__AccordeonGroup_62262baf"
}; // @related-file ./styles.css

@@ -99,6 +107,10 @@

});
if (typeof _this.props.onChangeOpenIndexes === "function") {
_this.props.onChangeOpenIndexes(nextIsOpenIndexes);
}
});
_this.state = {
isOpenIndexes: []
isOpenIndexes: props.independent ? props.defaultOpenIndexes : (0, _take.default)(props.defaultOpenIndexes)
};

@@ -124,3 +136,9 @@ return _this;

return _react.default.createElement("div", _extends({}, this.props, {
var _this$props = this.props,
independent = _this$props.independent,
defaultOpenIndexes = _this$props.defaultOpenIndexes,
onChangeOpenIndexes = _this$props.onChangeOpenIndexes,
restProps = _objectWithoutProperties(_this$props, ["independent", "defaultOpenIndexes", "onChangeOpenIndexes"]);
return _react.default.createElement("div", _extends({}, restProps, {
className: (0, _classnames.default)(this.props.className, styles.AccordeonGroup)

@@ -134,3 +152,11 @@ }), children);

AccordeonGroup.propTypes = {
independent: _propTypes.default.bool,
defaultOpenIndexes: _propTypes.default.arrayOf(_propTypes.default.number)
};
AccordeonGroup.defaultProps = {
independent: false,
defaultOpenIndexes: []
};
var _default = AccordeonGroup;
exports.default = _default;
{
"name": "@infotech/uikit-accordeon",
"version": "0.1.1-v1-beta.19",
"version": "0.1.1-v1-beta.20",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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