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

list-partial

Package Overview
Dependencies
Maintainers
2
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.7 to 1.3.8

LICENSE

751

index.js

@@ -1,744 +0,11 @@

(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
!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 n=t("object"==typeof exports?require("react"):e.react);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=11)}([function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<t.length;o++){var i=t[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(e,t){function n(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=f[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(i(r.parts[a],t))}else{for(var s=[],a=0;a<r.parts.length;a++)s.push(i(r.parts[a],t));f[r.id]={id:r.id,refs:1,parts:s}}}}function r(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],a=o[0],i=o[1],s=o[2],u=o[3],c={css:i,media:s,sourceMap:u};n[a]?n[a].parts.push(c):t.push(n[a]={id:a,parts:[c]})}return t}function o(){var e=document.createElement("style"),t=d();return e.type="text/css",t.appendChild(e),e}function a(){var e=document.createElement("link"),t=d();return e.rel="stylesheet",t.appendChild(e),e}function i(e,t){var n,r,i;if(t.singleton){var f=h++;n=y||(y=o()),r=s.bind(null,n,f,!1),i=s.bind(null,n,f,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=a(),r=c.bind(null,n),i=function(){n.parentNode.removeChild(n),n.href&&URL.revokeObjectURL(n.href)}):(n=o(),r=u.bind(null,n),i=function(){n.parentNode.removeChild(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function s(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function u(e,t){var n=t.css,r=t.media;t.sourceMap;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function c(e,t){var n=t.css,r=(t.media,t.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}var f={},l=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},p=l(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),d=l(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,h=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=p());var o=r(e);return n(o,t),function(e){for(var a=[],i=0;i<o.length;i++){var s=o[i],u=f[s.id];u.refs--,a.push(u)}if(e){var c=r(e);n(c,t)}for(var i=0;i<a.length;i++){var u=a[i];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete f[u.id]}}}};var _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),a=r(o),i=n(9),s=r(i),u=n(4),c=(r(u),n(7)),f=r(c),l=n(8),p=r(l),d=n(10),y=r(d),h={},_=function(e){var t=e.exportComponent,n=e.filterComponent,r=e.headerComponent,o=e.isLoading,i=e.notifications,u=e.paginationComponent,c=e.searchComponent,l=e.stylesheets,p=e.tableComponent;return h=(0,y.default)(f.default,l),a.default.createElement("div",null,a.default.createElement("div",{className:h.exportComponent},t&&t),a.default.createElement("div",{className:h.toolHeader},r&&r),a.default.createElement("div",null,a.default.createElement("div",{className:h.toolControls},a.default.createElement("div",{className:h.searchComponent},c&&c),a.default.createElement("div",{className:h.filterComponent},n&&n)),a.default.createElement("div",{className:h.notifications},i&&i),a.default.createElement(s.default,{isLoading:o},u&&u,p&&p,u&&u)))};_.propTypes={exportComponent:o.PropTypes.shape(),filterComponent:o.PropTypes.shape(),headerComponent:o.PropTypes.shape(),isLoading:o.PropTypes.bool,notifications:o.PropTypes.arrayOf(o.PropTypes.shape()),paginationComponent:o.PropTypes.shape(),searchComponent:o.PropTypes.shape(),stylesheets:o.PropTypes.arrayOf(o.PropTypes.shape()),tableComponent:o.PropTypes.shape()},_.defaultProps={exportComponent:null,filterComponent:null,headerComponent:null,isLoading:!1,notifications:null,paginationComponent:null,searchComponent:null,stylesheets:[p.default],tableComponent:null},t.default=_},function(e,t,n){var r,o;/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
// 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
!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var i in r)a.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}var a={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=n:(r=[],o=function(){return n}.apply(t,r),!(void 0!==o&&(e.exports=o)))}()},function(e,t,n){t=e.exports=n(0)(),t.push([e.i,".notifications__src-ListPartial__1RA-p{margin:10px 0}.toolControls__src-ListPartial__2lcSw{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}",""]),t.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"}},function(e,t,n){t=e.exports=n(0)(),t.push([e.i,".toolControls__src-ListPartialDefault__1r9z-{border-bottom:1px dashed #343739;border-top:1px solid #c3c2c2}",""]),t.locals={toolControls:"toolControls__src-ListPartialDefault__1r9z-"}},function(e,t,n){var r=n(5);"string"==typeof r&&(r=[[e.i,r,""]]);n(1)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(6);"string"==typeof r&&(r=[[e.i,r,""]]);n(1)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){!function(t,r){e.exports=r(n(2))}(this,function(e){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=26)}([function(e,t,n){e.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(11),o=n(16),a=n(18),i=Object.defineProperty;t.f=n(0)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),o)try{return i(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(8),a=r(o),i=n(25),s=r(i),u=n(20),c=r(u),f=n(24),l=r(f),p=function(e){var t=e.children,n=e.className,r=e.Component,o=e.isLoading,i=e.titleText,u=(0,c.default)(n,l.default.asyncLoad,(0,a.default)({},l.default.loading,o));return s.default.createElement(r,{className:u,"data-text":i},s.default.createElement("div",{className:l.default.asyncLoadFadeContainer},t))};p.propTypes={children:i.PropTypes.node,className:i.PropTypes.string,Component:i.PropTypes.oneOfType([i.PropTypes.node,i.PropTypes.string]),isLoading:i.PropTypes.oneOfType([i.PropTypes.bool,i.PropTypes.string]),titleText:i.PropTypes.string},p.defaultProps={children:null,className:null,Component:"div",isLoading:!1,titleText:"Loading"},t.default=p},function(e,t,n){e.exports={default:n(9),__esModule:!0}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(7),a=r(o);t.default=function(e,t,n){return t in e?(0,a.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){n(19);var r=n(2).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(1);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(10);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){var r=n(1),o=n(4).document,a=r(o)&&r(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},function(e,t,n){var r=n(4),o=n(2),a=n(12),i=n(15),s="prototype",u=function(e,t,n){var c,f,l,p=e&u.F,d=e&u.G,y=e&u.S,h=e&u.P,_=e&u.B,v=e&u.W,m=d?o:o[t]||(o[t]={}),g=m[s],x=d?r:y?r[t]:(r[t]||{})[s];d&&(n=t);for(c in n)f=!p&&x&&void 0!==x[c],f&&c in m||(l=f?x[c]:n[c],m[c]=d&&"function"!=typeof x[c]?n[c]:_&&f?a(l,r):v&&x[c]==l?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[s]=e[s],t}(l):h&&"function"==typeof l?a(Function.call,l):l,h&&((m.virtual||(m.virtual={}))[c]=l,e&u.R&&g&&!g[c]&&i(g,c,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(5),o=n(17);e.exports=n(0)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){e.exports=!n(0)&&!n(3)(function(){return 7!=Object.defineProperty(n(13)("div"),"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(1);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(14);r(r.S+r.F*!n(0),"Object",{defineProperty:n(5).f})},function(e,t,n){var r,o;/*!
Copyright (c) 2016 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
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.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/
/* 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;
/***/ })
/******/ ]);
});
!function(){"use strict";function n(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r))e.push(n.apply(null,r));else if("object"===o)for(var i in r)a.call(r,i)&&r[i]&&e.push(i)}}return e.join(" ")}var a={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=n:(r=[],o=function(){return n}.apply(t,r),!(void 0!==o&&(e.exports=o)))}()},function(e,t,n){t=e.exports=n(22)(),t.push([e.i,".asyncLoad__src-Uta__1oz3B{display:block;min-height:200px;position:relative}.asyncLoad__src-Uta__1oz3B.loading__src-Uta__2qzUo .asyncLoadFadeContainer__src-Uta__36L2d{opacity:0}.asyncLoad__src-Uta__1oz3B.loading__src-Uta__2qzUo .asyncLoadFadeContainer__src-Uta__36L2d:after{bottom:0;content:' ';left:0;position:absolute;right:0;top:0}.asyncLoad__src-Uta__1oz3B .asyncLoadFadeContainer__src-Uta__36L2d{opacity:1;transition:opacity .5s ease}.asyncLoad__src-Uta__1oz3B.loading__src-Uta__2qzUo:after,.asyncLoad__src-Uta__1oz3B.loading__src-Uta__2qzUo:before{opacity:1;width:100px;height:100px}.asyncLoad__src-Uta__1oz3B:before{content:attr(data-text);font-size:10px;height:20px;letter-spacing:1.2px;line-height:20px;text-align:center;text-transform:uppercase;top:135px;width:100px}.asyncLoad__src-Uta__1oz3B:after,.asyncLoad__src-Uta__1oz3B:before{left:50%;margin-left:-50px;opacity:0;position:absolute;transition:opacity .5s ease}.asyncLoad__src-Uta__1oz3B:after{animation-duration:1.5s;animation-name:spin__src-Uta__1MeXP;animation-iteration-count:infinite;animation-timing-function:linear;background-image:url(\"data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDov L3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxMDAnIGhlaWdodD0nMTAwJz48cGF0aCB kPSdNIDUgNTAgQSA0NSA0NSAwIDEgMSAxOC4xOCA4MS44MicgZmlsbD0nbm9uZScgc3Ryb2 tlPScjY2NjY2NjJyBzdHJva2Utb3BhY2l0eT0nMC40JyBzdHJva2Utd2lkdGg9JzgnIC8+P HBhdGggZD0nTSA1IDUwIEEgNDUgNDUgMCAwIDAgMTguMTggODEuODInIGZpbGw9J25vbmUn IHN0cm9rZT0nI0Y0N0U0Micgc3Ryb2tlLXdpZHRoPSc4JyAvPjwvc3ZnPg==\");content:' ';height:1px;top:30px;transform-origin:50% 50%;width:1px;z-index:1}@keyframes spin__src-Uta__1MeXP{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",""]),t.locals={asyncLoad:"asyncLoad__src-Uta__1oz3B",loading:"loading__src-Uta__2qzUo",asyncLoadFadeContainer:"asyncLoadFadeContainer__src-Uta__36L2d",spin:"spin__src-Uta__1MeXP"}},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var a=this[o][0];"number"==typeof a&&(r[a]=!0)}for(o=0;o<t.length;o++){var i=t[o];"number"==typeof i[0]&&r[i[0]]||(n&&!i[2]?i[2]=n:n&&(i[2]="("+i[2]+") and ("+n+")"),e.push(i))}},e}},function(e,t){function n(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=f[r.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](r.parts[a]);for(;a<r.parts.length;a++)o.parts.push(i(r.parts[a],t))}else{for(var s=[],a=0;a<r.parts.length;a++)s.push(i(r.parts[a],t));f[r.id]={id:r.id,refs:1,parts:s}}}}function r(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],a=o[0],i=o[1],s=o[2],u=o[3],c={css:i,media:s,sourceMap:u};n[a]?n[a].parts.push(c):t.push(n[a]={id:a,parts:[c]})}return t}function o(){var e=document.createElement("style"),t=d();return e.type="text/css",t.appendChild(e),e}function a(){var e=document.createElement("link"),t=d();return e.rel="stylesheet",t.appendChild(e),e}function i(e,t){var n,r,i;if(t.singleton){var f=h++;n=y||(y=o()),r=s.bind(null,n,f,!1),i=s.bind(null,n,f,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=a(),r=c.bind(null,n),i=function(){n.parentNode.removeChild(n),n.href&&URL.revokeObjectURL(n.href)}):(n=o(),r=u.bind(null,n),i=function(){n.parentNode.removeChild(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function s(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(t,o);else{var a=document.createTextNode(o),i=e.childNodes;i[t]&&e.removeChild(i[t]),i.length?e.insertBefore(a,i[t]):e.appendChild(a)}}function u(e,t){var n=t.css,r=t.media;if(t.sourceMap,r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function c(e,t){var n=t.css,r=(t.media,t.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(o),a&&URL.revokeObjectURL(a)}var f={},l=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},p=l(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),d=l(function(){return document.head||document.getElementsByTagName("head")[0]}),y=null,h=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=p());var o=r(e);return n(o,t),function(e){for(var a=[],i=0;i<o.length;i++){var s=o[i],u=f[s.id];u.refs--,a.push(u)}if(e){var c=r(e);n(c,t)}for(var i=0;i<a.length;i++){var u=a[i];if(0===u.refs){for(var l=0;l<u.parts.length;l++)u.parts[l]();delete f[u.id]}}}};var _=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t,n){var r=n(21);"string"==typeof r&&(r=[[e.i,r,""]]),n(23)(r,{}),r.locals&&(e.exports=r.locals)},function(t,n){t.exports=e},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),a=r(o);t.default=a.default}])})},function(e,t){e.exports=function(e,t){return t.reduce(function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]&&t[n]&&(e[n]=e[n].split(" ").concat(t[n].split(" ")).join(" ")),e},e)},e)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(3),a=r(o);t.default=a.default}])});
{
"name": "list-partial",
"version": "1.3.7",
"version": "1.3.8",
"description": "A template partial for showing list based presentations",

@@ -13,12 +13,12 @@ "main": "index.js",

"type": "git",
"url": "git+https://github.com/chrisarevir/list-partial.git"
"url": "git+https://github.com/chrisarevir/component-library.git"
},
"author": "Ben Burlingham and Christian Rivera",
"author": "Procore",
"license": "MIT",
"bugs": {
"url": "https://github.com/chrisarevir/list-partial/issues"
"url": "https://github.com/chrisarevir/component-library/issues"
},
"homepage": "https://github.com/chrisarevir/list-partial#readme",
"homepage": "https://github.com/chrisarevir/component-library#readme",
"dependencies": {
"uta": "^1.0.0"
"uta": "^1.1.1"
},

@@ -41,4 +41,4 @@ "devDependencies": {

"webpack": "^2.2.1",
"webpack-dev-server": "^1.16.3"
"webpack-dev-server": "^2.4.1"
}
}
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