@justeat/f-card
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -6,2 +6,10 @@ # Changelog | ||
v3.5.0 | ||
------------------------------ | ||
*January 25, 2022* | ||
### Added | ||
- `cardHeadingSize` prop. | ||
v3.4.0 | ||
@@ -8,0 +16,0 @@ ------------------------------ |
@@ -218,3 +218,3 @@ module.exports = | ||
// CONCATENATED MODULE: /Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75c84e62-vue-loader-template"}!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/Card.vue?vue&type=template&id=720a188d& | ||
// CONCATENATED MODULE: /home/circleci/project/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75c84e62-vue-loader-template"}!/home/circleci/project/node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/home/circleci/project/node_modules/cache-loader/dist/cjs.js??ref--0-0!/home/circleci/project/node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/Card.vue?vue&type=template&id=aef44cb0& | ||
var render = function () { | ||
@@ -226,2 +226,3 @@ var _obj, _obj$1, _obj$2; | ||
_vm.$style['c-card-heading'], | ||
_vm.cardHeadingSize, | ||
( _obj$2 = {}, _obj$2[_vm.$style[("c-card-heading--" + _vm.cardHeadingPosition + "Aligned")]] = _vm.cardHeadingPosition !== 'left', _obj$2 ) | ||
@@ -232,5 +233,5 @@ ],attrs:{"data-test-id":"card-heading"}},[_vm._v(" "+_vm._s(_vm.cardHeading)+" ")]):_vm._e(),_vm._t("default")],2),(_vm.hasFullWidthFooter)?_c('div',{attrs:{"data-test-id":"card-footer"}},[_vm._t("cardFooter")],2):_vm._e()])} | ||
// CONCATENATED MODULE: ./src/components/Card.vue?vue&type=template&id=720a188d& | ||
// CONCATENATED MODULE: ./src/components/Card.vue?vue&type=template&id=aef44cb0& | ||
// CONCATENATED MODULE: /Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/cache-loader/dist/cjs.js??ref--12-0!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/thread-loader/dist/cjs.js!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/Card.vue?vue&type=script&lang=js& | ||
// CONCATENATED MODULE: /home/circleci/project/node_modules/cache-loader/dist/cjs.js??ref--12-0!/home/circleci/project/node_modules/thread-loader/dist/cjs.js!/home/circleci/project/node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!/home/circleci/project/node_modules/cache-loader/dist/cjs.js??ref--0-0!/home/circleci/project/node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/Card.vue?vue&type=script&lang=js& | ||
// | ||
@@ -272,2 +273,3 @@ // | ||
// | ||
// | ||
/* harmony default export */ var Cardvue_type_script_lang_js_ = ({ | ||
@@ -295,2 +297,9 @@ name: 'CardComponent', | ||
}, | ||
cardHeadingSize: { | ||
type: String, | ||
default: '', | ||
validator: function validator(value) { | ||
return ['', 'alpha', 'beta', 'gamma', 'delta', 'epsilon', 'zeta'].indexOf(value) !== -1; | ||
} | ||
}, | ||
hasOutline: { | ||
@@ -342,3 +351,3 @@ type: Boolean, | ||
// CONCATENATED MODULE: /Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
// CONCATENATED MODULE: /home/circleci/project/node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
@@ -535,3 +544,3 @@ | ||
// CONCATENATED MODULE: /Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js | ||
// CONCATENATED MODULE: /home/circleci/project/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js | ||
// This file is imported into lib/wc client bundles. | ||
@@ -563,3 +572,3 @@ | ||
// CONCATENATED MODULE: /Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js | ||
// CONCATENATED MODULE: /home/circleci/project/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js | ||
@@ -566,0 +575,0 @@ |
@@ -227,3 +227,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
// CONCATENATED MODULE: /Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75c84e62-vue-loader-template"}!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/Card.vue?vue&type=template&id=720a188d& | ||
// CONCATENATED MODULE: /home/circleci/project/node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"75c84e62-vue-loader-template"}!/home/circleci/project/node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!/home/circleci/project/node_modules/cache-loader/dist/cjs.js??ref--0-0!/home/circleci/project/node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/Card.vue?vue&type=template&id=aef44cb0& | ||
var render = function () { | ||
@@ -235,2 +235,3 @@ var _obj, _obj$1, _obj$2; | ||
_vm.$style['c-card-heading'], | ||
_vm.cardHeadingSize, | ||
( _obj$2 = {}, _obj$2[_vm.$style[("c-card-heading--" + _vm.cardHeadingPosition + "Aligned")]] = _vm.cardHeadingPosition !== 'left', _obj$2 ) | ||
@@ -241,5 +242,5 @@ ],attrs:{"data-test-id":"card-heading"}},[_vm._v(" "+_vm._s(_vm.cardHeading)+" ")]):_vm._e(),_vm._t("default")],2),(_vm.hasFullWidthFooter)?_c('div',{attrs:{"data-test-id":"card-footer"}},[_vm._t("cardFooter")],2):_vm._e()])} | ||
// CONCATENATED MODULE: ./src/components/Card.vue?vue&type=template&id=720a188d& | ||
// CONCATENATED MODULE: ./src/components/Card.vue?vue&type=template&id=aef44cb0& | ||
// CONCATENATED MODULE: /Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/cache-loader/dist/cjs.js??ref--12-0!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/thread-loader/dist/cjs.js!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/cache-loader/dist/cjs.js??ref--0-0!/Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/Card.vue?vue&type=script&lang=js& | ||
// CONCATENATED MODULE: /home/circleci/project/node_modules/cache-loader/dist/cjs.js??ref--12-0!/home/circleci/project/node_modules/thread-loader/dist/cjs.js!/home/circleci/project/node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib!/home/circleci/project/node_modules/cache-loader/dist/cjs.js??ref--0-0!/home/circleci/project/node_modules/@vue/cli-service/node_modules/vue-loader/lib??vue-loader-options!./src/components/Card.vue?vue&type=script&lang=js& | ||
// | ||
@@ -281,2 +282,3 @@ // | ||
// | ||
// | ||
/* harmony default export */ var Cardvue_type_script_lang_js_ = ({ | ||
@@ -304,2 +306,9 @@ name: 'CardComponent', | ||
}, | ||
cardHeadingSize: { | ||
type: String, | ||
default: '', | ||
validator: function validator(value) { | ||
return ['', 'alpha', 'beta', 'gamma', 'delta', 'epsilon', 'zeta'].indexOf(value) !== -1; | ||
} | ||
}, | ||
hasOutline: { | ||
@@ -351,3 +360,3 @@ type: Boolean, | ||
// CONCATENATED MODULE: /Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
// CONCATENATED MODULE: /home/circleci/project/node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js | ||
/* globals __VUE_SSR_CONTEXT__ */ | ||
@@ -544,3 +553,3 @@ | ||
// CONCATENATED MODULE: /Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js | ||
// CONCATENATED MODULE: /home/circleci/project/node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js | ||
// This file is imported into lib/wc client bundles. | ||
@@ -572,3 +581,3 @@ | ||
// CONCATENATED MODULE: /Users/kevin.rodrigues/Documents/projects/fozzie-components/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js | ||
// CONCATENATED MODULE: /home/circleci/project/node_modules/@vue/cli-service/lib/commands/build/entry-lib.js | ||
@@ -575,0 +584,0 @@ |
@@ -1,2 +0,2 @@ | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["f-card"]=t():e["f-card"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fa16")}({"05e9":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},"7e10":function(e,t,n){var r,a,i;(function(n,c){a=[],r=c,i="function"===typeof r?r.apply(t,a):r,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,a,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,o=i.exec(p.stack)||c.exec(p.stack),d=o&&o[1]||!1,u=o&&o[2]||!1,s=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");d===s&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),a=n.replace(r,"$1").trim());for(var f=0;f<l.length;f++){if("interactive"===l[f].readyState)return l[f];if(l[f].src===d)return l[f];if(d===s&&l[f].innerHTML&&l[f].innerHTML.trim()===a)return l[f]}return null}}return e}))},"81ba":function(e,t,n){"use strict";var r=n("f1b8"),a=n.n(r);n.d(t,"default",(function(){return a.a}))},ae8d:function(e,t,n){"use strict";var r=function(){var e,t,n,r=this,a=r.$createElement,i=r._self._c||a;return i("div",{class:[r.$style["c-card"],(e={},e[r.$style["c-card--outline"]]=r.hasOutline,e[r.$style["c-card--pageContentWrapper"]]=r.isPageContentWrapper,e[r.$style["c-card--size"+r.capitaliseCardSizeProp]]=""!==r.cardSizeCustom,e)],attrs:{"data-test-id":"card-component"}},[i("div",{class:[[r.$style["c-card-innerSpacing"]],(t={},t[r.$style["c-card-innerSpacing--large"]]=r.hasInnerSpacingLarge,t)],attrs:{"data-test-id":"card-inner"}},[r.cardHeading?i(r.cardHeadingTag,{tag:"component",class:[r.$style["c-card-heading"],(n={},n[r.$style["c-card-heading--"+r.cardHeadingPosition+"Aligned"]]="left"!==r.cardHeadingPosition,n)],attrs:{"data-test-id":"card-heading"}},[r._v(" "+r._s(r.cardHeading)+" ")]):r._e(),r._t("default")],2),r.hasFullWidthFooter?i("div",{attrs:{"data-test-id":"card-footer"}},[r._t("cardFooter")],2):r._e()])},a=[],i={name:"CardComponent",components:{},props:{cardHeading:{type:String,default:""},cardHeadingPosition:{type:String,default:"left",validator:function(e){return-1!==["left","right","center"].indexOf(e)}},cardHeadingTag:{type:String,default:"h1",validator:function(e){return-1!==["h1","h2","h3","h4","h5","h6"].indexOf(e)}},hasOutline:{type:Boolean,default:!1},isPageContentWrapper:{type:Boolean,default:!1},hasFullWidthFooter:{type:Boolean,default:!1},hasInnerSpacingLarge:{type:Boolean,default:!1},cardSizeCustom:{type:String,default:"",validator:function(e){return-1!==["","medium","large"].indexOf(e)}}},computed:{capitaliseCardSizeProp:function(){var e=this.cardSizeCustom;return!!e&&e.replace(/^./,e[0].toUpperCase())}}},c=i,o=n("81ba");function d(e,t,n,r,a,i,c,o){var d,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),c?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},u._ssrRegister=d):a&&(d=o?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),d)if(u.functional){u._injectStyles=d;var s=u.render;u.render=function(e,t){return d.call(t),s(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,d):[d]}return{exports:e,options:u}}function u(e){this["$style"]=o["default"].locals||o["default"]}var s=d(c,r,a,!1,u,null,null);t["a"]=s.exports},b635:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return a}));var r=n("ae8d");function a(e){a.installed||(a.installed=!0,e.component("Card",r["a"]))}var i={install:a},c=null;"undefined"!==typeof window?c=window.Vue:"undefined"!==typeof e&&(c=e.Vue),c&&c.use(i),t["a"]=r["a"]}).call(this,n("05e9"))},f1b8:function(e,t,n){e.exports={"c-screen-sizer":"Card_c-screen-sizer_3bNyO","c-card":"Card_c-card_1r3Yg","c-card-innerSpacing":"Card_c-card-innerSpacing_66keJ","c-card-innerSpacing--large":"Card_c-card-innerSpacing--large_IbX5s","c-card--outline":"Card_c-card--outline_kF_4e","c-card--pageContentWrapper":"Card_c-card--pageContentWrapper_1wC0Y","c-card-heading":"Card_c-card-heading_2lAM_","c-card-heading--centerAligned":"Card_c-card-heading--centerAligned_3Y47j","c-card-heading--rightAligned":"Card_c-card-heading--rightAligned_2VtFz","c-card--sizeLarge":"Card_c-card--sizeLarge_29EqX","c-card--sizeMedium":"Card_c-card--sizeMedium_1f-zT",skeletonGradient:"Card_skeletonGradient_3FEZ2"}},fa16:function(e,t,n){"use strict";if(n.r(t),n.d(t,"install",(function(){return c["b"]})),"undefined"!==typeof window){var r=window.document.currentScript,a=n("7e10");r=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var c=n("b635");t["default"]=c["a"]}})})); | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["f-card"]=t():e["f-card"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fa16")}({"05e9":function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},"7e10":function(e,t,n){var r,a,i;(function(n,c){a=[],r=c,i="function"===typeof r?r.apply(t,a):r,void 0===i||(e.exports=i)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(p){var n,r,a,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,c=/@([^@]*):(\d+):(\d+)\s*$/gi,o=i.exec(p.stack)||c.exec(p.stack),d=o&&o[1]||!1,u=o&&o[2]||!1,s=document.location.href.replace(document.location.hash,""),l=document.getElementsByTagName("script");d===s&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),a=n.replace(r,"$1").trim());for(var f=0;f<l.length;f++){if("interactive"===l[f].readyState)return l[f];if(l[f].src===d)return l[f];if(d===s&&l[f].innerHTML&&l[f].innerHTML.trim()===a)return l[f]}return null}}return e}))},"81ba":function(e,t,n){"use strict";var r=n("f1b8"),a=n.n(r);n.d(t,"default",(function(){return a.a}))},ae8d:function(e,t,n){"use strict";var r=function(){var e,t,n,r=this,a=r.$createElement,i=r._self._c||a;return i("div",{class:[r.$style["c-card"],(e={},e[r.$style["c-card--outline"]]=r.hasOutline,e[r.$style["c-card--pageContentWrapper"]]=r.isPageContentWrapper,e[r.$style["c-card--size"+r.capitaliseCardSizeProp]]=""!==r.cardSizeCustom,e)],attrs:{"data-test-id":"card-component"}},[i("div",{class:[[r.$style["c-card-innerSpacing"]],(t={},t[r.$style["c-card-innerSpacing--large"]]=r.hasInnerSpacingLarge,t)],attrs:{"data-test-id":"card-inner"}},[r.cardHeading?i(r.cardHeadingTag,{tag:"component",class:[r.$style["c-card-heading"],r.cardHeadingSize,(n={},n[r.$style["c-card-heading--"+r.cardHeadingPosition+"Aligned"]]="left"!==r.cardHeadingPosition,n)],attrs:{"data-test-id":"card-heading"}},[r._v(" "+r._s(r.cardHeading)+" ")]):r._e(),r._t("default")],2),r.hasFullWidthFooter?i("div",{attrs:{"data-test-id":"card-footer"}},[r._t("cardFooter")],2):r._e()])},a=[],i={name:"CardComponent",components:{},props:{cardHeading:{type:String,default:""},cardHeadingPosition:{type:String,default:"left",validator:function(e){return-1!==["left","right","center"].indexOf(e)}},cardHeadingTag:{type:String,default:"h1",validator:function(e){return-1!==["h1","h2","h3","h4","h5","h6"].indexOf(e)}},cardHeadingSize:{type:String,default:"",validator:function(e){return-1!==["","alpha","beta","gamma","delta","epsilon","zeta"].indexOf(e)}},hasOutline:{type:Boolean,default:!1},isPageContentWrapper:{type:Boolean,default:!1},hasFullWidthFooter:{type:Boolean,default:!1},hasInnerSpacingLarge:{type:Boolean,default:!1},cardSizeCustom:{type:String,default:"",validator:function(e){return-1!==["","medium","large"].indexOf(e)}}},computed:{capitaliseCardSizeProp:function(){var e=this.cardSizeCustom;return!!e&&e.replace(/^./,e[0].toUpperCase())}}},c=i,o=n("81ba");function d(e,t,n,r,a,i,c,o){var d,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),c?(d=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(c)},u._ssrRegister=d):a&&(d=o?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),d)if(u.functional){u._injectStyles=d;var s=u.render;u.render=function(e,t){return d.call(t),s(e,t)}}else{var l=u.beforeCreate;u.beforeCreate=l?[].concat(l,d):[d]}return{exports:e,options:u}}function u(e){this["$style"]=o["default"].locals||o["default"]}var s=d(c,r,a,!1,u,null,null);t["a"]=s.exports},b635:function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return a}));var r=n("ae8d");function a(e){a.installed||(a.installed=!0,e.component("Card",r["a"]))}var i={install:a},c=null;"undefined"!==typeof window?c=window.Vue:"undefined"!==typeof e&&(c=e.Vue),c&&c.use(i),t["a"]=r["a"]}).call(this,n("05e9"))},f1b8:function(e,t,n){e.exports={"c-screen-sizer":"Card_c-screen-sizer_3bNyO","c-card":"Card_c-card_1r3Yg","c-card-innerSpacing":"Card_c-card-innerSpacing_66keJ","c-card-innerSpacing--large":"Card_c-card-innerSpacing--large_IbX5s","c-card--outline":"Card_c-card--outline_kF_4e","c-card--pageContentWrapper":"Card_c-card--pageContentWrapper_1wC0Y","c-card-heading":"Card_c-card-heading_2lAM_","c-card-heading--centerAligned":"Card_c-card-heading--centerAligned_3Y47j","c-card-heading--rightAligned":"Card_c-card-heading--rightAligned_2VtFz","c-card--sizeLarge":"Card_c-card--sizeLarge_29EqX","c-card--sizeMedium":"Card_c-card--sizeMedium_1f-zT",skeletonGradient:"Card_skeletonGradient_3FEZ2"}},fa16:function(e,t,n){"use strict";if(n.r(t),n.d(t,"install",(function(){return c["b"]})),"undefined"!==typeof window){var r=window.document.currentScript,a=n("7e10");r=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(n.p=i[1])}var c=n("b635");t["default"]=c["a"]}})})); | ||
//# sourceMappingURL=f-card.umd.min.js.map |
{ | ||
"name": "@justeat/f-card", | ||
"description": "Fozzie Card Component – Used for providing wrapper card styling to an element (or group of elements)", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"main": "dist/f-card.umd.min.js", | ||
@@ -10,2 +10,5 @@ "maxBundleSize": "5kB", | ||
], | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"homepage": "https://github.com/justeat/fozzie-components/tree/master/packages/components/atoms/f-card", | ||
@@ -37,3 +40,6 @@ "contributors": [ | ||
"test-a11y:chrome": "cross-env-shell TEST_TYPE=a11y wdio ../../../../wdio-chrome.conf.js", | ||
"test-component:chrome": "cross-env-shell TEST_TYPE=component wdio ../../../../wdio-chrome.conf.js" | ||
"test-component:chrome": "cross-env-shell TEST_TYPE=component wdio ../../../../wdio-chrome.conf.js", | ||
"ci:test:atoms": "yarn test", | ||
"ci:test-component:chrome:atoms": "yarn test-component:chrome", | ||
"ci:test-a11y:chrome:atoms": "yarn test-a11y:chrome" | ||
}, | ||
@@ -50,2 +56,3 @@ "browserslist": [ | ||
"devDependencies": { | ||
"@justeat/f-wdio-utils": "0.5.0", | ||
"@samhammer/vue-cli-plugin-stylelint": "2.0.1", | ||
@@ -56,5 +63,5 @@ "@vue/cli-plugin-babel": "4.4.6", | ||
"@vue/test-utils": "1.0.3", | ||
"@justeat/f-wdio-utils": "0.4.0", | ||
"node-sass-magic-importer": "5.3.2" | ||
} | ||
}, | ||
"gitHead": "be153a228a5d68feb9afc488fd4192f8e3c519d0" | ||
} |
@@ -72,2 +72,3 @@ <div align="center"> | ||
| `cardHeadingTag` | `String` | No | `'h1'` | Sets the tag for the card component's heading.<br><br>Allowed values are `h1`, `h2`, `h3`, `h4`, `h5` and `h6` | | ||
| `cardHeadingSize` | `String` | No | `''` | Overrides the default heading size for the card component's heading.<br><br>Allowed values are `''`, `alpha`, `beta`, `gamma`, `delta`, `epsilon` and `zeta` | | ||
| `hasOutline` | `Boolean` | No | `false` | When set to `true`, an outline is applied to the card component. | | ||
@@ -74,0 +75,0 @@ | `isPageContentWrapper` | `Boolean` | No | `false` | When set to `true`, applies styles to make the card act like a page content wrapper.<br><br>The card will be full width on narrow devices, and then a fixed width above a certain breakpoint width (about 480px), when the card will be centred on the page. | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
147434
1036
116
1