Skip to content

Commit 112b8b9

Browse files
author
shleewhite
committed
fix: AppSideNav types
1 parent f902dcd commit 112b8b9

File tree

4 files changed

+4
-57
lines changed

4 files changed

+4
-57
lines changed

packages/components/src/components/hds/app-side-nav/portal/index.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,8 @@ import TemplateOnlyComponent from '@ember/component/template-only';
77

88
import type { HdsAppSideNavListSignature } from '../list/index';
99

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-
2310
export interface HdsAppSideNavPortalSignature {
24-
Args: PortalSignature['Args'] & {
11+
Args: {
2512
ariaLabel?: string;
2613
targetName?: string;
2714
};

packages/components/src/components/hds/app-side-nav/portal/target.ts

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,10 @@ import { action } from '@ember/object';
1010
import { macroCondition, isTesting } from '@embroider/macros';
1111

1212
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-
2713
import type { Registry as Services } from '@ember/service';
2814

2915
interface HdsAppSideNavPortalTargetSignature {
30-
Args: PortalTargetSignature['Args'] & {
16+
Args: {
3117
targetName?: HdsAppSideNavPortalSignature['Args']['targetName'];
3218
};
3319
Element: HTMLDivElement;

packages/components/src/components/hds/side-nav/portal/index.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,8 @@ import TemplateOnlyComponent from '@ember/component/template-only';
77

88
import type { HdsSideNavListSignature } from '../list/index';
99

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-
2310
export interface HdsSideNavPortalSignature {
24-
Args: PortalSignature['Args'] & {
11+
Args: {
2512
ariaLabel?: string;
2613
targetName?: string;
2714
};

packages/components/src/components/hds/side-nav/portal/target.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,10 @@ import { macroCondition, isTesting } from '@embroider/macros';
1111

1212
import type { HdsSideNavPortalSignature } from './index';
1313

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-
2714
import type { Registry as Services } from '@ember/service';
2815

2916
export interface HdsSideNavPortalTargetSignature {
30-
Args: PortalTargetSignature['Args'] & {
17+
Args: {
3118
targetName?: HdsSideNavPortalSignature['Args']['targetName'];
3219
};
3320
Element: HTMLDivElement;

0 commit comments

Comments
 (0)