Skip to content

Commit 0baddca

Browse files
authored
Convert Shw::Outliner component to GTS (#2437)
1 parent 26a4cdc commit 0baddca

File tree

4 files changed

+21
-26
lines changed

4 files changed

+21
-26
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/**
2+
* Copyright (c) HashiCorp, Inc.
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
5+
import Component from '@glimmer/component';
6+
7+
export interface ShwOutlinerSignature {
8+
Blocks: {
9+
default: [];
10+
};
11+
Element: HTMLDivElement;
12+
}
13+
14+
export default class ShwOutliner extends Component<ShwOutlinerSignature> {
15+
<template>
16+
<div class="shw-outliner" ...attributes>
17+
{{yield}}
18+
</div>
19+
</template>
20+
}

showcase/app/components/shw/outliner/index.hbs

-8
This file was deleted.

showcase/app/components/shw/outliner/index.ts

-17
This file was deleted.

showcase/types/template-registry.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import ShwGrid from '../app/components/shw/grid';
1212
import ShwGridItem from '../app/components/shw/grid/item';
1313
import ShwLabel from '../app/components/shw/label';
1414
import ShwLogoDesignSystem from '../app/components/shw/logo/design-system';
15-
import ShwOutliner from '../app/components/shw/outliner';
15+
import ShwOutliner from '../app/components/shw/outliner/index';
1616
import ShwPlaceholder from '../app/components/shw/placeholder/index';
1717
import ShwText from '../app/components/shw/text/index';
1818
import ShwTextBody from '../app/components/shw/text/body';

0 commit comments

Comments
 (0)