File tree Expand file tree Collapse file tree 4 files changed +4
-57
lines changed
packages/components/src/components/hds Expand file tree Collapse file tree 4 files changed +4
-57
lines changed Original file line number Diff line number Diff line change @@ -7,21 +7,8 @@ import TemplateOnlyComponent from '@ember/component/template-only';
7
7
8
8
import type { HdsAppSideNavListSignature } from '../list/index' ;
9
9
10
- // TODO! understand how this should be done "correctly"
11
- // import type { PortalSignature } from 'ember-stargate/components/portal';
12
- interface PortalSignature {
13
- Args : {
14
- target : string ;
15
- renderInPlace ?: boolean ;
16
- fallback ?: 'inplace' ;
17
- } ;
18
- Blocks : {
19
- default : [ ] ;
20
- } ;
21
- }
22
-
23
10
export interface HdsAppSideNavPortalSignature {
24
- Args : PortalSignature [ 'Args' ] & {
11
+ Args : {
25
12
ariaLabel ?: string ;
26
13
targetName ?: string ;
27
14
} ;
Original file line number Diff line number Diff line change @@ -10,24 +10,10 @@ import { action } from '@ember/object';
10
10
import { macroCondition , isTesting } from '@embroider/macros' ;
11
11
12
12
import type { HdsAppSideNavPortalSignature } from './index' ;
13
-
14
- // import { PortalTargetSignature } from 'ember-stargate/components/portal-target';
15
- interface PortalTargetSignature {
16
- Element : HTMLDivElement ;
17
- Args : {
18
- name : string ;
19
- multiple ?: boolean ;
20
- onChange ?: ( count : number ) => void ;
21
- } ;
22
- Blocks : {
23
- default : [ number ] ;
24
- } ;
25
- }
26
-
27
13
import type { Registry as Services } from '@ember/service' ;
28
14
29
15
interface HdsAppSideNavPortalTargetSignature {
30
- Args : PortalTargetSignature [ 'Args' ] & {
16
+ Args : {
31
17
targetName ?: HdsAppSideNavPortalSignature [ 'Args' ] [ 'targetName' ] ;
32
18
} ;
33
19
Element : HTMLDivElement ;
Original file line number Diff line number Diff line change @@ -7,21 +7,8 @@ import TemplateOnlyComponent from '@ember/component/template-only';
7
7
8
8
import type { HdsSideNavListSignature } from '../list/index' ;
9
9
10
- // TODO! understand how this should be done "correctly"
11
- // import type { PortalSignature } from 'ember-stargate/components/portal';
12
- export interface PortalSignature {
13
- Args : {
14
- target : string ;
15
- renderInPlace ?: boolean ;
16
- fallback ?: 'inplace' ;
17
- } ;
18
- Blocks : {
19
- default : [ ] ;
20
- } ;
21
- }
22
-
23
10
export interface HdsSideNavPortalSignature {
24
- Args : PortalSignature [ 'Args' ] & {
11
+ Args : {
25
12
ariaLabel ?: string ;
26
13
targetName ?: string ;
27
14
} ;
Original file line number Diff line number Diff line change @@ -11,23 +11,10 @@ import { macroCondition, isTesting } from '@embroider/macros';
11
11
12
12
import type { HdsSideNavPortalSignature } from './index' ;
13
13
14
- // import { PortalTargetSignature } from 'ember-stargate/components/portal-target';
15
- export interface PortalTargetSignature {
16
- Element : HTMLDivElement ;
17
- Args : {
18
- name : string ;
19
- multiple ?: boolean ;
20
- onChange ?: ( count : number ) => void ;
21
- } ;
22
- Blocks : {
23
- default : [ number ] ;
24
- } ;
25
- }
26
-
27
14
import type { Registry as Services } from '@ember/service' ;
28
15
29
16
export interface HdsSideNavPortalTargetSignature {
30
- Args : PortalTargetSignature [ 'Args' ] & {
17
+ Args : {
31
18
targetName ?: HdsSideNavPortalSignature [ 'Args' ] [ 'targetName' ] ;
32
19
} ;
33
20
Element : HTMLDivElement ;
You can’t perform that action at this time.
0 commit comments