@@ -14,21 +14,12 @@ import { registerComponent } from '../common/definitions/register.js';
1414import { partMap } from '../common/part-map.js' ;
1515import { isEmpty } from '../common/util.js' ;
1616import IgcIconComponent from '../icon/icon.js' ;
17- import { registerIconFromText } from '../icon/icon.registry.js' ;
1817import IgcTextareaComponent from '../textarea/textarea.js' ;
1918import type { ChatState } from './chat-state.js' ;
2019import { styles } from './themes/input.base.css.js' ;
2120import { all } from './themes/input.js' ;
2221import { styles as shared } from './themes/shared/input/input.common.css.js' ;
23- import {
24- attachmentIcon ,
25- type ChatTemplateRenderer ,
26- fileDocumentIcon ,
27- fileImageIcon ,
28- type IgcMessageAttachment ,
29- sendButtonIcon ,
30- starIcon ,
31- } from './types.js' ;
22+ import type { ChatTemplateRenderer , IgcMessageAttachment } from './types.js' ;
3223import { getChatAcceptedFiles , getIconName } from './utils.js' ;
3324
3425type DefaultInputRenderers = {
@@ -117,12 +108,6 @@ export default class IgcChatInputComponent extends LitElement {
117108 constructor ( ) {
118109 super ( ) ;
119110 addThemingController ( this , all ) ;
120-
121- registerIconFromText ( 'attachment' , attachmentIcon , 'material' ) ;
122- registerIconFromText ( 'send-message' , sendButtonIcon , 'material' ) ;
123- registerIconFromText ( 'file-document' , fileDocumentIcon , 'material' ) ;
124- registerIconFromText ( 'file-image' , fileImageIcon , 'material' ) ;
125- registerIconFromText ( 'star-icon' , starIcon , 'material' ) ;
126111 }
127112
128113 protected override firstUpdated ( ) {
@@ -239,7 +224,6 @@ export default class IgcChatInputComponent extends LitElement {
239224 < igc-icon
240225 slot ="prefix "
241226 name =${ getIconName ( attachment . file ?. type ?? attachment . type ) }
242- collection ="material"
243227 > </ igc-icon >
244228 < span part ="attachment-name "> ${ attachment . name } </ span >
245229 </ igc-chip >
@@ -279,8 +263,7 @@ export default class IgcChatInputComponent extends LitElement {
279263 < label for ="input_attachments " part ="upload-button ">
280264 < igc-icon-button
281265 variant ="flat "
282- name ="attachment "
283- collection ="material "
266+ name ="attach_file "
284267 @click =${ ( ) => this . _attachmentsButtonInputRef ?. value ?. click ( ) }
285268 > </ igc-icon-button >
286269 < input
@@ -305,8 +288,7 @@ export default class IgcChatInputComponent extends LitElement {
305288 return html `
306289 < igc-icon-button
307290 aria-label ="Send message "
308- name ="send-message "
309- collection ="material "
291+ name ="send_message "
310292 variant ="contained "
311293 part ="send-button "
312294 ?disabled =${ ! this . _chatState ?. inputValue . trim ( ) &&
0 commit comments