cf-component-card
Advanced tools
Comparing version 1.4.2 to 1.4.3
@@ -14,10 +14,10 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
/******/ 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) | ||
@@ -29,23 +29,23 @@ /******/ var module = installedModules[moduleId] = { | ||
/******/ }; | ||
/******/ | ||
/******/ // 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 | ||
@@ -61,3 +61,3 @@ /******/ __webpack_require__.d = function(exports, name, getter) { | ||
/******/ }; | ||
/******/ | ||
/******/ // getDefaultExport function for compatibility with non-harmony modules | ||
@@ -71,11 +71,11 @@ /******/ __webpack_require__.n = function(module) { | ||
/******/ }; | ||
/******/ | ||
/******/ // 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 = 491); | ||
/******/ return __webpack_require__(__webpack_require__.s = 368); | ||
/******/ }) | ||
@@ -92,3 +92,3 @@ /************************************************************************/ | ||
/***/ 123: | ||
/***/ 206: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -121,3 +121,3 @@ | ||
/***/ 124: | ||
/***/ 207: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -184,3 +184,3 @@ | ||
/***/ 230: | ||
/***/ 265: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -240,3 +240,3 @@ | ||
/***/ 231: | ||
/***/ 266: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -298,3 +298,3 @@ | ||
/***/ 232: | ||
/***/ 267: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -366,3 +366,3 @@ | ||
/***/ 233: | ||
/***/ 268: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -425,3 +425,3 @@ | ||
/***/ 234: | ||
/***/ 269: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -442,15 +442,15 @@ | ||
var _CardSection = __webpack_require__(124); | ||
var _CardSection = __webpack_require__(207); | ||
var _CardSection2 = _interopRequireDefault(_CardSection); | ||
var _CardToolbar = __webpack_require__(269); | ||
var _CardToolbar = __webpack_require__(304); | ||
var _CardToolbar2 = _interopRequireDefault(_CardToolbar); | ||
var _CardToolbarLink = __webpack_require__(270); | ||
var _CardToolbarLink = __webpack_require__(305); | ||
var _CardToolbarLink2 = _interopRequireDefault(_CardToolbarLink); | ||
var _CardPropTypes = __webpack_require__(123); | ||
var _CardPropTypes = __webpack_require__(206); | ||
@@ -559,3 +559,3 @@ var _CardPropTypes2 = _interopRequireDefault(_CardPropTypes); | ||
/***/ 235: | ||
/***/ 270: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -607,3 +607,3 @@ | ||
/***/ 236: | ||
/***/ 271: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -676,3 +676,3 @@ | ||
/***/ 269: | ||
/***/ 304: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -742,3 +742,3 @@ | ||
/***/ 270: | ||
/***/ 305: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -759,3 +759,3 @@ | ||
var _cfComponentLink = __webpack_require__(71); | ||
var _cfComponentLink = __webpack_require__(97); | ||
@@ -826,3 +826,3 @@ var _cfComponentLink2 = _interopRequireDefault(_cfComponentLink); | ||
/***/ 35: | ||
/***/ 368: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -836,2 +836,63 @@ | ||
}); | ||
exports.CardBlock = exports.CardSection = exports.CardPropTypes = exports.CardMessages = exports.CardLoadingText = exports.CardDrawers = exports.CardControl = exports.CardContent = exports.Card = undefined; | ||
var _Card = __webpack_require__(265); | ||
var _Card2 = _interopRequireDefault(_Card); | ||
var _CardContent = __webpack_require__(267); | ||
var _CardContent2 = _interopRequireDefault(_CardContent); | ||
var _CardControl = __webpack_require__(268); | ||
var _CardControl2 = _interopRequireDefault(_CardControl); | ||
var _CardDrawers = __webpack_require__(269); | ||
var _CardDrawers2 = _interopRequireDefault(_CardDrawers); | ||
var _CardLoadingText = __webpack_require__(270); | ||
var _CardLoadingText2 = _interopRequireDefault(_CardLoadingText); | ||
var _CardMessages = __webpack_require__(271); | ||
var _CardMessages2 = _interopRequireDefault(_CardMessages); | ||
var _CardPropTypes = __webpack_require__(206); | ||
var _CardPropTypes2 = _interopRequireDefault(_CardPropTypes); | ||
var _CardSection = __webpack_require__(207); | ||
var _CardSection2 = _interopRequireDefault(_CardSection); | ||
var _CardBlock = __webpack_require__(266); | ||
var _CardBlock2 = _interopRequireDefault(_CardBlock); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.Card = _Card2.default; | ||
exports.CardContent = _CardContent2.default; | ||
exports.CardControl = _CardControl2.default; | ||
exports.CardDrawers = _CardDrawers2.default; | ||
exports.CardLoadingText = _CardLoadingText2.default; | ||
exports.CardMessages = _CardMessages2.default; | ||
exports.CardPropTypes = _CardPropTypes2.default; | ||
exports.CardSection = _CardSection2.default; | ||
exports.CardBlock = _CardBlock2.default; | ||
/***/ }), | ||
/***/ 53: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
exports.handleRoutes = handleRoutes; | ||
@@ -866,3 +927,3 @@ exports.routeTo = routeTo; | ||
/***/ 44: | ||
/***/ 83: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -878,3 +939,3 @@ | ||
var _routeHandler = __webpack_require__(35); | ||
var _routeHandler = __webpack_require__(53); | ||
@@ -887,3 +948,3 @@ exports.handleRoutes = _routeHandler.handleRoutes; | ||
/***/ 491: | ||
/***/ 87: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -897,64 +958,3 @@ | ||
}); | ||
exports.CardBlock = exports.CardSection = exports.CardPropTypes = exports.CardMessages = exports.CardLoadingText = exports.CardDrawers = exports.CardControl = exports.CardContent = exports.Card = undefined; | ||
var _Card = __webpack_require__(230); | ||
var _Card2 = _interopRequireDefault(_Card); | ||
var _CardContent = __webpack_require__(232); | ||
var _CardContent2 = _interopRequireDefault(_CardContent); | ||
var _CardControl = __webpack_require__(233); | ||
var _CardControl2 = _interopRequireDefault(_CardControl); | ||
var _CardDrawers = __webpack_require__(234); | ||
var _CardDrawers2 = _interopRequireDefault(_CardDrawers); | ||
var _CardLoadingText = __webpack_require__(235); | ||
var _CardLoadingText2 = _interopRequireDefault(_CardLoadingText); | ||
var _CardMessages = __webpack_require__(236); | ||
var _CardMessages2 = _interopRequireDefault(_CardMessages); | ||
var _CardPropTypes = __webpack_require__(123); | ||
var _CardPropTypes2 = _interopRequireDefault(_CardPropTypes); | ||
var _CardSection = __webpack_require__(124); | ||
var _CardSection2 = _interopRequireDefault(_CardSection); | ||
var _CardBlock = __webpack_require__(231); | ||
var _CardBlock2 = _interopRequireDefault(_CardBlock); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
exports.Card = _Card2.default; | ||
exports.CardContent = _CardContent2.default; | ||
exports.CardControl = _CardControl2.default; | ||
exports.CardDrawers = _CardDrawers2.default; | ||
exports.CardLoadingText = _CardLoadingText2.default; | ||
exports.CardMessages = _CardMessages2.default; | ||
exports.CardPropTypes = _CardPropTypes2.default; | ||
exports.CardSection = _CardSection2.default; | ||
exports.CardBlock = _CardBlock2.default; | ||
/***/ }), | ||
/***/ 50: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { | ||
value: true | ||
}); | ||
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }(); | ||
@@ -966,3 +966,3 @@ | ||
var _cfUtilRouteHandler = __webpack_require__(44); | ||
var _cfUtilRouteHandler = __webpack_require__(83); | ||
@@ -1082,3 +1082,3 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/***/ 71: | ||
/***/ 97: | ||
/***/ (function(module, exports, __webpack_require__) { | ||
@@ -1093,3 +1093,3 @@ | ||
var _Link = __webpack_require__(50); | ||
var _Link = __webpack_require__(87); | ||
@@ -1096,0 +1096,0 @@ var _Link2 = _interopRequireDefault(_Link); |
@@ -1,1 +0,1 @@ | ||
!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 n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},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=491)}({0:function(t,r){t.exports=e},123:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),a=(n(o),o.PropTypes.shape({id:o.PropTypes.string.isRequired,name:o.PropTypes.string.isRequired,content:o.PropTypes.any.isRequired})),i=o.PropTypes.arrayOf(a);t.default={cardDrawer:a,cardDrawers:i}},124:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"cf-card__section cf-card__section--"+this.props.status},this.props.children)}}]),t}(l.default.Component);s.propTypes={status:c.PropTypes.oneOf(["default","error"]),children:c.PropTypes.node},s.defaultProps={status:"default"},t.default=s},230:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("section",{className:"cf-card"},this.props.children)}}]),t}(l.default.Component);s.propTypes={children:c.PropTypes.node},t.default=s},231:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){var e="cf-card__block";return l.default.createElement("div",{className:e},this.props.children)}}]),t}(l.default.Component);s.propTypes={children:c.PropTypes.node},t.default=s},232:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"cf-card__content"},l.default.createElement("h3",{className:"cf-card__title"},this.props.title),this.props.children,this.props.footerMessage?l.default.createElement("div",{className:"cf-card__footer_message"},this.props.footerMessage):null)}}]),t}(l.default.Component);s.propTypes={title:c.PropTypes.any.isRequired,footerMessage:c.PropTypes.string,children:c.PropTypes.node},t.default=s},233:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){var e="cf-card__control"+(this.props.wide?" cf-card__control--wide":"");return l.default.createElement("div",{className:e},this.props.children)}}]),t}(l.default.Component);s.propTypes={children:c.PropTypes.node,wide:c.PropTypes.bool},t.default=s},234:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=r(124),f=n(s),p=r(269),d=n(p),y=r(270),b=n(y),_=r(123),h=n(_),v=0,m=function(e){function t(e){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._cardId=v++,r}return i(t,e),u(t,[{key:"render",value:function(){var e=this,t=[],r=[];this.props.drawers.forEach(function(n){var o=n.id===e.props.active,a="card-"+e._cardId+"-drawer-"+n.id;t.push(l.default.createElement(b.default,{key:n.id,id:a,isActive:o,onClick:e.props.onClick.bind(null,n.id)},n.name));var i="cf-card__drawer";o&&(i+=" cf-card__drawer--active"),r.push(l.default.createElement("div",{key:n.id,role:"tabpanel","aria-labelledby":a,"aria-hidden":o?"false":"true",className:i},o&&n.content))});var n="cf-card__drawers_container";return this.props.active&&(n+=" cf-card__drawers_container--open"),l.default.createElement(f.default,null,l.default.createElement(d.default,{controls:this.props.controls,links:t}),l.default.createElement("div",{className:n},r))}}]),t}(l.default.Component);m.propTypes={onClick:c.PropTypes.func.isRequired,active:c.PropTypes.string,drawers:h.default.cardDrawers.isRequired,controls:c.PropTypes.any},t.default=m},235:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"cf-card__loading_text"})}}]),t}(l.default.Component);t.default=s},236:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"cf-card__messages"},this.props.messages.map(function(e,t){return l.default.createElement("div",{key:t,role:"alert",className:"cf-card__message cf-card__message--"+e.type},e.content)}))}}]),t}(l.default.Component);s.propTypes={messages:c.PropTypes.arrayOf(c.PropTypes.shape({type:c.PropTypes.oneOf(["info","success","error","warning"]),content:c.PropTypes.any.isRequired})).isRequired},t.default=s},269:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"cf-card__toolbar"},l.default.createElement("div",{className:"cf-card__toolbar_controls"},this.props.controls),l.default.createElement("div",{className:"cf-card__toolbar_links",role:"tablist"},this.props.links))}}]),t}(l.default.Component);s.propTypes={controls:c.PropTypes.any,links:c.PropTypes.any},t.default=s},270:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=r(71),f=n(s),p=function(e){function t(e){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.handleClick=r.handleClick.bind(r),r}return i(t,e),u(t,[{key:"handleClick",value:function(e){e.preventDefault(),this.props.onClick()}},{key:"render",value:function(){var e="cf-card__toolbar_link";return this.props.isActive&&(e+=" cf-card__toolbar_link--open"),l.default.createElement(f.default,{role:"tab",id:this.props.id,className:e,onClick:this.handleClick},this.props.children)}}]),t}(l.default.Component);p.propTypes={onClick:c.PropTypes.func.isRequired,isActive:c.PropTypes.bool.isRequired,id:c.PropTypes.string,children:c.PropTypes.node},t.default=p},35:function(e,t,r){"use strict";function n(e){return i?void console.error("Warning: Route Handler: Only one handler is allowed at a time"):void(i=e)}function o(e){return i?void i(e):void console.error("Warning: Route Handler: A handler needs to be setup before you can route")}function a(){i=null}Object.defineProperty(t,"__esModule",{value:!0}),t.handleRoutes=n,t.routeTo=o,t.__resetRouteHandler=a;var i=void 0},44:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__resetRouteHandler=t.routeTo=t.handleRoutes=void 0;var n=r(35);t.handleRoutes=n.handleRoutes,t.routeTo=n.routeTo,t.__resetRouteHandler=n.__resetRouteHandler},491:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CardBlock=t.CardSection=t.CardPropTypes=t.CardMessages=t.CardLoadingText=t.CardDrawers=t.CardControl=t.CardContent=t.Card=void 0;var o=r(230),a=n(o),i=r(232),u=n(i),c=r(233),l=n(c),s=r(234),f=n(s),p=r(235),d=n(p),y=r(236),b=n(y),_=r(123),h=n(_),v=r(124),m=n(v),O=r(231),w=n(O);t.Card=a.default,t.CardContent=u.default,t.CardControl=l.default,t.CardDrawers=f.default,t.CardLoadingText=d.default,t.CardMessages=b.default,t.CardPropTypes=h.default,t.CardSection=m.default,t.CardBlock=w.default},50:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=r(0),s=n(l),f=r(44),p=function(e){function t(e,r){if(a(this,t),!e.to&&!e.onClick)throw new Error("<Link/> requires either a `to` or `onClick` prop");var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.handleClick=n.handleClick.bind(n),n.focus=n.focus.bind(n),n}return u(t,e),c(t,[{key:"focus",value:function(){this.link.focus()}},{key:"handleClick",value:function(e){e.preventDefault(),this.props.disabled||(this.props.to?(0,f.routeTo)(this.props.to):this.props.onClick(e))}},{key:"render",value:function(){var e=this,t=this.props,r=t.tagName,n=t.to,a=t.children,i=t.className,u=t.disabled,c=o(t,["tagName","to","children","className","disabled"]);return c.href||"a"!==r||(c.href=n||"#!"),c.role||(n&&"a"!==r?c.role="link":n||(c.role="button")),c.className="cf-link",u&&(c.className+=" cf-link--disabled",c.disabled=!0),i&&(c.className+=" "+i),c.onClick=this.handleClick,c.ref=function(t){return e.link=t},s.default.createElement(r,c,a)}}]),t}(s.default.Component);p.propTypes={to:l.PropTypes.string,onClick:l.PropTypes.func,tagName:l.PropTypes.string,disabled:l.PropTypes.bool,className:l.PropTypes.string,children:l.PropTypes.node},p.defaultProps={tagName:"a"},t.default=p},71:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(50),a=n(o);t.default=a.default}})}); | ||
!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 n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},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=368)}({0:function(t,r){t.exports=e},206:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),a=(n(o),o.PropTypes.shape({id:o.PropTypes.string.isRequired,name:o.PropTypes.string.isRequired,content:o.PropTypes.any.isRequired})),i=o.PropTypes.arrayOf(a);t.default={cardDrawer:a,cardDrawers:i}},207:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"cf-card__section cf-card__section--"+this.props.status},this.props.children)}}]),t}(l.default.Component);s.propTypes={status:c.PropTypes.oneOf(["default","error"]),children:c.PropTypes.node},s.defaultProps={status:"default"},t.default=s},265:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("section",{className:"cf-card"},this.props.children)}}]),t}(l.default.Component);s.propTypes={children:c.PropTypes.node},t.default=s},266:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"cf-card__block"},this.props.children)}}]),t}(l.default.Component);s.propTypes={children:c.PropTypes.node},t.default=s},267:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"cf-card__content"},l.default.createElement("h3",{className:"cf-card__title"},this.props.title),this.props.children,this.props.footerMessage?l.default.createElement("div",{className:"cf-card__footer_message"},this.props.footerMessage):null)}}]),t}(l.default.Component);s.propTypes={title:c.PropTypes.any.isRequired,footerMessage:c.PropTypes.string,children:c.PropTypes.node},t.default=s},268:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){var e="cf-card__control"+(this.props.wide?" cf-card__control--wide":"");return l.default.createElement("div",{className:e},this.props.children)}}]),t}(l.default.Component);s.propTypes={children:c.PropTypes.node,wide:c.PropTypes.bool},t.default=s},269:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=r(207),f=n(s),p=r(304),d=n(p),y=r(305),b=n(y),_=r(206),h=n(_),v=0,m=function(e){function t(e){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._cardId=v++,r}return i(t,e),u(t,[{key:"render",value:function(){var e=this,t=[],r=[];this.props.drawers.forEach(function(n){var o=n.id===e.props.active,a="card-"+e._cardId+"-drawer-"+n.id;t.push(l.default.createElement(b.default,{key:n.id,id:a,isActive:o,onClick:e.props.onClick.bind(null,n.id)},n.name));var i="cf-card__drawer";o&&(i+=" cf-card__drawer--active"),r.push(l.default.createElement("div",{key:n.id,role:"tabpanel","aria-labelledby":a,"aria-hidden":o?"false":"true",className:i},o&&n.content))});var n="cf-card__drawers_container";return this.props.active&&(n+=" cf-card__drawers_container--open"),l.default.createElement(f.default,null,l.default.createElement(d.default,{controls:this.props.controls,links:t}),l.default.createElement("div",{className:n},r))}}]),t}(l.default.Component);m.propTypes={onClick:c.PropTypes.func.isRequired,active:c.PropTypes.string,drawers:h.default.cardDrawers.isRequired,controls:c.PropTypes.any},t.default=m},270:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"cf-card__loading_text"})}}]),t}(l.default.Component);t.default=s},271:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"cf-card__messages"},this.props.messages.map(function(e,t){return l.default.createElement("div",{key:t,role:"alert",className:"cf-card__message cf-card__message--"+e.type},e.content)}))}}]),t}(l.default.Component);s.propTypes={messages:c.PropTypes.arrayOf(c.PropTypes.shape({type:c.PropTypes.oneOf(["info","success","error","warning"]),content:c.PropTypes.any.isRequired})).isRequired},t.default=s},304:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=function(e){function t(){return o(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return i(t,e),u(t,[{key:"render",value:function(){return l.default.createElement("div",{className:"cf-card__toolbar"},l.default.createElement("div",{className:"cf-card__toolbar_controls"},this.props.controls),l.default.createElement("div",{className:"cf-card__toolbar_links",role:"tablist"},this.props.links))}}]),t}(l.default.Component);s.propTypes={controls:c.PropTypes.any,links:c.PropTypes.any},t.default=s},305:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),c=r(0),l=n(c),s=r(97),f=n(s),p=function(e){function t(e){o(this,t);var r=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.handleClick=r.handleClick.bind(r),r}return i(t,e),u(t,[{key:"handleClick",value:function(e){e.preventDefault(),this.props.onClick()}},{key:"render",value:function(){var e="cf-card__toolbar_link";return this.props.isActive&&(e+=" cf-card__toolbar_link--open"),l.default.createElement(f.default,{role:"tab",id:this.props.id,className:e,onClick:this.handleClick},this.props.children)}}]),t}(l.default.Component);p.propTypes={onClick:c.PropTypes.func.isRequired,isActive:c.PropTypes.bool.isRequired,id:c.PropTypes.string,children:c.PropTypes.node},t.default=p},368:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.CardBlock=t.CardSection=t.CardPropTypes=t.CardMessages=t.CardLoadingText=t.CardDrawers=t.CardControl=t.CardContent=t.Card=void 0;var o=r(265),a=n(o),i=r(267),u=n(i),c=r(268),l=n(c),s=r(269),f=n(s),p=r(270),d=n(p),y=r(271),b=n(y),_=r(206),h=n(_),v=r(207),m=n(v),O=r(266),w=n(O);t.Card=a.default,t.CardContent=u.default,t.CardControl=l.default,t.CardDrawers=f.default,t.CardLoadingText=d.default,t.CardMessages=b.default,t.CardPropTypes=h.default,t.CardSection=m.default,t.CardBlock=w.default},53:function(e,t,r){"use strict";function n(e){if(i)return void console.error("Warning: Route Handler: Only one handler is allowed at a time");i=e}function o(e){if(!i)return void console.error("Warning: Route Handler: A handler needs to be setup before you can route");i(e)}function a(){i=null}Object.defineProperty(t,"__esModule",{value:!0}),t.handleRoutes=n,t.routeTo=o,t.__resetRouteHandler=a;var i=void 0},83:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.__resetRouteHandler=t.routeTo=t.handleRoutes=void 0;var n=r(53);t.handleRoutes=n.handleRoutes,t.routeTo=n.routeTo,t.__resetRouteHandler=n.__resetRouteHandler},87:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=r(0),s=n(l),f=r(83),p=function(e){function t(e,r){if(a(this,t),!e.to&&!e.onClick)throw new Error("<Link/> requires either a `to` or `onClick` prop");var n=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.handleClick=n.handleClick.bind(n),n.focus=n.focus.bind(n),n}return u(t,e),c(t,[{key:"focus",value:function(){this.link.focus()}},{key:"handleClick",value:function(e){e.preventDefault(),this.props.disabled||(this.props.to?(0,f.routeTo)(this.props.to):this.props.onClick(e))}},{key:"render",value:function(){var e=this,t=this.props,r=t.tagName,n=t.to,a=t.children,i=t.className,u=t.disabled,c=o(t,["tagName","to","children","className","disabled"]);return c.href||"a"!==r||(c.href=n||"#!"),c.role||(n&&"a"!==r?c.role="link":n||(c.role="button")),c.className="cf-link",u&&(c.className+=" cf-link--disabled",c.disabled=!0),i&&(c.className+=" "+i),c.onClick=this.handleClick,c.ref=function(t){return e.link=t},s.default.createElement(r,c,a)}}]),t}(s.default.Component);p.propTypes={to:l.PropTypes.string,onClick:l.PropTypes.func,tagName:l.PropTypes.string,disabled:l.PropTypes.bool,className:l.PropTypes.string,children:l.PropTypes.node},p.defaultProps={tagName:"a"},t.default=p},97:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(87),a=n(o);t.default=a.default}})}); |
{ | ||
"name": "cf-component-card", | ||
"description": "Cloudflare Card Component", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "module": "es/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119970
1719