UNPKG

@peculiar/fortify-webcomponents

Version:

Web-components for creating CSR or Certificate and viewing certificates list using Fortify

15 lines 1.31 kB
/*! * © Peculiar Ventures https://peculiarventures.com/ - BSD 3-Clause License */ import{h}from"./index-4c0eccab.js"; /*! * © Peculiar Ventures https://peculiarventures.com/ - MIT License */ /** * @license * Copyright (c) Peculiar Ventures, LLC. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var __rest=undefined&&undefined.__rest||function(r,a){var n={};for(var t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&a.indexOf(t)<0)n[t]=r[t];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var e=0,t=Object.getOwnPropertySymbols(r);e<t.length;e++){if(a.indexOf(t[e])<0&&Object.prototype.propertyIsEnumerable.call(r,t[e]))n[t[e]]=r[t[e]]}return n};var variantMapping={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",s1:"h6",s2:"h6",b1:"p",b2:"p",b3:"p",btn1:"span",btn2:"span",c1:"p",c2:"p"};var Typography=function(r,a){var n;var t=r.component,e=r.variant,p=e===void 0?"b2":e,o=r.color,c=o===void 0?"black":o,i=r.class,v=__rest(r,["component","variant","color","class"]);var b=t||variantMapping[p]||"p";return h(b,Object.assign({},v,{class:(n={typography:true},n["t-".concat(p)]=true,n["c-".concat(c)]=true,n[i]=Boolean(i),n)}),a)};export{Typography as T}; //# sourceMappingURL=typography-a2121a56.js.map