@@ -11,10 +11,16 @@ import MockAppSidebarOldSideNav from './sidebar/side-nav';
11
11
import MockAppMainPageHeader from ' ./main/page-header' ;
12
12
import MockAppMainGenericTextContent from ' ./main/generic-text-content' ;
13
13
import MockAppMainGenericAdvancedTable from ' ./main/generic-advanced-table' ;
14
+ import MockAppMainFormComplex from ' ./main/form-complex' ;
15
+ import MockAppMainTableComplex from ' ./main/table-complex' ;
16
+ import MockAppMainPagination from ' ./main/pagination' ;
14
17
import MockAppFooterAppFooter from ' ./footer/app-footer' ;
15
18
16
19
// HDS components
17
- import { HdsAppFrame } from ' @hashicorp/design-system-components/components' ;
20
+ import {
21
+ HdsAlert ,
22
+ HdsAppFrame ,
23
+ } from ' @hashicorp/design-system-components/components' ;
18
24
19
25
// types
20
26
import type { ComponentLike } from ' @glint/template' ;
@@ -25,10 +31,14 @@ import type { MockAppSidebarOldSideNavSignature } from './sidebar/side-nav';
25
31
import type { MockAppMainPageHeaderSignature } from ' ./main/page-header' ;
26
32
import type { MockAppMainGenericTextContentSignature } from ' ./main/generic-text-content' ;
27
33
import type { MockAppMainGenericAdvancedTableSignature } from ' ./main/generic-advanced-table' ;
34
+ import type { MockAppMainFormComplexSignature } from ' ./main/form-complex' ;
35
+ import type { MockAppMainTableComplexSignature } from ' ./main/table-complex' ;
36
+ import type { MockAppMainPaginationSignature } from ' ./main/pagination' ;
28
37
import type { MockAppFooterAppFooterSignature } from ' ./footer/app-footer' ;
29
38
30
39
export interface MockAppSignature {
31
40
Args: {
41
+ hasPageAlert? : boolean ;
32
42
hasHeader? : HdsAppFrameSignature [' Args' ][' hasHeader' ];
33
43
hasSidebar? : HdsAppFrameSignature [' Args' ][' hasSidebar' ];
34
44
hasOldSidebar? : boolean ;
@@ -52,6 +62,9 @@ export interface MockAppSignature {
52
62
PageHeader? : ComponentLike <MockAppMainPageHeaderSignature >;
53
63
GenericTextContent? : ComponentLike <MockAppMainGenericTextContentSignature >;
54
64
GenericAdvancedTable? : ComponentLike <MockAppMainGenericAdvancedTableSignature >;
65
+ FormComplex? : ComponentLike <MockAppMainFormComplexSignature >;
66
+ TableComplex? : ComponentLike <MockAppMainTableComplexSignature >;
67
+ Pagination? : ComponentLike <MockAppMainPaginationSignature >;
55
68
},
56
69
];
57
70
footer? : [
@@ -92,12 +105,21 @@ export default class MockApp extends Component<MockAppSignature> {
92
105
{{/if }}
93
106
</Frame.Sidebar >
94
107
<Frame.Main >
108
+ {{#if @ hasPageAlert }}
109
+ <HdsAlert @ type =" page" @ color =" highlight" as | A | >
110
+ <A.Title >Lorem ipsum</A.Title >
111
+ <A.Description >Lorem ipsum dolor sit amet.</A.Description >
112
+ </HdsAlert >
113
+ {{/if }}
95
114
<div class =" mock-app-layout-main-content-wrapper" >
96
115
{{yield
97
116
( hash
98
117
PageHeader =MockAppMainPageHeader
99
118
GenericTextContent =MockAppMainGenericTextContent
100
119
GenericAdvancedTable =MockAppMainGenericAdvancedTable
120
+ FormComplex =MockAppMainFormComplex
121
+ TableComplex =MockAppMainTableComplex
122
+ Pagination =MockAppMainPagination
101
123
)
102
124
to =" main"
103
125
}}
0 commit comments