include rule.pug include button.pug include heading.pug include action-button.pug mixin dialog(title) - const slots = {} mixin slot(key) - slots[key] = block - block ? block() : undefined let classes = { 'o-dialog': true, 't-raised': true, 'o-dialog--split': !!slots.sidebar, } let bodyClass = { 'o-dialog__body': true } if (attributes.bodyClass) { bodyClass[attributes.bodyClass] = true; } div(class=classes) if slots.sidebar .o-dialog__sidebar - slots.sidebar() header.o-dialog__header +div-heading('md')(class='o-dialog__title') = title +action-button(round=true quiet=true icon='x' class='o-dialog__close-btn') section(class=bodyClass) if slots.body - slots.body() footer.o-dialog__footer.l-button-group +a-button(outline=true)= 'Cancel' = ' ' +a-button(variant='accent')= 'Continue'