2018-05-01 17:55:51 +03:00
|
|
|
{{#if icon}}
|
|
|
|
{{#sticky-element top=iconTop bottom=36}}
|
|
|
|
{{svg-jar icon class=iconClass}}
|
|
|
|
{{/sticky-element}}
|
|
|
|
{{/if}}
|
2018-02-20 18:02:47 +03:00
|
|
|
|
2019-07-23 20:13:41 +03:00
|
|
|
{{yield (hash
|
|
|
|
captionInput=(component "koenig-caption-input"
|
|
|
|
captureInput=isSelected
|
|
|
|
addParagraphAfterCard=addParagraphAfterCard
|
|
|
|
moveCursorToPrevSection=moveCursorToPrevSection
|
|
|
|
moveCursorToNextSection=moveCursorToNextSection
|
|
|
|
)
|
|
|
|
altInput=(component "koenig-alt-input"
|
|
|
|
addParagraphAfterCard=addParagraphAfterCard
|
|
|
|
moveCursorToPrevSection=moveCursorToPrevSection
|
|
|
|
moveCursorToNextSection=moveCursorToNextSection
|
|
|
|
)
|
|
|
|
)}}
|
2018-02-13 21:00:54 +03:00
|
|
|
|
|
|
|
{{#if toolbar}}
|
2019-05-01 15:57:00 +03:00
|
|
|
{{#kg-action-bar class="absolute" style=toolbarStyle isVisible=shouldShowToolbar}}
|
2018-02-13 21:00:54 +03:00
|
|
|
{{#each toolbar.items as |item|}}
|
2018-04-11 18:48:01 +03:00
|
|
|
{{#if item.divider}}
|
|
|
|
<li class="ma0 kg-action-bar-divider bg-darkgrey-d2 h5"></li>
|
|
|
|
{{else}}
|
2018-04-24 12:15:54 +03:00
|
|
|
<li class="ma0 lh-solid">
|
2018-04-11 18:48:01 +03:00
|
|
|
<button
|
|
|
|
type="button"
|
|
|
|
title={{item.title}}
|
2018-05-08 14:16:26 +03:00
|
|
|
class="dib dim-lite link h10 w9 nudge-top--1 justify-center {{item.buttonClass}}"
|
2018-04-11 18:48:01 +03:00
|
|
|
onmousedown={{action item.action}}
|
|
|
|
>
|
|
|
|
{{#if item.icon}}{{svg-jar item.icon class=(concat item.iconClass (if item.text " mr2") " w4 h4")}} {{/if}}{{item.text}}
|
|
|
|
</button>
|
|
|
|
</li>
|
|
|
|
{{/if}}
|
2018-02-13 21:00:54 +03:00
|
|
|
{{/each}}
|
2019-05-01 15:57:00 +03:00
|
|
|
{{/kg-action-bar}}
|
2018-06-12 20:08:27 +03:00
|
|
|
{{/if}}
|