@world-vision-canada/wvc-design-system
Version:
WVC Vue Design system is a fork of Vue Design System, an open-source tool for building Design Systems with Vue.js
2 lines • 8.15 kB
JavaScript
(("undefined"!==typeof self?self:this)["webpackJsonpwvc"]=("undefined"!==typeof self?self:this)["webpackJsonpwvc"]||[]).push([[19],{2350:function(e,t){function a(e,t){var a=e[1]||"",n=e[3];if(!n)return a;if(t&&"function"===typeof btoa){var r=i(n),o=n.sources.map((function(e){return"/*# sourceURL="+n.sourceRoot+e+" */"}));return[a].concat(o).concat([r]).join("\n")}return[a].join("\n")}function i(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,"+t;return"/*# "+a+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=a(t,e);return t[2]?"@media "+t[2]+"{"+i+"}":i})).join("")},t.i=function(e,a){"string"===typeof e&&(e=[[null,e,""]]);for(var i={},n=0;n<this.length;n++){var r=this[n][0];"number"===typeof r&&(i[r]=!0)}for(n=0;n<e.length;n++){var o=e[n];"number"===typeof o[0]&&i[o[0]]||(a&&!o[2]?o[2]=a:a&&(o[2]="("+o[2]+") and ("+a+")"),t.push(o))}},t}},2877:function(e,t,a){"use strict";function i(e,t,a,i,n,r,o,d){var c,s="function"===typeof e?e.options:e;if(t&&(s.render=t,s.staticRenderFns=a,s._compiled=!0),i&&(s.functional=!0),r&&(s._scopeId="data-v-"+r),o?(c=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__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},s._ssrRegister=c):n&&(c=d?function(){n.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:n),c)if(s.functional){s._injectStyles=c;var l=s.render;s.render=function(e,t){return c.call(t),l(e,t)}}else{var f=s.beforeCreate;s.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:s}}a.d(t,"a",(function(){return i}))},"35d6":function(e,t,a){"use strict";function i(e,t){for(var a=[],i={},n=0;n<t.length;n++){var r=t[n],o=r[0],d=r[1],c=r[2],s=r[3],l={id:e+":"+n,css:d,media:c,sourceMap:s};i[o]?i[o].parts.push(l):a.push(i[o]={id:o,parts:[l]})}return a}function n(e,t,a){var n=i(e,t);r(n,a)}function r(e,t){for(var a=t._injectedStyles||(t._injectedStyles={}),i=0;i<e.length;i++){var n=e[i],r=a[n.id];if(!r){for(var o=0;o<n.parts.length;o++)d(n.parts[o],t);a[n.id]=!0}}}function o(e){var t=document.createElement("style");return t.type="text/css",e.appendChild(t),t}function d(e,t){var a=o(t),i=e.css,n=e.media,r=e.sourceMap;if(n&&a.setAttribute("media",n),r&&(i+="\n/*# sourceURL="+r.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),a.styleSheet)a.styleSheet.cssText=i;else{while(a.firstChild)a.removeChild(a.firstChild);a.appendChild(document.createTextNode(i))}}a.r(t),a.d(t,"default",(function(){return n}))},"640a":function(e,t,a){t=e.exports=a("2350")(!1),t.push([e.i,"@import url(https://fonts.googleapis.com/css2?family=Karla:wght@700&family=Lato:ital,wght@0,400;0,700;1,400&display=swap);",""]),t.push([e.i,'.breadcrumb[data-v-0f7fe9bb]{display:inline-block}.breadcrumb-list[data-v-0f7fe9bb]{list-style-type:none;display:flex;flex-direction:row;overflow-x:auto;white-space:nowrap}.breadcrumb-item[data-v-0f7fe9bb],.breadcrumb-list[data-v-0f7fe9bb]{box-sizing:border-box;padding:0;margin:0}.breadcrumb-item[data-v-0f7fe9bb]{margin-right:10px;display:inline-block;padding-top:2px;padding-bottom:2px;position:relative;font-family:Karla;font-size:16px;font-weight:400;line-height:1.5}.breadcrumb-item.theme-light[data-v-0f7fe9bb]{color:#000}.breadcrumb-item.theme-dark[data-v-0f7fe9bb]{color:#fff}@media (max-width:767px){.breadcrumb-item[data-v-0f7fe9bb]{font-family:Karla;font-size:14px;font-weight:400;line-height:1.5;padding-top:14px;padding-bottom:15px;margin-right:13px}}.breadcrumb-item[data-v-0f7fe9bb]:not(:last-child):after{content:"/";position:relative;right:-4px;font-weight:400}@media (max-width:767px){.breadcrumb-item[data-v-0f7fe9bb]:not(:last-child):after{position:absolute;bottom:14px;right:-4px;width:1px}}.breadcrumb-item[data-v-0f7fe9bb]:first-child{padding-left:4px}.breadcrumb-item .link-text.theme-light[data-v-0f7fe9bb]{color:#0c6699;height:24px;margin:0 0 0 0;text-decoration:underline;font-family:Karla;font-size:16px;font-weight:400;line-height:1.5}@media (max-width:767px){.breadcrumb-item .link-text.theme-light[data-v-0f7fe9bb]{font-family:Karla;font-size:14px;font-weight:400;line-height:1.5;padding-top:11px;padding-bottom:12px;margin-left:5px;margin-right:5px}}.breadcrumb-item .link-text.theme-light[data-v-0f7fe9bb]:visited{box-shadow:none;outline:none;color:#0c6699}.breadcrumb-item .link-text.theme-light[data-v-0f7fe9bb]:focus-visible{box-shadow:0 0 0 4px #337ab7;outline:none;color:#337ab7}.breadcrumb-item .link-text.theme-light.hover[data-v-0f7fe9bb]:not(.disabled),.breadcrumb-item .link-text.theme-light[data-v-0f7fe9bb]:hover:not(.disabled){color:#00acca}.breadcrumb-item .link-text.theme-light.active[data-v-0f7fe9bb],.breadcrumb-item .link-text.theme-light[data-v-0f7fe9bb]:active{transition:none;color:#337ab7;box-shadow:none;outline:none}.breadcrumb-item .link-text.theme-light.disabled[data-v-0f7fe9bb],.breadcrumb-item .link-text.theme-light[data-v-0f7fe9bb]:disabled{color:#000;text-decoration:none}.breadcrumb-item .link-text.theme-dark[data-v-0f7fe9bb]{color:#00acca;height:24px;margin:0 0 0 0;text-decoration:underline;font-family:Karla;font-size:16px;font-weight:400;line-height:1.5}@media (max-width:767px){.breadcrumb-item .link-text.theme-dark[data-v-0f7fe9bb]{font-family:Karla;font-size:14px;font-weight:400;line-height:1.5;padding-top:11px;padding-bottom:12px;margin-left:5px;margin-right:5px}}.breadcrumb-item .link-text.theme-dark[data-v-0f7fe9bb]:visited{box-shadow:none;outline:none;color:#00acca}.breadcrumb-item .link-text.theme-dark[data-v-0f7fe9bb]:focus-visible{box-shadow:0 0 0 4px #00acca;outline:none;color:#00acca}.breadcrumb-item .link-text.theme-dark.hover[data-v-0f7fe9bb]:not(.disabled),.breadcrumb-item .link-text.theme-dark[data-v-0f7fe9bb]:hover:not(.disabled){color:#337ab7}.breadcrumb-item .link-text.theme-dark.active[data-v-0f7fe9bb],.breadcrumb-item .link-text.theme-dark[data-v-0f7fe9bb]:active{transition:none;color:#ededed;box-shadow:none;outline:none}.breadcrumb-item .link-text.theme-dark.disabled[data-v-0f7fe9bb],.breadcrumb-item .link-text.theme-dark[data-v-0f7fe9bb]:disabled{color:#fff;text-decoration:none}',""])},b1f2:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("nav",{staticClass:"breadcrumb",class:[e.themeClass],attrs:{"aria-label":"breadcrumbs"}},[a("ol",{staticClass:"breadcrumb-list"},e._l(e.WvcBreadcrumb,(function(t,i){return a("li",{key:t.id,staticClass:"breadcrumb-item",class:[e.themeClass]},[a("a",{class:["link-text",e.themeClass,e.state,e.classes,{disabled:i===e.WvcBreadcrumb.length-1}],attrs:{href:t.href,"aria-label":""===t.ariaLabel?t.name:t.ariaLabel,role:"link",disabled:i===e.WvcBreadcrumb.length-1,"aria-current":i===e.WvcBreadcrumb.length-1?"page":null}},[e._v(e._s(t.name))])])})),0),a("div",{ref:"garbageBin"},[e._t("default")],2)])},n=[],r={name:"WvcBreadcrumb",props:{dark:{type:Boolean,default:!1},state:{type:String,default:null,validator:function(e){return e.match(/(hover|active|visited|disabled)/)}}},data:function(){return{WvcBreadcrumb:[]}},computed:{themeClass:function(){return{"theme-light":!this.dark,"theme-dark":this.dark}},classes:function(){return{"link-text":this.text&&!this.inline,"link-uppercase":this.uppercase}}},created:function(){this.WvcBreadcrumb=this.$children},mounted:function(){this.$refs.garbageBin.remove()}},o=r,d=a("2877");function c(e){var t=a("e78c");t.__inject__&&t.__inject__(e)}var s=Object(d["a"])(o,i,n,!1,c,"0f7fe9bb",null,!0);t["default"]=s.exports},b788:function(e,t,a){var i=a("640a");"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("35d6").default;e.exports.__inject__=function(e){n("3b680c54",i,e)}},e78c:function(e,t,a){"use strict";a.r(t);var i=a("b788"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);t["default"]=n.a}}]);
//# sourceMappingURL=wvc.umd.min.19.js.map