|
8 | 8 | {{#each items as |item|}} |
9 | 9 | <div data-test-item> |
10 | 10 | {{#if (or item.isClass item.isComponent)}} |
11 | | - <h3 id={{item.name}} data-test-item-header class="item-section__class-header mb-1"> |
12 | | - {{#link-to 'docs.api.item' (concat 'root/' item.id)}} |
13 | | - {{#if (eq item.exportType 'default')}} |
14 | | - <span class="item-section__default-label">Default</span> |
15 | | - {{/if}} |
| 11 | + <h3 id={{item.name}} data-test-item-header class="item-section__class-header"> |
| 12 | + {{#if (eq item.exportType 'default')}} |
| 13 | + <span class="item-section__default-label">Default</span> |
| 14 | + {{/if}} |
| 15 | + |
| 16 | + {{#link-to 'docs.api.item' (concat 'modules/' item.id)}} |
16 | 17 | {{item.name}} |
17 | 18 | {{/link-to}} |
18 | 19 | </h3> |
19 | 20 |
|
20 | 21 | {{{item.description}}} |
21 | 22 | {{else}} |
22 | | - <h3 id={{item.name}} data-test-item-header data-text="{{item.name}}" class="docs-h3 mb-1"> |
23 | | - <a href="#{{item.name}}" class="docs-header-link"> |
24 | | - {{#if (eq item.exportType 'default')}} |
25 | | - <span class="item-section__default-label">Default</span> |
26 | | - {{/if}} |
| 23 | + <h3 id={{item.name}} data-test-item-header data-text="{{item.name}}" class="docs-h3"> |
| 24 | + {{#if (eq item.exportType 'default')}} |
| 25 | + <span class="item-section__default-label">Default</span> |
| 26 | + {{/if}} |
27 | 27 |
|
| 28 | + <a href="#{{item.name}}" class="docs-header-link"> |
28 | 29 | {{type-signature item}} |
29 | 30 | </a> |
30 | 31 | </h3> |
31 | 32 |
|
32 | | - {{#if item.exportType}} |
33 | | - {{api/x-import-path data-test-import-path=true item=item}} |
34 | | - {{/if}} |
35 | | - |
36 | 33 | <p data-test-item-description> |
37 | 34 | {{{item.description}}} |
38 | 35 | </p> |
39 | 36 |
|
40 | | - {{api/x-params data-test-item-params=true params=item.params}} |
| 37 | + <div class="px-6 pt-3 mt-4 border border-grey-light rounded text-sm"> |
| 38 | + {{api/x-import-path item=item}} |
| 39 | + |
| 40 | + {{api/x-params params=item.params}} |
| 41 | + </div> |
41 | 42 | {{/if}} |
42 | 43 | </div> |
43 | 44 | {{/each}} |
|
0 commit comments