@rei/cdr-card
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -1,7 +0,11 @@ | ||
<a name="0.2.1"></a> | ||
## 0.2.1 (2018-09-13) | ||
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. | ||
### Chores | ||
## 0.2.3 (2019-02-28) | ||
### chore | ||
* **build:** make cdr-* packages externals by default ([e0d9763](https://github.com/rei/rei-cedar/commit/e0d9763)) | ||
@@ -12,2 +16,3 @@ | ||
* **18.9.1 release:** release adds support for cdr-icon and updates the peer-dependancies of compone ([5a6da2c](https://github.com/rei/rei-cedar/commit/5a6da2c)) | ||
* **all components:** change package name prefixes from cedar-* to cdr-* ([dad0dfb](https://github.com/rei/rei-cedar/commit/dad0dfb)), closes [#354](https://github.com/rei/rei-cedar/issues/354) | ||
@@ -17,4 +22,4 @@ * **assets:** bump to 0.2.0 with removal of icon assets ([2e57098](https://github.com/rei/rei-cedar/commit/2e57098)) | ||
* **components:** update components to use css-modules ([ec1321c](https://github.com/rei/rei-cedar/commit/ec1321c)) | ||
* **components:** update npm organization from [@rei-co-op](https://github.com/rei-co-op) to [@rei](https://github.com/rei) ([0842f77](https://github.com/rei/rei-cedar/commit/0842f77)) | ||
* **deps:** update icon and assets for publishing ([48f2c67](https://github.com/rei/rei-cedar/commit/48f2c67)) | ||
* **docs:** added all component's routes to rei-cedar project, and a couple compositions as a POC ([29fdf72](https://github.com/rei/rei-cedar/commit/29fdf72)) | ||
* **lerna-semantic-release:** replaced standard changelog with lerna-semantic-release as dev depende ([5084037](https://github.com/rei/rei-cedar/commit/5084037)) | ||
@@ -32,4 +37,37 @@ * **release:** bump all to 0.1.0 and remove base-components ([f5c335e](https://github.com/rei/rei-cedar/commit/f5c335e)) | ||
for cdr-column changed to cdr-col | ||
* **components:** Update all package names | ||
<a name="0.2.2"></a> | ||
## 0.2.2 (2018-12-20) | ||
### Chores | ||
* **build:** make cdr-* packages externals by default ([e0d9763](https://github.com/rei/rei-cedar/commit/e0d9763)) | ||
### Features | ||
* **18.9.1 release:** release adds support for cdr-icon and updates the peer-dependancies of compone ([5a6da2c](https://github.com/rei/rei-cedar/commit/5a6da2c)) | ||
* **all components:** change package name prefixes from cedar-* to cdr-* ([dad0dfb](https://github.com/rei/rei-cedar/commit/dad0dfb)), closes [#354](https://github.com/rei/rei-cedar/issues/354) | ||
* **assets:** bump to 0.2.0 with removal of icon assets ([2e57098](https://github.com/rei/rei-cedar/commit/2e57098)) | ||
* **card:** update dependencies ([0ef7910](https://github.com/rei/rei-cedar/commit/0ef7910)) | ||
* **components:** update components to use css-modules ([ec1321c](https://github.com/rei/rei-cedar/commit/ec1321c)) | ||
* **deps:** update icon and assets for publishing ([48f2c67](https://github.com/rei/rei-cedar/commit/48f2c67)) | ||
* **docs:** added all component's routes to rei-cedar project, and a couple compositions as a POC ([29fdf72](https://github.com/rei/rei-cedar/commit/29fdf72)) | ||
* **lerna-semantic-release:** replaced standard changelog with lerna-semantic-release as dev depende ([5084037](https://github.com/rei/rei-cedar/commit/5084037)) | ||
* **release:** bump all to 0.1.0 and remove base-components ([f5c335e](https://github.com/rei/rei-cedar/commit/f5c335e)) | ||
* **release:** button, breadcrumb, grid, and list are released to v1 ([d6973b7](https://github.com/rei/rei-cedar/commit/d6973b7)) | ||
### BREAKING CHANGES | ||
* **components:** Components are now using css-modules for unique class names tied to the package version | ||
* **release:** packages no longer have plugin as default export | ||
* **build:** Raw component cdr-* peerdependencies are no longer bundled | ||
* **all components:** Change all package names to cdr- prefix. Package name for cdr-image changed to cdr-img. Package name | ||
for cdr-column changed to cdr-col |
@@ -1,1 +0,357 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("CdrCard",[],e):"object"==typeof exports?exports.CdrCard=e():t.CdrCard=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var s=e[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=3)}([function(t,e,n){"use strict";var r=n(1);e.a=r.a},function(t,e,n){"use strict";var r=n(7);e.a={name:"CdrCard",mixins:[r.a],computed:{baseClass:function(){return"cdr-card"}}}},function(t,e){t.exports={"cdr-card":"cdr-card_0.2.2"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4);n.d(e,"CdrCard",function(){return r.a})},function(t,e,n){"use strict";var r=n(5),s=n(0),o=n(9),i=n(10);var a=Object(i.a)(s.a,r.a,r.b,!1,function(t){this.$style=o.default.locals||o.default},null,null);e.a=a.exports},function(t,e,n){"use strict";var r=n(6);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b})},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return s});var r=function(){var t=this.$createElement;return(this._self._c||t)("article",{class:this.modifierClass},[this._t("default")],2)},s=[]},function(t,e,n){"use strict";var r=n(8);e.a={mixins:[r.a],props:{modifier:String},computed:{modifierClass:function(){return this.buildClass("modifier")}}}},function(t,e,n){"use strict";e.a={methods:{buildClass:function(t){var e=this,n="cdr";this.baseClass&&(n=this.baseClass);var r=n,s=this[t]?this[t].split(" "):[],o=[];return this.$style?(o.push(this.moduleClass(r)),o=o.concat(s.map(function(t){return e.modifyClassName(r,t)}))):(o.push(""+r),o=o.concat(s.map(function(t){return e.modifyClassName(r,t)}))),o.join(" ")},moduleClass:function(t){return this.$style[""+t]},modifyClassName:function(t,e){return this.$style?this.moduleClass(t+"--"+e):t+"--"+e}}}},function(t,e,n){"use strict";var r=n(2),s=n.n(r);e.default=s.a},function(t,e,n){"use strict";e.a=function(t,e,n,r,s,o,i,a){var u,c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0);r&&(c.functional=!0);o&&(c._scopeId="data-v-"+o);i?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=u):s&&(u=a?function(){s.call(this,this.$root.$options.shadowRoot)}:s);if(u)if(c.functional){c._injectStyles=u;var f=c.render;c.render=function(t,e){return u.call(e),f(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:c}}}])}); | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
else if(typeof define === 'function' && define.amd) | ||
define("CdrCard", [], factory); | ||
else if(typeof exports === 'object') | ||
exports["CdrCard"] = factory(); | ||
else | ||
root["CdrCard"] = factory(); | ||
})(this, function() { | ||
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; | ||
/******/ | ||
/******/ // define getter function for harmony exports | ||
/******/ __webpack_require__.d = function(exports, name, getter) { | ||
/******/ if(!__webpack_require__.o(exports, name)) { | ||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); | ||
/******/ } | ||
/******/ }; | ||
/******/ | ||
/******/ // define __esModule on exports | ||
/******/ __webpack_require__.r = function(exports) { | ||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | ||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
/******/ } | ||
/******/ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/******/ }; | ||
/******/ | ||
/******/ // create a fake namespace object | ||
/******/ // mode & 1: value is a module id, require it | ||
/******/ // mode & 2: merge all properties of value into the ns | ||
/******/ // mode & 4: return value when already ns object | ||
/******/ // mode & 8|1: behave like require | ||
/******/ __webpack_require__.t = function(value, mode) { | ||
/******/ if(mode & 1) value = __webpack_require__(value); | ||
/******/ if(mode & 8) return value; | ||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; | ||
/******/ var ns = Object.create(null); | ||
/******/ __webpack_require__.r(ns); | ||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); | ||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); | ||
/******/ return ns; | ||
/******/ }; | ||
/******/ | ||
/******/ // 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 = 2); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ([ | ||
/* 0 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// extracted by mini-css-extract-plugin | ||
module.exports = {"cdr-card":"cdr-card_0.2.3"}; | ||
/***/ }), | ||
/* 1 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_0_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_3_oneOf_0_2_node_modules_vue_loader_lib_index_js_vue_loader_options_CdrCard_vue_vue_type_style_index_0_module_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_0_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_3_oneOf_0_2_node_modules_vue_loader_lib_index_js_vue_loader_options_CdrCard_vue_vue_type_style_index_0_module_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_0_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_3_oneOf_0_2_node_modules_vue_loader_lib_index_js_vue_loader_options_CdrCard_vue_vue_type_style_index_0_module_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); | ||
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_0_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_3_oneOf_0_2_node_modules_vue_loader_lib_index_js_vue_loader_options_CdrCard_vue_vue_type_style_index_0_module_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
// CONCATENATED MODULE: /Users/dtrimil/Code/rei-cedar/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/dtrimil/Code/rei-cedar/node_modules/vue-loader/lib??vue-loader-options!./CdrCard.vue?vue&type=template&id=7e37408f& | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('article',{class:_vm.modifierClass},[_vm._t("default")],2)} | ||
var staticRenderFns = [] | ||
// CONCATENATED MODULE: ./CdrCard.vue?vue&type=template&id=7e37408f& | ||
// CONCATENATED MODULE: /Users/dtrimil/Code/rei-cedar/src/mixins/buildClass.js | ||
/** | ||
* @mixin | ||
*/ | ||
/* harmony default export */ var buildClass = ({ | ||
methods: { | ||
/** | ||
* | ||
* @param {String} prop -- the prop to build classes from | ||
*/ | ||
buildClass(prop) { | ||
let checkBase = 'cdr'; | ||
if (this.baseClass) { | ||
checkBase = this.baseClass; | ||
} | ||
const base = checkBase; | ||
const propArgsArr = this[prop] ? this[prop].split(' ') : []; | ||
let final = []; | ||
if (!this.$style) { | ||
final.push(`${base}`); | ||
final = final.concat(propArgsArr.map(mod => this.modifyClassName(base, mod))); | ||
} else { | ||
final.push(this.moduleClass(base)); | ||
final = final.concat(propArgsArr.map(mod => this.modifyClassName(base, mod))); | ||
} | ||
return final.join(' '); | ||
}, | ||
/** | ||
* Returns a css module class | ||
*/ | ||
moduleClass(className) { | ||
return this.$style[`${className}`]; | ||
}, | ||
/** | ||
* Returns a modified base class | ||
*/ | ||
modifyClassName(base, modifier) { | ||
return this.$style ? this.moduleClass(`${base}--${modifier}`) : `${base}--${modifier}`; | ||
} | ||
} | ||
}); | ||
// CONCATENATED MODULE: /Users/dtrimil/Code/rei-cedar/src/mixins/modifier.js | ||
/** | ||
* @mixin | ||
*/ | ||
/* harmony default export */ var modifier = ({ | ||
mixins: [buildClass], | ||
props: { | ||
/** | ||
* Space separated list of modifiers. See above for possible values | ||
*/ | ||
modifier: String | ||
}, | ||
computed: { | ||
modifierClass() { | ||
return this.buildClass('modifier'); | ||
} | ||
} | ||
}); | ||
// CONCATENATED MODULE: /Users/dtrimil/Code/rei-cedar/node_modules/babel-loader/lib!/Users/dtrimil/Code/rei-cedar/node_modules/vue-loader/lib??vue-loader-options!./CdrCard.vue?vue&type=script&lang=js& | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
/** | ||
* Cedar 2 component for a card container | ||
* The basic card is intended as a container for grouping like content. | ||
* @version 0.2.2 | ||
* @author [REI Software Engineering](https://rei.github.io/rei-cedar/) | ||
*/ | ||
/* harmony default export */ var lib_vue_loader_options_CdrCardvue_type_script_lang_js_ = ({ | ||
name: 'CdrCard', | ||
mixins: [modifier], | ||
computed: { | ||
baseClass() { | ||
return 'cdr-card'; | ||
} | ||
} | ||
}); | ||
// CONCATENATED MODULE: ./CdrCard.vue?vue&type=script&lang=js& | ||
/* harmony default export */ var CdrCardvue_type_script_lang_js_ = (lib_vue_loader_options_CdrCardvue_type_script_lang_js_); | ||
// EXTERNAL MODULE: ./CdrCard.vue?vue&type=style&index=0&module=true&lang=css& | ||
var CdrCardvue_type_style_index_0_module_true_lang_css_ = __webpack_require__(1); | ||
// CONCATENATED MODULE: /Users/dtrimil/Code/rei-cedar/node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). | ||
// This module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle. | ||
function normalizeComponent ( | ||
scriptExports, | ||
render, | ||
staticRenderFns, | ||
functionalTemplate, | ||
injectStyles, | ||
scopeId, | ||
moduleIdentifier, /* server only */ | ||
shadowMode /* vue-cli only */ | ||
) { | ||
// Vue.extend constructor export interop | ||
var options = typeof scriptExports === 'function' | ||
? scriptExports.options | ||
: scriptExports | ||
// render functions | ||
if (render) { | ||
options.render = render | ||
options.staticRenderFns = staticRenderFns | ||
options._compiled = true | ||
} | ||
// functional template | ||
if (functionalTemplate) { | ||
options.functional = true | ||
} | ||
// scopedId | ||
if (scopeId) { | ||
options._scopeId = 'data-v-' + scopeId | ||
} | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = shadowMode | ||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } | ||
: injectStyles | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// for template-only hot-reload because in that case the render fn doesn't | ||
// go through the normalizer | ||
options._injectStyles = hook | ||
// register for functioal component in vue file | ||
var originalRender = options.render | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return originalRender(h, context) | ||
} | ||
} else { | ||
// inject component registration as beforeCreate hook | ||
var existing = options.beforeCreate | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} | ||
} | ||
return { | ||
exports: scriptExports, | ||
options: options | ||
} | ||
} | ||
// CONCATENATED MODULE: ./CdrCard.vue | ||
function injectStyles (context) { | ||
this["$style"] = (CdrCardvue_type_style_index_0_module_true_lang_css_["default"].locals || CdrCardvue_type_style_index_0_module_true_lang_css_["default"]) | ||
} | ||
/* normalize component */ | ||
var component = normalizeComponent( | ||
CdrCardvue_type_script_lang_js_, | ||
render, | ||
staticRenderFns, | ||
false, | ||
injectStyles, | ||
null, | ||
null | ||
) | ||
/* harmony default export */ var CdrCard = (component.exports); | ||
// CONCATENATED MODULE: ./build/main.js | ||
/* concated harmony reexport CdrCard */__webpack_require__.d(__webpack_exports__, "CdrCard", function() { return CdrCard; }); | ||
// eslint-disable-line import/prefer-default-export | ||
/***/ }) | ||
/******/ ]); | ||
}); | ||
//# sourceMappingURL=cdr-card.js.map |
@@ -1,1 +0,366 @@ | ||
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("CdrCard",[],e):"object"==typeof exports?exports.CdrCard=e():t.CdrCard=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var s=e[r]={i:r,l:!1,exports:{}};return t[r].call(s.exports,s,s.exports,n),s.l=!0,s.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=3)}([function(t,e,n){"use strict";var r=n(1);e.a=r.a},function(t,e,n){"use strict";var r=n(7);e.a={name:"CdrCard",mixins:[r.a],computed:{baseClass:function(){return"cdr-card"}}}},function(t,e){t.exports={"cdr-card":"cdr-card_0.2.2"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4);function s(t){t.component("cdr-card",r.a)}"undefined"!=typeof window&&window.Vue&&window.Vue.use(s),e.default=s},function(t,e,n){"use strict";var r=n(5),s=n(0),o=n(9),i=n(10);var u=Object(i.a)(s.a,r.a,r.b,!1,function(t){this.$style=o.default.locals||o.default},null,null);e.a=u.exports},function(t,e,n){"use strict";var r=n(6);n.d(e,"a",function(){return r.a}),n.d(e,"b",function(){return r.b})},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return s});var r=function(){var t=this.$createElement;return(this._self._c||t)("article",{class:this.modifierClass},[this._t("default")],2)},s=[]},function(t,e,n){"use strict";var r=n(8);e.a={mixins:[r.a],props:{modifier:String},computed:{modifierClass:function(){return this.buildClass("modifier")}}}},function(t,e,n){"use strict";e.a={methods:{buildClass:function(t){var e=this,n="cdr";this.baseClass&&(n=this.baseClass);var r=n,s=this[t]?this[t].split(" "):[],o=[];return this.$style?(o.push(this.moduleClass(r)),o=o.concat(s.map(function(t){return e.modifyClassName(r,t)}))):(o.push(""+r),o=o.concat(s.map(function(t){return e.modifyClassName(r,t)}))),o.join(" ")},moduleClass:function(t){return this.$style[""+t]},modifyClassName:function(t,e){return this.$style?this.moduleClass(t+"--"+e):t+"--"+e}}}},function(t,e,n){"use strict";var r=n(2),s=n.n(r);e.default=s.a},function(t,e,n){"use strict";e.a=function(t,e,n,r,s,o,i,u){var a,c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0);r&&(c.functional=!0);o&&(c._scopeId="data-v-"+o);i?(a=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),s&&s.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(i)},c._ssrRegister=a):s&&(a=u?function(){s.call(this,this.$root.$options.shadowRoot)}:s);if(a)if(c.functional){c._injectStyles=a;var f=c.render;c.render=function(t,e){return a.call(e),f(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,a):[a]}return{exports:t,options:c}}}])}); | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
else if(typeof define === 'function' && define.amd) | ||
define("CdrCard", [], factory); | ||
else if(typeof exports === 'object') | ||
exports["CdrCard"] = factory(); | ||
else | ||
root["CdrCard"] = factory(); | ||
})(this, function() { | ||
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; | ||
/******/ | ||
/******/ // define getter function for harmony exports | ||
/******/ __webpack_require__.d = function(exports, name, getter) { | ||
/******/ if(!__webpack_require__.o(exports, name)) { | ||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter }); | ||
/******/ } | ||
/******/ }; | ||
/******/ | ||
/******/ // define __esModule on exports | ||
/******/ __webpack_require__.r = function(exports) { | ||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { | ||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
/******/ } | ||
/******/ Object.defineProperty(exports, '__esModule', { value: true }); | ||
/******/ }; | ||
/******/ | ||
/******/ // create a fake namespace object | ||
/******/ // mode & 1: value is a module id, require it | ||
/******/ // mode & 2: merge all properties of value into the ns | ||
/******/ // mode & 4: return value when already ns object | ||
/******/ // mode & 8|1: behave like require | ||
/******/ __webpack_require__.t = function(value, mode) { | ||
/******/ if(mode & 1) value = __webpack_require__(value); | ||
/******/ if(mode & 8) return value; | ||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value; | ||
/******/ var ns = Object.create(null); | ||
/******/ __webpack_require__.r(ns); | ||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value }); | ||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key)); | ||
/******/ return ns; | ||
/******/ }; | ||
/******/ | ||
/******/ // 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 = 2); | ||
/******/ }) | ||
/************************************************************************/ | ||
/******/ ([ | ||
/* 0 */ | ||
/***/ (function(module, exports, __webpack_require__) { | ||
// extracted by mini-css-extract-plugin | ||
module.exports = {"cdr-card":"cdr-card_0.2.3"}; | ||
/***/ }), | ||
/* 1 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_0_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_3_oneOf_0_2_node_modules_vue_loader_lib_index_js_vue_loader_options_CdrCard_vue_vue_type_style_index_0_module_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0); | ||
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_0_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_3_oneOf_0_2_node_modules_vue_loader_lib_index_js_vue_loader_options_CdrCard_vue_vue_type_style_index_0_module_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_0_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_3_oneOf_0_2_node_modules_vue_loader_lib_index_js_vue_loader_options_CdrCard_vue_vue_type_style_index_0_module_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); | ||
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_3_oneOf_0_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_3_oneOf_0_2_node_modules_vue_loader_lib_index_js_vue_loader_options_CdrCard_vue_vue_type_style_index_0_module_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); | ||
/***/ }), | ||
/* 2 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
__webpack_require__.r(__webpack_exports__); | ||
// CONCATENATED MODULE: /Users/dtrimil/Code/rei-cedar/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/dtrimil/Code/rei-cedar/node_modules/vue-loader/lib??vue-loader-options!./CdrCard.vue?vue&type=template&id=7e37408f& | ||
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('article',{class:_vm.modifierClass},[_vm._t("default")],2)} | ||
var staticRenderFns = [] | ||
// CONCATENATED MODULE: ./CdrCard.vue?vue&type=template&id=7e37408f& | ||
// CONCATENATED MODULE: /Users/dtrimil/Code/rei-cedar/src/mixins/buildClass.js | ||
/** | ||
* @mixin | ||
*/ | ||
/* harmony default export */ var buildClass = ({ | ||
methods: { | ||
/** | ||
* | ||
* @param {String} prop -- the prop to build classes from | ||
*/ | ||
buildClass(prop) { | ||
let checkBase = 'cdr'; | ||
if (this.baseClass) { | ||
checkBase = this.baseClass; | ||
} | ||
const base = checkBase; | ||
const propArgsArr = this[prop] ? this[prop].split(' ') : []; | ||
let final = []; | ||
if (!this.$style) { | ||
final.push(`${base}`); | ||
final = final.concat(propArgsArr.map(mod => this.modifyClassName(base, mod))); | ||
} else { | ||
final.push(this.moduleClass(base)); | ||
final = final.concat(propArgsArr.map(mod => this.modifyClassName(base, mod))); | ||
} | ||
return final.join(' '); | ||
}, | ||
/** | ||
* Returns a css module class | ||
*/ | ||
moduleClass(className) { | ||
return this.$style[`${className}`]; | ||
}, | ||
/** | ||
* Returns a modified base class | ||
*/ | ||
modifyClassName(base, modifier) { | ||
return this.$style ? this.moduleClass(`${base}--${modifier}`) : `${base}--${modifier}`; | ||
} | ||
} | ||
}); | ||
// CONCATENATED MODULE: /Users/dtrimil/Code/rei-cedar/src/mixins/modifier.js | ||
/** | ||
* @mixin | ||
*/ | ||
/* harmony default export */ var modifier = ({ | ||
mixins: [buildClass], | ||
props: { | ||
/** | ||
* Space separated list of modifiers. See above for possible values | ||
*/ | ||
modifier: String | ||
}, | ||
computed: { | ||
modifierClass() { | ||
return this.buildClass('modifier'); | ||
} | ||
} | ||
}); | ||
// CONCATENATED MODULE: /Users/dtrimil/Code/rei-cedar/node_modules/babel-loader/lib!/Users/dtrimil/Code/rei-cedar/node_modules/vue-loader/lib??vue-loader-options!./CdrCard.vue?vue&type=script&lang=js& | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
// | ||
/** | ||
* Cedar 2 component for a card container | ||
* The basic card is intended as a container for grouping like content. | ||
* @version 0.2.2 | ||
* @author [REI Software Engineering](https://rei.github.io/rei-cedar/) | ||
*/ | ||
/* harmony default export */ var lib_vue_loader_options_CdrCardvue_type_script_lang_js_ = ({ | ||
name: 'CdrCard', | ||
mixins: [modifier], | ||
computed: { | ||
baseClass() { | ||
return 'cdr-card'; | ||
} | ||
} | ||
}); | ||
// CONCATENATED MODULE: ./CdrCard.vue?vue&type=script&lang=js& | ||
/* harmony default export */ var CdrCardvue_type_script_lang_js_ = (lib_vue_loader_options_CdrCardvue_type_script_lang_js_); | ||
// EXTERNAL MODULE: ./CdrCard.vue?vue&type=style&index=0&module=true&lang=css& | ||
var CdrCardvue_type_style_index_0_module_true_lang_css_ = __webpack_require__(1); | ||
// CONCATENATED MODULE: /Users/dtrimil/Code/rei-cedar/node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules). | ||
// This module is a runtime utility for cleaner component module output and will | ||
// be included in the final webpack user bundle. | ||
function normalizeComponent ( | ||
scriptExports, | ||
render, | ||
staticRenderFns, | ||
functionalTemplate, | ||
injectStyles, | ||
scopeId, | ||
moduleIdentifier, /* server only */ | ||
shadowMode /* vue-cli only */ | ||
) { | ||
// Vue.extend constructor export interop | ||
var options = typeof scriptExports === 'function' | ||
? scriptExports.options | ||
: scriptExports | ||
// render functions | ||
if (render) { | ||
options.render = render | ||
options.staticRenderFns = staticRenderFns | ||
options._compiled = true | ||
} | ||
// functional template | ||
if (functionalTemplate) { | ||
options.functional = true | ||
} | ||
// scopedId | ||
if (scopeId) { | ||
options._scopeId = 'data-v-' + scopeId | ||
} | ||
var hook | ||
if (moduleIdentifier) { // server build | ||
hook = function (context) { | ||
// 2.3 injection | ||
context = | ||
context || // cached call | ||
(this.$vnode && this.$vnode.ssrContext) || // stateful | ||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional | ||
// 2.2 with runInNewContext: true | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { | ||
context = __VUE_SSR_CONTEXT__ | ||
} | ||
// inject component styles | ||
if (injectStyles) { | ||
injectStyles.call(this, context) | ||
} | ||
// register component module identifier for async chunk inferrence | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier) | ||
} | ||
} | ||
// used by ssr in case component is cached and beforeCreate | ||
// never gets called | ||
options._ssrRegister = hook | ||
} else if (injectStyles) { | ||
hook = shadowMode | ||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) } | ||
: injectStyles | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
// for template-only hot-reload because in that case the render fn doesn't | ||
// go through the normalizer | ||
options._injectStyles = hook | ||
// register for functioal component in vue file | ||
var originalRender = options.render | ||
options.render = function renderWithStyleInjection (h, context) { | ||
hook.call(context) | ||
return originalRender(h, context) | ||
} | ||
} else { | ||
// inject component registration as beforeCreate hook | ||
var existing = options.beforeCreate | ||
options.beforeCreate = existing | ||
? [].concat(existing, hook) | ||
: [hook] | ||
} | ||
} | ||
return { | ||
exports: scriptExports, | ||
options: options | ||
} | ||
} | ||
// CONCATENATED MODULE: ./CdrCard.vue | ||
function injectStyles (context) { | ||
this["$style"] = (CdrCardvue_type_style_index_0_module_true_lang_css_["default"].locals || CdrCardvue_type_style_index_0_module_true_lang_css_["default"]) | ||
} | ||
/* normalize component */ | ||
var component = normalizeComponent( | ||
CdrCardvue_type_script_lang_js_, | ||
render, | ||
staticRenderFns, | ||
false, | ||
injectStyles, | ||
null, | ||
null | ||
) | ||
/* harmony default export */ var CdrCard = (component.exports); | ||
// CONCATENATED MODULE: ./build/plugin.js | ||
function install(Vue) { | ||
Vue.component('cdr-card', CdrCard); | ||
} | ||
if (typeof window !== 'undefined' && window.Vue) { | ||
window.Vue.use(install); | ||
} | ||
/* harmony default export */ var build_plugin = __webpack_exports__["default"] = (install); | ||
/***/ }) | ||
/******/ ]); | ||
}); | ||
//# sourceMappingURL=plugin.js.map |
{ | ||
"name": "@rei/cdr-card", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"author": "REI Software Engineering", | ||
@@ -31,3 +31,3 @@ "description": "REI Cedar Style Framework - Vue Component for Card", | ||
"@rei/cdr-assets": "^0.3.0", | ||
"vue": "^2.5.13" | ||
"vue": "^2.6.7" | ||
}, | ||
@@ -34,0 +34,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
59573
8
635
2