@visitscotland/component-library 5.7.0 → 5.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1546,10 +1546,10 @@
1546
1546
  "scripts/fd3f812603b78fe9978b.js",
1547
1547
  "scripts/91ec808848d9ef8fde7a.js",
1548
1548
  "scripts/d2e46d1692567d97f210.js",
1549
- "scripts/95fd616091485e77a9e2.js"
1549
+ "scripts/0087a44808b195bb79fb.js"
1550
1550
  ],
1551
1551
  "styles": [
1552
- "styles/95fd616091485e77a9e2.css"
1552
+ "styles/0087a44808b195bb79fb.css"
1553
1553
  ]
1554
1554
  },
1555
1555
  "VsCarousel": {
@@ -0,0 +1 @@
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VsCard=e():t.VsCard=e()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[4420],{568:function(t,e,s){"use strict";s.d(e,{X:function(){return r.X}});var r=s(25384)},14232:function(t,e,s){"use strict";s.r(e);var r=s(568),n=s(39664);s(90650);const o=(0,s(66262).A)(n.A,[["render",r.X]]);e.default=o},25384:function(t,e,s){"use strict";s.d(e,{X:function(){return i}});var r=s(20641),n=s(90033),o={key:0,class:"vs-card__header"},a={class:"vs-card__body"},c={key:1,class:"vs-card__footer"},l={key:2,class:"vs-card__image"};function i(t,e,s,i,d,u){return(0,r.uX)(),(0,r.CE)("div",{class:(0,n.normalizeClass)(["vs-card",u.cardClasses]),"data-test":"vs-card",style:(0,n.normalizeStyle)(u.cardStyles)},[t.$slots["vs-card-header"]&&t.$slots["vs-card-header"]()?((0,r.uX)(),(0,r.CE)("div",o,[(0,r.RG)(t.$slots,"vs-card-header")])):(0,r.Q3)("",!0),(0,r.Lk)("div",a,[(0,r.RG)(t.$slots,"vs-card-body")]),t.$slots["vs-card-footer"]&&t.$slots["vs-card-footer"]()?((0,r.uX)(),(0,r.CE)("div",c,[(0,r.RG)(t.$slots,"vs-card-footer")])):(0,r.Q3)("",!0),"overlay"===s.cardStyle&&t.$slots["vs-card-image"]&&t.$slots["vs-card-image"]()?((0,r.uX)(),(0,r.CE)("div",l,[(0,r.RG)(t.$slots,"vs-card-image")])):(0,r.Q3)("",!0)],6)}},26126:function(t,e,s){"use strict";var r=s(85072),n=s.n(r),o=s(97825),a=s.n(o),c=s(77659),l=s.n(c),i=s(55056),d=s.n(i),u=s(10540),f=s.n(u),v=s(41113),y=s.n(v),p=s(68380),h=s.n(p),m={};m.styleTagTransform=y(),m.setAttributes=d(),m.insert=l().bind(null,"head"),m.domAPI=a(),m.insertStyleElement=f(),n()(h(),m),h()&&h().locals&&h().locals},32796:function(t,e,s){"use strict";var r=s(34982);e.A={name:"VsCard",status:"prototype",release:"0.1.0",props:{cardStyle:{type:String,default:null,validator:function(t){return t.match(/(elevated|outlined|overlay)/)}},fillColor:{type:String,default:"vs-color-interaction-cta-subtle"},accentBar:{type:Boolean,default:!1},horizontal:{type:Boolean,default:!1}},data:function(){return{tokens:r}},computed:{cardClasses:function(){return[{"vs-card--horizontal":this.horizontal,"vs-card--accent-bar":this.accentBar},this.cardStyle?"vs-card--".concat(this.cardStyle):null]},cardStyles:function(){return this.fillColor?{"background-color":this.tokens[this.fillColor]||this.fillColor}:null}}}},39664:function(t,e,s){"use strict";s.d(e,{A:function(){return r.A}});var r=s(32796)},68380:function(){},90650:function(t,e,s){"use strict";s(26126)}},function(t){return t.O(0,[641,6262,7510,4982],(function(){return t(t.s=14232)})),t.O()}])}));