File tree 7 files changed +15
-15
lines changed
7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,12 @@ import { on } from '@ember/modifier';
2
2
import { action } from ' @ember/object' ;
3
3
import Component from ' @glimmer/component' ;
4
4
import { tracked } from ' @glimmer/tracking' ;
5
- import AuIcon from ' ./au-icon' ;
5
+ import AuIcon , { type AuIconSignature } from ' ./au-icon' ;
6
6
7
7
export interface AuAlertSignature {
8
8
Args: {
9
9
closable? : boolean ;
10
- icon? : string ;
10
+ icon? : AuIconSignature [ ' Args ' ][ ' icon ' ] ;
11
11
iconVisible? : boolean ;
12
12
onClose? : () => void ;
13
13
size? : ' tiny' | ' small' ;
Original file line number Diff line number Diff line change 1
1
import Component from ' @glimmer/component' ;
2
- import AuIcon from ' ./au-icon' ;
2
+ import AuIcon , { type AuIconSignature } from ' ./au-icon' ;
3
3
4
4
export interface AuBadgeSignature {
5
5
Args: {
6
- icon? : string ;
6
+ icon? : AuIconSignature [ ' Args ' ][ ' icon ' ] ;
7
7
iconVisible? : boolean ;
8
8
number? : number ;
9
9
size? : ' small' ;
Original file line number Diff line number Diff line change 1
1
import Component from ' @glimmer/component' ;
2
- import AuIcon from ' ./au-icon' ;
2
+ import AuIcon , { type AuIconSignature } from ' ./au-icon' ;
3
3
import { LoadingAnimation } from ' ../private/components/loading-animation' ;
4
4
5
5
const SKINS = [
@@ -15,7 +15,7 @@ export interface AuButtonSignature {
15
15
alert? : boolean ;
16
16
disabled? : boolean ;
17
17
hideText? : boolean ;
18
- icon? : string ;
18
+ icon? : AuIconSignature [ ' Args ' ][ ' icon ' ] ;
19
19
iconAlignment? : ' left' | ' right' ;
20
20
loading? : boolean ;
21
21
loadingMessage? : string ;
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { tracked } from '@glimmer/tracking';
6
6
import AuBadge from ' ./au-badge' ;
7
7
import AuButton from ' ./au-button' ;
8
8
import AuContent , { type AuContentSignature } from ' ./au-content' ;
9
- import AuIcon from ' ./au-icon' ;
9
+ import AuIcon , { type AuIconSignature } from ' ./au-icon' ;
10
10
11
11
export interface AuCardSignature {
12
12
Args: {
@@ -188,7 +188,7 @@ export default class AuCard extends Component<AuCardSignature> {
188
188
189
189
interface HeaderSignature {
190
190
Args: {
191
- badgeIcon? : string ;
191
+ badgeIcon? : AuIconSignature [ ' Args ' ][ ' icon ' ] ;
192
192
badgeNumber? : number ;
193
193
badgeSize? : ' small' ;
194
194
badgeSkin? : ' border' | ' action' | ' brand' | ' success' | ' warning' | ' error' ;
Original file line number Diff line number Diff line change 1
1
import Component from ' @glimmer/component' ;
2
- import AuIcon from ' ./au-icon' ;
2
+ import AuIcon , { type AuIconSignature } from ' ./au-icon' ;
3
3
4
4
export interface AuInputSignature {
5
5
Args: {
6
6
disabled? : boolean ;
7
7
error? : boolean ;
8
- icon? : string ;
8
+ icon? : AuIconSignature [ ' Args ' ][ ' icon ' ] ;
9
9
iconAlignment? : ' left' | ' right' ;
10
10
warning? : boolean ;
11
11
width? : ' block' ;
Original file line number Diff line number Diff line change 1
1
import { LinkTo } from ' @ember/routing' ;
2
2
import Component from ' @glimmer/component' ;
3
- import AuIcon from ' ./au-icon' ;
3
+ import AuIcon , { type AuIconSignature } from ' ./au-icon' ;
4
4
import linkToModels from ' ../private/helpers/link-to-models' ;
5
5
6
6
const SKIN_CLASSES = {
@@ -22,7 +22,7 @@ export interface AuLinkSignature {
22
22
| ' button-naked' ;
23
23
width? : ' block' ;
24
24
query? : Record <string , unknown >;
25
- icon? : string ;
25
+ icon? : AuIconSignature [ ' Args ' ][ ' icon ' ] ;
26
26
route: string ;
27
27
hideText? : boolean ;
28
28
model? : unknown ;
Original file line number Diff line number Diff line change 1
1
import { on } from ' @ember/modifier' ;
2
2
import { LinkTo } from ' @ember/routing' ;
3
3
import Component from ' @glimmer/component' ;
4
- import AuIcon from ' ./au-icon' ;
4
+ import AuIcon , { type AuIconSignature } from ' ./au-icon' ;
5
5
import linkToModels from ' ../private/helpers/link-to-models' ;
6
6
7
7
const PILL_SIZES = [' small' ];
8
8
9
9
export interface AuPillSignature {
10
10
Args: {
11
- actionIcon? : string ;
11
+ actionIcon? : AuIconSignature [ ' Args ' ][ ' icon ' ] ;
12
12
actionText? : string ;
13
13
draft? : boolean ;
14
14
href? : string ;
@@ -144,7 +144,7 @@ export default class AuPill extends Component<AuPillSignature> {
144
144
145
145
interface InnerSignature {
146
146
Args: {
147
- icon? : string ;
147
+ icon? : AuIconSignature [ ' Args ' ][ ' icon ' ] ;
148
148
iconAlignment? : ' left' | ' right' ;
149
149
hideText? : boolean ;
150
150
};
You can’t perform that action at this time.
0 commit comments