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

list-partial

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

list-partial - npm Package Compare versions

Comparing version 1.3.5 to 1.3.6

742

index.js

@@ -1,2 +0,669 @@

!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var r=t("object"==typeof exports?require("react"):e.react);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(this,function(e){return function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,o){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=7)}([function(t,r){t.exports=e},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=o(n),a=r(6),s=o(a),l=r(5),p=o(l),f=function(e){var t=e.exportComponent,r=e.filterComponent,o=e.headerComponent,n=e.isLoading,a=e.notifications,l=e.paginationComponent,f=e.searchComponent,c=e.tableComponent;return i.default.createElement("div",null,i.default.createElement("div",{className:p.default.exportComponent},t&&t),i.default.createElement("div",{className:p.default.toolHeader},o&&o),i.default.createElement("div",null,i.default.createElement("div",{className:p.default.toolControls},i.default.createElement("div",{className:p.default.searchComponent},f&&f),i.default.createElement("div",{className:p.default.filterComponent},r&&r)),i.default.createElement("div",{className:p.default.notifications},a&&a),i.default.createElement(s.default,{isLoading:n},l&&l,c&&c,l&&l)))};f.propTypes={exportComponent:n.PropTypes.shape(),filterComponent:n.PropTypes.shape(),headerComponent:n.PropTypes.shape(),isLoading:n.PropTypes.bool,notifications:n.PropTypes.arrayOf(n.PropTypes.shape()),paginationComponent:n.PropTypes.shape(),searchComponent:n.PropTypes.shape(),tableComponent:n.PropTypes.shape()},t.default=f},function(e,t,r){t=e.exports=r(3)(),t.push([e.i,".toolHeader__src-ListPartial__2gfr3{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start}.toolHeader__src-ListPartial__2gfr3>*{margin-right:35px;display:-ms-flexbox;display:flex}.notifications__src-ListPartial__1RA-p{margin:10px 0}.toolControls__src-ListPartial__2lcSw{border-bottom:1px dashed #343739;border-top:1px solid #c3c2c2;display:-ms-flexbox;display:flex;line-height:35px;padding:15px 0}.searchComponent__src-ListPartial__2RfFE{width:180px}.filterComponent__src-ListPartial__9m9gA{-ms-flex-positive:1;flex-grow:1}.exportComponent__src-ListPartial__11217{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:end;justify-content:flex-end}.exportComponent__src-ListPartial__11217 .rw-btn{display:none}.exportComponent__src-ListPartial__11217 .rw-dropdownlist{padding-right:15px}.exportComponent__src-ListPartial__11217 .rw-placeholder{color:#f47e42}.exportComponent__src-ListPartial__11217 .rw-widget{border-color:#f47e42}.exportComponent__src-ListPartial__11217 ul.rw-list>li.rw-list-option.rw-state-focus{border-color:#fff}.exportComponent__src-ListPartial__11217 ul.rw-list>li.rw-list-option.rw-state-focus:hover{background-color:#e6e6e6}",""]),t.locals={toolHeader:"toolHeader__src-ListPartial__2gfr3",notifications:"notifications__src-ListPartial__1RA-p",toolControls:"toolControls__src-ListPartial__2lcSw",searchComponent:"searchComponent__src-ListPartial__2RfFE",filterComponent:"filterComponent__src-ListPartial__9m9gA",exportComponent:"exportComponent__src-ListPartial__11217"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var r=this[t];r[2]?e.push("@media "+r[2]+"{"+r[1]+"}"):e.push(r[1])}return e.join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},n=0;n<this.length;n++){var i=this[n][0];"number"==typeof i&&(o[i]=!0)}for(n=0;n<t.length;n++){var a=t[n];"number"==typeof a[0]&&o[a[0]]||(r&&!a[2]?a[2]=r:r&&(a[2]="("+a[2]+") and ("+r+")"),e.push(a))}},e}},function(e,t){function r(e,t){for(var r=0;r<e.length;r++){var o=e[r],n=f[o.id];if(n){n.refs++;for(var i=0;i<n.parts.length;i++)n.parts[i](o.parts[i]);for(;i<o.parts.length;i++)n.parts.push(a(o.parts[i],t))}else{for(var s=[],i=0;i<o.parts.length;i++)s.push(a(o.parts[i],t));f[o.id]={id:o.id,refs:1,parts:s}}}}function o(e){for(var t=[],r={},o=0;o<e.length;o++){var n=e[o],i=n[0],a=n[1],s=n[2],l=n[3],p={css:a,media:s,sourceMap:l};r[i]?r[i].parts.push(p):t.push(r[i]={id:i,parts:[p]})}return t}function n(){var e=document.createElement("style"),t=d();return e.type="text/css",t.appendChild(e),e}function i(){var e=document.createElement("link"),t=d();return e.rel="stylesheet",t.appendChild(e),e}function a(e,t){var r,o,a;if(t.singleton){var f=_++;r=m||(m=n()),o=s.bind(null,r,f,!1),a=s.bind(null,r,f,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=i(),o=p.bind(null,r),a=function(){r.parentNode.removeChild(r),r.href&&URL.revokeObjectURL(r.href)}):(r=n(),o=l.bind(null,r),a=function(){r.parentNode.removeChild(r)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else a()}}function s(e,t,r,o){var n=r?"":o.css;if(e.styleSheet)e.styleSheet.cssText=y(t,n);else{var i=document.createTextNode(n),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function l(e,t){var r=t.css,o=t.media;t.sourceMap;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}function p(e,t){var r=t.css,o=(t.media,t.sourceMap);o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var n=new Blob([r],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(n),i&&URL.revokeObjectURL(i)}var f={},c=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},u=c(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),d=c(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,_=0;e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},"undefined"==typeof t.singleton&&(t.singleton=u());var n=o(e);return r(n,t),function(e){for(var i=[],a=0;a<n.length;a++){var s=n[a],l=f[s.id];l.refs--,i.push(l)}if(e){var p=o(e);r(p,t)}for(var a=0;a<i.length;a++){var l=i[a];if(0===l.refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete f[l.id]}}}};var y=function(){var e=[];return function(t,r){return e[t]=r,e.filter(Boolean).join("\n")}}()},function(e,t,r){var o=r(2);"string"==typeof o&&(o=[[e.i,o,""]]);r(4)(o,{});o.locals&&(e.exports=o.locals)},function(e,t,r){!function(t,o){e.exports=o(r(0))}(this,function(e){return function(e){function t(o){if(r[o])return r[o].exports;var n=r[o]={exports:{},id:o,loaded:!1};return e[o].call(n.exports,n,n.exports,t),n.loaded=!0,n.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(1)},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=r(2),i=o(n);t.default=i.default},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=r(3),i=o(n),a=r(4),s=o(a),l=function(e){var t=e.children,r=e.className,o=e.Component,n=e.isLoading,a=e.style,l=e.titleText,p=(0,s.default)(r,"async-load",{loading:n});return i.default.createElement(o,{className:p,"data-text":l,style:a},i.default.createElement("div",{className:"async-load-fade-container"},t))};l.propTypes={children:n.PropTypes.node,className:n.PropTypes.string,Component:n.PropTypes.oneOfType([n.PropTypes.node,n.PropTypes.string]),isLoading:n.PropTypes.oneOfType([n.PropTypes.bool,n.PropTypes.string]),style:n.PropTypes.string,titleText:n.PropTypes.string},l.defaultProps={Component:"div",isLoading:!1,titleText:"Loading"},t.default=l},function(t,r){t.exports=e},function(e,t,r){var o,n;/*!
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else {
var a = typeof exports === 'object' ? factory(require("react")) : factory(root["react"]);
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(this, function(__WEBPACK_EXTERNAL_MODULE_0__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ i: moduleId,
/******/ l: false,
/******/ exports: {}
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.l = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // identity function for calling harmony imports with the correct context
/******/ __webpack_require__.i = function(value) { return value; };
/******/ // define getter function for harmony exports
/******/ __webpack_require__.d = function(exports, name, getter) {
/******/ if(!__webpack_require__.o(exports, name)) {
/******/ Object.defineProperty(exports, name, {
/******/ configurable: false,
/******/ enumerable: true,
/******/ get: getter
/******/ });
/******/ }
/******/ };
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ __webpack_require__.n = function(module) {
/******/ var getter = module && module.__esModule ?
/******/ function getDefault() { return module['default']; } :
/******/ function getModuleExports() { return module; };
/******/ __webpack_require__.d(getter, 'a', getter);
/******/ return getter;
/******/ };
/******/ // Object.prototype.hasOwnProperty.call
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(__webpack_require__.s = 7);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ (function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_0__;
/***/ }),
/* 1 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = __webpack_require__(0);
var _react2 = _interopRequireDefault(_react);
var _uta = __webpack_require__(6);
var _uta2 = _interopRequireDefault(_uta);
var _ListPartial = __webpack_require__(5);
var _ListPartial2 = _interopRequireDefault(_ListPartial);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var ListPartial = function ListPartial(_ref) {
var exportComponent = _ref.exportComponent,
filterComponent = _ref.filterComponent,
headerComponent = _ref.headerComponent,
isEmpty = _ref.isEmpty,
isLoading = _ref.isLoading,
notifications = _ref.notifications,
paginationComponent = _ref.paginationComponent,
searchComponent = _ref.searchComponent,
tableComponent = _ref.tableComponent;
return _react2.default.createElement(
'div',
null,
_react2.default.createElement(
'div',
{ className: _ListPartial2.default.exportComponent },
isEmpty !== false && exportComponent && exportComponent
),
_react2.default.createElement(
'div',
{ className: _ListPartial2.default.toolHeader },
headerComponent && headerComponent
),
_react2.default.createElement(
'div',
null,
_react2.default.createElement(
'div',
{ className: _ListPartial2.default.toolControls },
_react2.default.createElement(
'div',
{ className: _ListPartial2.default.searchComponent },
searchComponent && searchComponent
),
_react2.default.createElement(
'div',
{ className: _ListPartial2.default.filterComponent },
filterComponent && filterComponent
)
),
_react2.default.createElement(
'div',
{ className: _ListPartial2.default.notifications },
notifications && notifications
),
_react2.default.createElement(
_uta2.default,
{ isLoading: isLoading },
paginationComponent && paginationComponent,
tableComponent && tableComponent,
paginationComponent && paginationComponent
)
)
);
};
ListPartial.propTypes = {
exportComponent: _react.PropTypes.shape(),
filterComponent: _react.PropTypes.shape(),
headerComponent: _react.PropTypes.shape(),
isEmpty: _react.PropTypes.bool,
isLoading: _react.PropTypes.bool,
notifications: _react.PropTypes.arrayOf(_react.PropTypes.shape()),
paginationComponent: _react.PropTypes.shape(),
searchComponent: _react.PropTypes.shape(),
tableComponent: _react.PropTypes.shape()
};
ListPartial.defaultProps = {
exportComponent: null,
filterComponent: null,
headerComponent: null,
isEmpty: true,
isLoading: false,
notifications: null,
paginationComponent: null,
searchComponent: null,
tableComponent: null
};
exports.default = ListPartial;
/***/ }),
/* 2 */
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__(3)();
// imports
// module
exports.push([module.i, ".notifications__src-ListPartial__1RA-p {\n margin: 10px 0; }\n\n.toolControls__src-ListPartial__2lcSw {\n border-bottom: 1px dashed #343739;\n border-top: 1px solid #c3c2c2;\n display: -ms-flexbox;\n display: flex;\n line-height: 35px;\n padding: 15px 0 15px 0; }\n\n.searchComponent__src-ListPartial__2RfFE {\n width: 180px; }\n\n.filterComponent__src-ListPartial__9m9gA {\n -ms-flex-positive: 1;\n flex-grow: 1; }\n\n.exportComponent__src-ListPartial__11217 {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-direction: row;\n flex-direction: row;\n -ms-flex-pack: end;\n justify-content: flex-end; }\n .exportComponent__src-ListPartial__11217 .rw-btn {\n display: none; }\n .exportComponent__src-ListPartial__11217 .rw-dropdownlist {\n padding-right: 15px; }\n .exportComponent__src-ListPartial__11217 .rw-placeholder {\n color: #f47e42; }\n .exportComponent__src-ListPartial__11217 .rw-widget {\n border-color: #f47e42; }\n .exportComponent__src-ListPartial__11217 ul.rw-list > li.rw-list-option.rw-state-focus {\n border-color: #fff; }\n .exportComponent__src-ListPartial__11217 ul.rw-list > li.rw-list-option.rw-state-focus:hover {\n background-color: #e6e6e6; }\n", ""]);
// exports
exports.locals = {
"notifications": "notifications__src-ListPartial__1RA-p",
"toolControls": "toolControls__src-ListPartial__2lcSw",
"searchComponent": "searchComponent__src-ListPartial__2RfFE",
"filterComponent": "filterComponent__src-ListPartial__9m9gA",
"exportComponent": "exportComponent__src-ListPartial__11217"
};
/***/ }),
/* 3 */
/***/ (function(module, exports) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
// css base code, injected by the css-loader
module.exports = function() {
var list = [];
// return the list of modules as css string
list.toString = function toString() {
var result = [];
for(var i = 0; i < this.length; i++) {
var item = this[i];
if(item[2]) {
result.push("@media " + item[2] + "{" + item[1] + "}");
} else {
result.push(item[1]);
}
}
return result.join("");
};
// import a list of modules into the list
list.i = function(modules, mediaQuery) {
if(typeof modules === "string")
modules = [[null, modules, ""]];
var alreadyImportedModules = {};
for(var i = 0; i < this.length; i++) {
var id = this[i][0];
if(typeof id === "number")
alreadyImportedModules[id] = true;
}
for(i = 0; i < modules.length; i++) {
var item = modules[i];
// skip already imported module
// this implementation is not 100% perfect for weird media query combinations
// when a module is imported multiple times with different media queries.
// I hope this will never occur (Hey this way we have smaller bundles)
if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
if(mediaQuery && !item[2]) {
item[2] = mediaQuery;
} else if(mediaQuery) {
item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
}
list.push(item);
}
}
};
return list;
};
/***/ }),
/* 4 */
/***/ (function(module, exports) {
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
var stylesInDom = {},
memoize = function(fn) {
var memo;
return function () {
if (typeof memo === "undefined") memo = fn.apply(this, arguments);
return memo;
};
},
isOldIE = memoize(function() {
return /msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase());
}),
getHeadElement = memoize(function () {
return document.head || document.getElementsByTagName("head")[0];
}),
singletonElement = null,
singletonCounter = 0;
module.exports = function(list, options) {
if(typeof DEBUG !== "undefined" && DEBUG) {
if(typeof document !== "object") throw new Error("The style-loader cannot be used in a non-browser environment");
}
options = options || {};
// Force single-tag solution on IE6-9, which has a hard limit on the # of <style>
// tags it will allow on a page
if (typeof options.singleton === "undefined") options.singleton = isOldIE();
var styles = listToStyles(list);
addStylesToDom(styles, options);
return function update(newList) {
var mayRemove = [];
for(var i = 0; i < styles.length; i++) {
var item = styles[i];
var domStyle = stylesInDom[item.id];
domStyle.refs--;
mayRemove.push(domStyle);
}
if(newList) {
var newStyles = listToStyles(newList);
addStylesToDom(newStyles, options);
}
for(var i = 0; i < mayRemove.length; i++) {
var domStyle = mayRemove[i];
if(domStyle.refs === 0) {
for(var j = 0; j < domStyle.parts.length; j++)
domStyle.parts[j]();
delete stylesInDom[domStyle.id];
}
}
};
}
function addStylesToDom(styles, options) {
for(var i = 0; i < styles.length; i++) {
var item = styles[i];
var domStyle = stylesInDom[item.id];
if(domStyle) {
domStyle.refs++;
for(var j = 0; j < domStyle.parts.length; j++) {
domStyle.parts[j](item.parts[j]);
}
for(; j < item.parts.length; j++) {
domStyle.parts.push(addStyle(item.parts[j], options));
}
} else {
var parts = [];
for(var j = 0; j < item.parts.length; j++) {
parts.push(addStyle(item.parts[j], options));
}
stylesInDom[item.id] = {id: item.id, refs: 1, parts: parts};
}
}
}
function listToStyles(list) {
var styles = [];
var newStyles = {};
for(var i = 0; i < list.length; i++) {
var item = list[i];
var id = item[0];
var css = item[1];
var media = item[2];
var sourceMap = item[3];
var part = {css: css, media: media, sourceMap: sourceMap};
if(!newStyles[id])
styles.push(newStyles[id] = {id: id, parts: [part]});
else
newStyles[id].parts.push(part);
}
return styles;
}
function createStyleElement() {
var styleElement = document.createElement("style");
var head = getHeadElement();
styleElement.type = "text/css";
head.appendChild(styleElement);
return styleElement;
}
function createLinkElement() {
var linkElement = document.createElement("link");
var head = getHeadElement();
linkElement.rel = "stylesheet";
head.appendChild(linkElement);
return linkElement;
}
function addStyle(obj, options) {
var styleElement, update, remove;
if (options.singleton) {
var styleIndex = singletonCounter++;
styleElement = singletonElement || (singletonElement = createStyleElement());
update = applyToSingletonTag.bind(null, styleElement, styleIndex, false);
remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true);
} else if(obj.sourceMap &&
typeof URL === "function" &&
typeof URL.createObjectURL === "function" &&
typeof URL.revokeObjectURL === "function" &&
typeof Blob === "function" &&
typeof btoa === "function") {
styleElement = createLinkElement();
update = updateLink.bind(null, styleElement);
remove = function() {
styleElement.parentNode.removeChild(styleElement);
if(styleElement.href)
URL.revokeObjectURL(styleElement.href);
};
} else {
styleElement = createStyleElement();
update = applyToTag.bind(null, styleElement);
remove = function() {
styleElement.parentNode.removeChild(styleElement);
};
}
update(obj);
return function updateStyle(newObj) {
if(newObj) {
if(newObj.css === obj.css && newObj.media === obj.media && newObj.sourceMap === obj.sourceMap)
return;
update(obj = newObj);
} else {
remove();
}
};
}
var replaceText = (function () {
var textStore = [];
return function (index, replacement) {
textStore[index] = replacement;
return textStore.filter(Boolean).join('\n');
};
})();
function applyToSingletonTag(styleElement, index, remove, obj) {
var css = remove ? "" : obj.css;
if (styleElement.styleSheet) {
styleElement.styleSheet.cssText = replaceText(index, css);
} else {
var cssNode = document.createTextNode(css);
var childNodes = styleElement.childNodes;
if (childNodes[index]) styleElement.removeChild(childNodes[index]);
if (childNodes.length) {
styleElement.insertBefore(cssNode, childNodes[index]);
} else {
styleElement.appendChild(cssNode);
}
}
}
function applyToTag(styleElement, obj) {
var css = obj.css;
var media = obj.media;
var sourceMap = obj.sourceMap;
if(media) {
styleElement.setAttribute("media", media)
}
if(styleElement.styleSheet) {
styleElement.styleSheet.cssText = css;
} else {
while(styleElement.firstChild) {
styleElement.removeChild(styleElement.firstChild);
}
styleElement.appendChild(document.createTextNode(css));
}
}
function updateLink(linkElement, obj) {
var css = obj.css;
var media = obj.media;
var sourceMap = obj.sourceMap;
if(sourceMap) {
// http://stackoverflow.com/a/26603875
css += "\n/*# sourceMappingURL=data:application/json;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + " */";
}
var blob = new Blob([css], { type: "text/css" });
var oldSrc = linkElement.href;
linkElement.href = URL.createObjectURL(blob);
if(oldSrc)
URL.revokeObjectURL(oldSrc);
}
/***/ }),
/* 5 */
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(2);
if(typeof content === 'string') content = [[module.i, content, '']];
// add the styles to the DOM
var update = __webpack_require__(4)(content, {});
if(content.locals) module.exports = content.locals;
// Hot Module Replacement
if(false) {
// When the styles change, update the <style> tags
if(!content.locals) {
module.hot.accept("!!./../node_modules/css-loader/index.js??ref--1-1!./../node_modules/autoprefixer-loader/index.js??ref--1-2!./../node_modules/sass-loader/index.js!./ListPartial.scss", function() {
var newContent = require("!!./../node_modules/css-loader/index.js??ref--1-1!./../node_modules/autoprefixer-loader/index.js??ref--1-2!./../node_modules/sass-loader/index.js!./ListPartial.scss");
if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
update(newContent);
});
}
// When the module is disposed, remove the <style> tags
module.hot.dispose(function() { update(); });
}
/***/ }),
/* 6 */
/***/ (function(module, exports, __webpack_require__) {
(function webpackUniversalModuleDefinition(root, factory) {
if(true)
module.exports = factory(__webpack_require__(0));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else {
var a = typeof exports === 'object' ? factory(require("react")) : factory(root["react"]);
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
}
})(this, function(__WEBPACK_EXTERNAL_MODULE_3__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {
module.exports = __webpack_require__(1);
/***/ },
/* 1 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _Uta = __webpack_require__(2);
var _Uta2 = _interopRequireDefault(_Uta);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _Uta2.default;
/***/ },
/* 2 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = __webpack_require__(3);
var _react2 = _interopRequireDefault(_react);
var _classnames = __webpack_require__(4);
var _classnames2 = _interopRequireDefault(_classnames);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Uta = function Uta(props) {
var children = props.children,
className = props.className,
Component = props.Component,
isLoading = props.isLoading,
style = props.style,
titleText = props.titleText;
var classes = (0, _classnames2.default)(className, 'async-load', { loading: isLoading });
return _react2.default.createElement(
Component,
{ className: classes, 'data-text': titleText, style: style },
_react2.default.createElement(
'div',
{ className: 'async-load-fade-container' },
children
)
);
};
Uta.propTypes = {
children: _react.PropTypes.node,
className: _react.PropTypes.string,
Component: _react.PropTypes.oneOfType([_react.PropTypes.node, _react.PropTypes.string]),
isLoading: _react.PropTypes.oneOfType([_react.PropTypes.bool, _react.PropTypes.string]),
style: _react.PropTypes.string,
titleText: _react.PropTypes.string
};
Uta.defaultProps = {
Component: 'div',
isLoading: false,
titleText: 'Loading'
};
exports.default = Uta;
/***/ },
/* 3 */
/***/ function(module, exports) {
module.exports = __WEBPACK_EXTERNAL_MODULE_3__;
/***/ },
/* 4 */
/***/ function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
Copyright (c) 2016 Jed Watson.

@@ -6,2 +673,73 @@ Licensed under the MIT License (MIT), see

*/
!function(){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var n=typeof o;if("string"===n||"number"===n)e.push(o);else if(Array.isArray(o))e.push(r.apply(null,o));else if("object"===n)for(var a in o)i.call(o,a)&&o[a]&&e.push(a)}}return e.join(" ")}var i={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=r:(o=[],n=function(){return r}.apply(t,o),!(void 0!==n&&(e.exports=n)))}()}])})},function(e,t,r){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=o(n);t.default=i.default}])});
/* global define */
(function () {
'use strict';
var hasOwn = {}.hasOwnProperty;
function classNames () {
var classes = [];
for (var i = 0; i < arguments.length; i++) {
var arg = arguments[i];
if (!arg) continue;
var argType = typeof arg;
if (argType === 'string' || argType === 'number') {
classes.push(arg);
} else if (Array.isArray(arg)) {
classes.push(classNames.apply(null, arg));
} else if (argType === 'object') {
for (var key in arg) {
if (hasOwn.call(arg, key) && arg[key]) {
classes.push(key);
}
}
}
}
return classes.join(' ');
}
if (typeof module !== 'undefined' && module.exports) {
module.exports = classNames;
} else if (true) {
// register as 'classnames', consistent with npm package name
!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = function () {
return classNames;
}.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
} else {
window.classNames = classNames;
}
}());
/***/ }
/******/ ])
});
;
/***/ }),
/* 7 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _ListPartial = __webpack_require__(1);
var _ListPartial2 = _interopRequireDefault(_ListPartial);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = _ListPartial2.default;
/***/ })
/******/ ]);
});

2

package.json
{
"name": "list-partial",
"version": "1.3.5",
"version": "1.3.6",
"description": "A template partial for showing list based presentations",

@@ -5,0 +5,0 @@ "main": "index.js",

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