UNPKG

@formio/uswds

Version:

US Web Design System templates for form.io

33 lines 1.22 kB
Object.defineProperty(exports, "__esModule", { value: true }); exports.default=function(ctx) { var __t, __p = '', __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } __p += '<div class="formio-usa-card">\n <ul role="tablist" class="usa-sidenav">\n '; ctx.component.components.forEach(function(tab, index) { ; __p += '\n <li role="tab" class="usa-sidenav__item ' + ((__t = (ctx.currentTab === index ? 'usa-current' : '')) == null ? '' : __t) + ' border-top-0" ref="' + ((__t = (ctx.tabLikey)) == null ? '' : __t) + '">\n <a href="#' + ((__t = (tab.key)) == null ? '' : __t) + '" ref="' + ((__t = (ctx.tabLinkKey)) == null ? '' : __t) + '">' + ((__t = (ctx.t(tab.label))) == null ? '' : __t) + '</a>\n </li>\n '; }) ; __p += '\n </ul>\n\n '; ctx.component.components.forEach(function(tab, index) { ; __p += '\n <div\n role="tabpanel"\n class="formio-usa-card-body"\n style="display: ' + ((__t = (ctx.currentTab === index ? 'block' : 'none')) == null ? '' : __t) + '"\n ref="' + ((__t = (ctx.tabKey)) == null ? '' : __t) + '"\n >\n ' + ((__t = (ctx.tabComponents[index])) == null ? '' : __t) + '\n </div>\n '; }) ; __p += '\n</div>\n'; return __p }