@momentum-design/components 0.15.5 → 0.15.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. package/dist/browser/index.js +72 -54
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/avatar/avatar.component.d.ts +2 -65
  4. package/dist/components/avatar/avatar.component.js +5 -50
  5. package/dist/components/avatar/avatar.constants.d.ts +11 -2
  6. package/dist/components/avatar/avatar.constants.js +11 -3
  7. package/dist/components/avatar/avatar.styles.js +14 -14
  8. package/dist/components/avatar/avatar.types.d.ts +1 -2
  9. package/dist/components/avatar/avatar.utils.d.ts +3 -1
  10. package/dist/components/avatar/avatar.utils.js +29 -16
  11. package/dist/components/avatarbutton/avatarbutton.component.d.ts +25 -0
  12. package/dist/components/avatarbutton/avatarbutton.component.js +70 -0
  13. package/dist/components/avatarbutton/avatarbutton.constants.d.ts +2 -0
  14. package/dist/components/avatarbutton/avatarbutton.constants.js +3 -0
  15. package/dist/components/avatarbutton/avatarbutton.styles.d.ts +2 -0
  16. package/dist/components/avatarbutton/avatarbutton.styles.js +11 -0
  17. package/dist/components/avatarbutton/index.d.ts +8 -0
  18. package/dist/components/avatarbutton/index.js +5 -0
  19. package/dist/custom-elements.json +1074 -199
  20. package/dist/index.d.ts +2 -1
  21. package/dist/index.js +2 -1
  22. package/dist/react/avatarbutton/index.d.ts +13 -0
  23. package/dist/react/avatarbutton/index.js +22 -0
  24. package/dist/react/index.d.ts +2 -1
  25. package/dist/react/index.js +2 -1
  26. package/dist/utils/mixins/AvatarComponentMixin.d.ts +15 -0
  27. package/dist/utils/mixins/AvatarComponentMixin.js +66 -0
  28. package/dist/utils/mixins/DisabledMixin.d.ts +1 -2
  29. package/dist/utils/mixins/TabIndexMixin.d.ts +1 -2
  30. package/dist/utils/mixins/index.types.d.ts +1 -0
  31. package/dist/utils/mixins/index.types.js +1 -0
  32. package/package.json +1 -1
@@ -2,6 +2,792 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "readme": "",
4
4
  "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "components/avatar/avatar.component.js",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "The `mdc-avatar` component is used to represent a person or a space.\nAn avatar can be an icon, initials, counter and photo.\n\nTo set the photo of an avatar,\nyou need to set \"src\" attribute.\n\nWhile the avatar image is loading, as a placeholder,\nwe will show the initials text.\nIf the initials are not specified then,\nwe will show `user-regular` icon as a placeholder.\n\nBy default, if there are no attributes specified,\nthen the default avatar will be an icon with `user-regular` name.\n\nThe avatar component is non clickable and non interactive/focusable component.\nIf the avatar is typing, then the loading indicator will be displayed.\nIf the counter type avatar is set to a negative number, then we will display 0.\nThe presence indicator will be hidden when the counter property is set.",
12
+ "name": "Avatar",
13
+ "cssProperties": [
14
+ {
15
+ "description": "Allows customization of the default background color.",
16
+ "name": "--mdc-avatar-default-background-color"
17
+ },
18
+ {
19
+ "description": "Allows customization of the default foreground color.",
20
+ "name": "--mdc-avatar-default-foreground-color"
21
+ },
22
+ {
23
+ "description": "Allows customization of the loading indicator background color.",
24
+ "name": "--mdc-avatar-loading-indicator-background-color"
25
+ },
26
+ {
27
+ "description": "Allows customization of the loading indicator foreground color.",
28
+ "name": "--mdc-avatar-loading-indicator-foreground-color"
29
+ },
30
+ {
31
+ "description": "Allows customization of the loading overlay background color.",
32
+ "name": "--mdc-avatar-loading-overlay-background-color"
33
+ }
34
+ ],
35
+ "members": [
36
+ {
37
+ "kind": "field",
38
+ "name": "src",
39
+ "type": {
40
+ "text": "string | undefined"
41
+ },
42
+ "description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
43
+ "attribute": "src",
44
+ "inheritedFrom": {
45
+ "name": "AvatarComponentMixin",
46
+ "module": "utils/mixins/AvatarComponentMixin.js"
47
+ }
48
+ },
49
+ {
50
+ "kind": "field",
51
+ "name": "initials",
52
+ "type": {
53
+ "text": "string | undefined"
54
+ },
55
+ "description": "The initials to be displayed for the avatar.",
56
+ "attribute": "initials",
57
+ "inheritedFrom": {
58
+ "name": "AvatarComponentMixin",
59
+ "module": "utils/mixins/AvatarComponentMixin.js"
60
+ }
61
+ },
62
+ {
63
+ "kind": "field",
64
+ "name": "presence",
65
+ "type": {
66
+ "text": "PresenceType | undefined"
67
+ },
68
+ "description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
69
+ "attribute": "presence",
70
+ "inheritedFrom": {
71
+ "name": "AvatarComponentMixin",
72
+ "module": "utils/mixins/AvatarComponentMixin.js"
73
+ }
74
+ },
75
+ {
76
+ "kind": "field",
77
+ "name": "size",
78
+ "type": {
79
+ "text": "AvatarSize"
80
+ },
81
+ "description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
82
+ "default": "32",
83
+ "attribute": "size",
84
+ "reflects": true,
85
+ "inheritedFrom": {
86
+ "name": "AvatarComponentMixin",
87
+ "module": "utils/mixins/AvatarComponentMixin.js"
88
+ }
89
+ },
90
+ {
91
+ "kind": "field",
92
+ "name": "iconName",
93
+ "type": {
94
+ "text": "IconNames | undefined"
95
+ },
96
+ "description": "Name of the icon to be displayed inside the Avatar.\nMust be a valid icon name.",
97
+ "attribute": "icon-name",
98
+ "inheritedFrom": {
99
+ "name": "AvatarComponentMixin",
100
+ "module": "utils/mixins/AvatarComponentMixin.js"
101
+ }
102
+ },
103
+ {
104
+ "kind": "field",
105
+ "name": "counter",
106
+ "type": {
107
+ "text": "number | undefined"
108
+ },
109
+ "description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
110
+ "attribute": "counter",
111
+ "inheritedFrom": {
112
+ "name": "AvatarComponentMixin",
113
+ "module": "utils/mixins/AvatarComponentMixin.js"
114
+ }
115
+ },
116
+ {
117
+ "kind": "field",
118
+ "name": "isTyping",
119
+ "type": {
120
+ "text": "boolean"
121
+ },
122
+ "default": "false",
123
+ "description": "Represents the typing indicator when the user is typing.",
124
+ "attribute": "is-typing",
125
+ "inheritedFrom": {
126
+ "name": "AvatarComponentMixin",
127
+ "module": "utils/mixins/AvatarComponentMixin.js"
128
+ }
129
+ }
130
+ ],
131
+ "mixins": [
132
+ {
133
+ "name": "AvatarComponentMixin",
134
+ "module": "/src/utils/mixins/AvatarComponentMixin"
135
+ }
136
+ ],
137
+ "superclass": {
138
+ "name": "Component",
139
+ "module": "/src/models"
140
+ },
141
+ "tagName": "mdc-avatar",
142
+ "jsDoc": "/**\n * The `mdc-avatar` component is used to represent a person or a space.\n * An avatar can be an icon, initials, counter and photo.\n *\n * To set the photo of an avatar,\n * you need to set \"src\" attribute.\n *\n * While the avatar image is loading, as a placeholder,\n * we will show the initials text.\n * If the initials are not specified then,\n * we will show `user-regular` icon as a placeholder.\n *\n * By default, if there are no attributes specified,\n * then the default avatar will be an icon with `user-regular` name.\n *\n * The avatar component is non clickable and non interactive/focusable component.\n * If the avatar is typing, then the loading indicator will be displayed.\n * If the counter type avatar is set to a negative number, then we will display 0.\n * The presence indicator will be hidden when the counter property is set.\n *\n * @dependency mdc-icon\n * @dependency mdc-presence\n * @dependency mdc-text\n *\n * @tagname mdc-avatar\n *\n * @cssproperty --mdc-avatar-default-background-color - Allows customization of the default background color.\n * @cssproperty --mdc-avatar-default-foreground-color - Allows customization of the default foreground color.\n * @cssproperty --mdc-avatar-loading-indicator-background-color -\n * Allows customization of the loading indicator background color.\n * @cssproperty --mdc-avatar-loading-indicator-foreground-color -\n * Allows customization of the loading indicator foreground color.\n * @cssproperty --mdc-avatar-loading-overlay-background-color -\n * Allows customization of the loading overlay background color.\n */",
143
+ "customElement": true,
144
+ "attributes": [
145
+ {
146
+ "name": "src",
147
+ "type": {
148
+ "text": "string | undefined"
149
+ },
150
+ "description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
151
+ "fieldName": "src",
152
+ "inheritedFrom": {
153
+ "name": "AvatarComponentMixin",
154
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
155
+ }
156
+ },
157
+ {
158
+ "name": "initials",
159
+ "type": {
160
+ "text": "string | undefined"
161
+ },
162
+ "description": "The initials to be displayed for the avatar.",
163
+ "fieldName": "initials",
164
+ "inheritedFrom": {
165
+ "name": "AvatarComponentMixin",
166
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
167
+ }
168
+ },
169
+ {
170
+ "name": "presence",
171
+ "type": {
172
+ "text": "PresenceType | undefined"
173
+ },
174
+ "description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
175
+ "fieldName": "presence",
176
+ "inheritedFrom": {
177
+ "name": "AvatarComponentMixin",
178
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
179
+ }
180
+ },
181
+ {
182
+ "name": "size",
183
+ "type": {
184
+ "text": "AvatarSize"
185
+ },
186
+ "description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
187
+ "default": "32",
188
+ "fieldName": "size",
189
+ "inheritedFrom": {
190
+ "name": "AvatarComponentMixin",
191
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
192
+ }
193
+ },
194
+ {
195
+ "name": "icon-name",
196
+ "type": {
197
+ "text": "IconNames | undefined"
198
+ },
199
+ "description": "Name of the icon to be displayed inside the Avatar.\nMust be a valid icon name.",
200
+ "fieldName": "iconName",
201
+ "inheritedFrom": {
202
+ "name": "AvatarComponentMixin",
203
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
204
+ }
205
+ },
206
+ {
207
+ "name": "counter",
208
+ "type": {
209
+ "text": "number | undefined"
210
+ },
211
+ "description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
212
+ "fieldName": "counter",
213
+ "inheritedFrom": {
214
+ "name": "AvatarComponentMixin",
215
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
216
+ }
217
+ },
218
+ {
219
+ "name": "is-typing",
220
+ "type": {
221
+ "text": "boolean"
222
+ },
223
+ "default": "false",
224
+ "description": "Represents the typing indicator when the user is typing.",
225
+ "fieldName": "isTyping",
226
+ "inheritedFrom": {
227
+ "name": "AvatarComponentMixin",
228
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
229
+ }
230
+ }
231
+ ]
232
+ }
233
+ ],
234
+ "exports": [
235
+ {
236
+ "kind": "js",
237
+ "name": "default",
238
+ "declaration": {
239
+ "name": "Avatar",
240
+ "module": "components/avatar/avatar.component.js"
241
+ }
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "kind": "javascript-module",
247
+ "path": "components/avatarbutton/avatarbutton.component.js",
248
+ "declarations": [
249
+ {
250
+ "kind": "class",
251
+ "description": "The `mdc-avatarbutton` component is an interactable version of the `mdc-avatar` component.\n\nThis component is made by extending `buttonsimple` class.\nThe button component acts as a wrapper for the avatar component.",
252
+ "name": "AvatarButton",
253
+ "members": [
254
+ {
255
+ "kind": "field",
256
+ "name": "ariaLabel",
257
+ "type": {
258
+ "text": "string | null"
259
+ },
260
+ "default": "null",
261
+ "description": "Aria-label attribute to be set for accessibility",
262
+ "attribute": "aria-label"
263
+ },
264
+ {
265
+ "kind": "method",
266
+ "name": "setSize",
267
+ "privacy": "private",
268
+ "parameters": [
269
+ {
270
+ "name": "size",
271
+ "type": {
272
+ "text": "AvatarSize"
273
+ }
274
+ }
275
+ ]
276
+ },
277
+ {
278
+ "kind": "field",
279
+ "name": "active",
280
+ "type": {
281
+ "text": "boolean"
282
+ },
283
+ "default": "undefined as unknown",
284
+ "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
285
+ "attribute": "active",
286
+ "inheritedFrom": {
287
+ "name": "Buttonsimple",
288
+ "module": "components/buttonsimple/buttonsimple.component.js"
289
+ }
290
+ },
291
+ {
292
+ "kind": "field",
293
+ "name": "disabled",
294
+ "type": {
295
+ "text": "boolean"
296
+ },
297
+ "default": "undefined as unknown",
298
+ "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
299
+ "attribute": "disabled",
300
+ "inheritedFrom": {
301
+ "name": "Buttonsimple",
302
+ "module": "components/buttonsimple/buttonsimple.component.js"
303
+ }
304
+ },
305
+ {
306
+ "kind": "field",
307
+ "name": "softDisabled",
308
+ "type": {
309
+ "text": "boolean"
310
+ },
311
+ "default": "undefined as unknown",
312
+ "description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
313
+ "attribute": "soft-disabled",
314
+ "inheritedFrom": {
315
+ "name": "Buttonsimple",
316
+ "module": "components/buttonsimple/buttonsimple.component.js"
317
+ }
318
+ },
319
+ {
320
+ "kind": "field",
321
+ "name": "role",
322
+ "description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
323
+ "default": "'button'",
324
+ "attribute": "role",
325
+ "reflects": true,
326
+ "type": {
327
+ "text": "string"
328
+ },
329
+ "inheritedFrom": {
330
+ "name": "Buttonsimple",
331
+ "module": "components/buttonsimple/buttonsimple.component.js"
332
+ }
333
+ },
334
+ {
335
+ "kind": "field",
336
+ "name": "type",
337
+ "type": {
338
+ "text": "ButtonType"
339
+ },
340
+ "description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
341
+ "default": "button",
342
+ "attribute": "type",
343
+ "reflects": true,
344
+ "inheritedFrom": {
345
+ "name": "Buttonsimple",
346
+ "module": "components/buttonsimple/buttonsimple.component.js"
347
+ }
348
+ },
349
+ {
350
+ "kind": "field",
351
+ "name": "src",
352
+ "type": {
353
+ "text": "string | undefined"
354
+ },
355
+ "description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
356
+ "attribute": "src",
357
+ "inheritedFrom": {
358
+ "name": "AvatarComponentMixin",
359
+ "module": "utils/mixins/AvatarComponentMixin.js"
360
+ }
361
+ },
362
+ {
363
+ "kind": "field",
364
+ "name": "initials",
365
+ "type": {
366
+ "text": "string | undefined"
367
+ },
368
+ "description": "The initials to be displayed for the avatar.",
369
+ "attribute": "initials",
370
+ "inheritedFrom": {
371
+ "name": "AvatarComponentMixin",
372
+ "module": "utils/mixins/AvatarComponentMixin.js"
373
+ }
374
+ },
375
+ {
376
+ "kind": "field",
377
+ "name": "presence",
378
+ "type": {
379
+ "text": "PresenceType | undefined"
380
+ },
381
+ "description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
382
+ "attribute": "presence",
383
+ "inheritedFrom": {
384
+ "name": "AvatarComponentMixin",
385
+ "module": "utils/mixins/AvatarComponentMixin.js"
386
+ }
387
+ },
388
+ {
389
+ "kind": "field",
390
+ "name": "size",
391
+ "type": {
392
+ "text": "ButtonSize"
393
+ },
394
+ "description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
395
+ "default": "32",
396
+ "attribute": "size",
397
+ "reflects": true,
398
+ "inheritedFrom": {
399
+ "name": "Buttonsimple",
400
+ "module": "components/buttonsimple/buttonsimple.component.js"
401
+ }
402
+ },
403
+ {
404
+ "kind": "field",
405
+ "name": "iconName",
406
+ "type": {
407
+ "text": "IconNames | undefined"
408
+ },
409
+ "description": "Name of the icon to be displayed inside the Avatar.\nMust be a valid icon name.",
410
+ "attribute": "icon-name",
411
+ "inheritedFrom": {
412
+ "name": "AvatarComponentMixin",
413
+ "module": "utils/mixins/AvatarComponentMixin.js"
414
+ }
415
+ },
416
+ {
417
+ "kind": "field",
418
+ "name": "counter",
419
+ "type": {
420
+ "text": "number | undefined"
421
+ },
422
+ "description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
423
+ "attribute": "counter",
424
+ "inheritedFrom": {
425
+ "name": "AvatarComponentMixin",
426
+ "module": "utils/mixins/AvatarComponentMixin.js"
427
+ }
428
+ },
429
+ {
430
+ "kind": "field",
431
+ "name": "isTyping",
432
+ "type": {
433
+ "text": "boolean"
434
+ },
435
+ "default": "false",
436
+ "description": "Represents the typing indicator when the user is typing.",
437
+ "attribute": "is-typing",
438
+ "inheritedFrom": {
439
+ "name": "AvatarComponentMixin",
440
+ "module": "utils/mixins/AvatarComponentMixin.js"
441
+ }
442
+ },
443
+ {
444
+ "kind": "field",
445
+ "name": "tabIndex",
446
+ "type": {
447
+ "text": "number"
448
+ },
449
+ "default": "0",
450
+ "description": "The tabindex of the button.",
451
+ "attribute": "tabIndex",
452
+ "reflects": true,
453
+ "inheritedFrom": {
454
+ "name": "Buttonsimple",
455
+ "module": "components/buttonsimple/buttonsimple.component.js"
456
+ }
457
+ },
458
+ {
459
+ "kind": "method",
460
+ "name": "executeAction",
461
+ "privacy": "private",
462
+ "inheritedFrom": {
463
+ "name": "Buttonsimple",
464
+ "module": "components/buttonsimple/buttonsimple.component.js"
465
+ }
466
+ },
467
+ {
468
+ "kind": "method",
469
+ "name": "setAriaPressed",
470
+ "privacy": "private",
471
+ "parameters": [
472
+ {
473
+ "name": "element",
474
+ "type": {
475
+ "text": "HTMLElement"
476
+ },
477
+ "description": "The target element."
478
+ },
479
+ {
480
+ "name": "active",
481
+ "type": {
482
+ "text": "boolean"
483
+ },
484
+ "description": "The active state."
485
+ }
486
+ ],
487
+ "description": "Sets the aria-pressed attribute based on the active state.",
488
+ "inheritedFrom": {
489
+ "name": "Buttonsimple",
490
+ "module": "components/buttonsimple/buttonsimple.component.js"
491
+ }
492
+ },
493
+ {
494
+ "kind": "method",
495
+ "name": "setSoftDisabled",
496
+ "privacy": "private",
497
+ "parameters": [
498
+ {
499
+ "name": "element",
500
+ "type": {
501
+ "text": "HTMLElement"
502
+ },
503
+ "description": "The button element."
504
+ },
505
+ {
506
+ "name": "softDisabled",
507
+ "type": {
508
+ "text": "boolean"
509
+ },
510
+ "description": "The soft-disabled state."
511
+ }
512
+ ],
513
+ "description": "Sets the soft-disabled attribute for the button.\nWhen soft-disabled, the button looks to be disabled but remains focusable and clickable.\nAlso sets/removes aria-disabled attribute.",
514
+ "inheritedFrom": {
515
+ "name": "Buttonsimple",
516
+ "module": "components/buttonsimple/buttonsimple.component.js"
517
+ }
518
+ },
519
+ {
520
+ "kind": "method",
521
+ "name": "setDisabled",
522
+ "privacy": "private",
523
+ "parameters": [
524
+ {
525
+ "name": "element",
526
+ "type": {
527
+ "text": "HTMLElement"
528
+ },
529
+ "description": "The button element."
530
+ },
531
+ {
532
+ "name": "disabled",
533
+ "type": {
534
+ "text": "boolean"
535
+ },
536
+ "description": "The disabled state."
537
+ }
538
+ ],
539
+ "description": "Sets the disabled attribute for the button.\nWhen disabled, the button is not focusable or clickable, and tabindex is set to -1.\nThe previous tabindex is stored and restored when enabled.\nAlso sets/removes aria-disabled attribute.",
540
+ "inheritedFrom": {
541
+ "name": "Buttonsimple",
542
+ "module": "components/buttonsimple/buttonsimple.component.js"
543
+ }
544
+ },
545
+ {
546
+ "kind": "method",
547
+ "name": "triggerClickEvent",
548
+ "privacy": "private",
549
+ "inheritedFrom": {
550
+ "name": "Buttonsimple",
551
+ "module": "components/buttonsimple/buttonsimple.component.js"
552
+ }
553
+ },
554
+ {
555
+ "kind": "method",
556
+ "name": "handleKeyDown",
557
+ "privacy": "private",
558
+ "parameters": [
559
+ {
560
+ "name": "event",
561
+ "type": {
562
+ "text": "KeyboardEvent"
563
+ },
564
+ "description": "The keyboard event."
565
+ }
566
+ ],
567
+ "description": "Handles the keydown event on the button.\nIf the key is 'Enter' or 'Space', the button is pressed.\nIf the key is 'Enter', the button is pressed. The native HTML button works in the same way.",
568
+ "inheritedFrom": {
569
+ "name": "Buttonsimple",
570
+ "module": "components/buttonsimple/buttonsimple.component.js"
571
+ }
572
+ },
573
+ {
574
+ "kind": "method",
575
+ "name": "handleKeyUp",
576
+ "privacy": "private",
577
+ "parameters": [
578
+ {
579
+ "name": "event",
580
+ "type": {
581
+ "text": "KeyboardEvent"
582
+ },
583
+ "description": "The keyboard event."
584
+ }
585
+ ],
586
+ "description": "Handles the keyup event on the button.\nIf the key is 'Enter' or 'Space', the button is clicked.\nIf the key is 'Space', the button is pressed. The native HTML button works in the same way.",
587
+ "inheritedFrom": {
588
+ "name": "Buttonsimple",
589
+ "module": "components/buttonsimple/buttonsimple.component.js"
590
+ }
591
+ }
592
+ ],
593
+ "attributes": [
594
+ {
595
+ "name": "aria-label",
596
+ "type": {
597
+ "text": "string | null"
598
+ },
599
+ "default": "null",
600
+ "description": "Aria-label attribute to be set for accessibility",
601
+ "fieldName": "ariaLabel"
602
+ },
603
+ {
604
+ "name": "src",
605
+ "type": {
606
+ "text": "string | undefined"
607
+ },
608
+ "description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
609
+ "fieldName": "src",
610
+ "inheritedFrom": {
611
+ "name": "AvatarComponentMixin",
612
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
613
+ }
614
+ },
615
+ {
616
+ "name": "initials",
617
+ "type": {
618
+ "text": "string | undefined"
619
+ },
620
+ "description": "The initials to be displayed for the avatar.",
621
+ "fieldName": "initials",
622
+ "inheritedFrom": {
623
+ "name": "AvatarComponentMixin",
624
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
625
+ }
626
+ },
627
+ {
628
+ "name": "presence",
629
+ "type": {
630
+ "text": "PresenceType | undefined"
631
+ },
632
+ "description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
633
+ "fieldName": "presence",
634
+ "inheritedFrom": {
635
+ "name": "AvatarComponentMixin",
636
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
637
+ }
638
+ },
639
+ {
640
+ "name": "size",
641
+ "type": {
642
+ "text": "ButtonSize"
643
+ },
644
+ "description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
645
+ "default": "32",
646
+ "fieldName": "size",
647
+ "inheritedFrom": {
648
+ "name": "Buttonsimple",
649
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
650
+ }
651
+ },
652
+ {
653
+ "name": "icon-name",
654
+ "type": {
655
+ "text": "IconNames | undefined"
656
+ },
657
+ "description": "Name of the icon to be displayed inside the Avatar.\nMust be a valid icon name.",
658
+ "fieldName": "iconName",
659
+ "inheritedFrom": {
660
+ "name": "AvatarComponentMixin",
661
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
662
+ }
663
+ },
664
+ {
665
+ "name": "counter",
666
+ "type": {
667
+ "text": "number | undefined"
668
+ },
669
+ "description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
670
+ "fieldName": "counter",
671
+ "inheritedFrom": {
672
+ "name": "AvatarComponentMixin",
673
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
674
+ }
675
+ },
676
+ {
677
+ "name": "is-typing",
678
+ "type": {
679
+ "text": "boolean"
680
+ },
681
+ "default": "false",
682
+ "description": "Represents the typing indicator when the user is typing.",
683
+ "fieldName": "isTyping",
684
+ "inheritedFrom": {
685
+ "name": "AvatarComponentMixin",
686
+ "module": "src/utils/mixins/AvatarComponentMixin.ts"
687
+ }
688
+ },
689
+ {
690
+ "name": "active",
691
+ "type": {
692
+ "text": "boolean"
693
+ },
694
+ "default": "false",
695
+ "description": "The button's active state indicates whether it is currently toggled on (active) or off (inactive).\nWhen the active state is true, the button is considered to be in an active state, meaning it is toggled on.\nConversely, when the active state is false, the button is in an inactive state, indicating it is toggled off.",
696
+ "fieldName": "active",
697
+ "inheritedFrom": {
698
+ "name": "Buttonsimple",
699
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
700
+ }
701
+ },
702
+ {
703
+ "name": "disabled",
704
+ "type": {
705
+ "text": "boolean"
706
+ },
707
+ "default": "false",
708
+ "description": "Indicates whether the button is disabled.\nWhen the button is disabled for user interaction; it is not focusable or clickable.",
709
+ "fieldName": "disabled",
710
+ "inheritedFrom": {
711
+ "name": "Buttonsimple",
712
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
713
+ }
714
+ },
715
+ {
716
+ "name": "soft-disabled",
717
+ "type": {
718
+ "text": "boolean"
719
+ },
720
+ "default": "false",
721
+ "description": "Indicates whether the button is soft disabled.\nWhen set to `true`, the button appears visually disabled but still allows\nfocus, click, and keyboard actions to be passed through.\n\n**Important:** When using soft disabled, consumers must ensure that\nthe button behaves like a disabled button, allowing only focus and\npreventing any interactions (clicks or keyboard actions) from triggering unintended actions.",
722
+ "fieldName": "softDisabled",
723
+ "inheritedFrom": {
724
+ "name": "Buttonsimple",
725
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
726
+ }
727
+ },
728
+ {
729
+ "name": "tabIndex",
730
+ "type": {
731
+ "text": "number"
732
+ },
733
+ "default": "0",
734
+ "description": "The tabindex of the button.",
735
+ "fieldName": "tabIndex",
736
+ "inheritedFrom": {
737
+ "name": "Buttonsimple",
738
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
739
+ }
740
+ },
741
+ {
742
+ "name": "role",
743
+ "description": "This property defines the ARIA role for the element. By default, it is set to 'button'.\nConsumers should override this role when:\n- The element is being used in a context where a different role is more appropriate.\n- Custom behaviors are implemented that require a specific ARIA role for accessibility purposes.",
744
+ "default": "button",
745
+ "fieldName": "role",
746
+ "inheritedFrom": {
747
+ "name": "Buttonsimple",
748
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
749
+ }
750
+ },
751
+ {
752
+ "name": "type",
753
+ "type": {
754
+ "text": "ButtonType"
755
+ },
756
+ "description": "This property defines the type attribute for the button element.\nThe type attribute specifies the behavior of the button when it is clicked.\n- **submit**: The button submits the form data to the server.\n- **reset**: The button resets the form data to its initial state.\n- **button**: The button does nothing when clicked.",
757
+ "default": "button",
758
+ "fieldName": "type",
759
+ "inheritedFrom": {
760
+ "name": "Buttonsimple",
761
+ "module": "src/components/buttonsimple/buttonsimple.component.ts"
762
+ }
763
+ }
764
+ ],
765
+ "mixins": [
766
+ {
767
+ "name": "AvatarComponentMixin",
768
+ "module": "/src/utils/mixins/AvatarComponentMixin"
769
+ }
770
+ ],
771
+ "superclass": {
772
+ "name": "Buttonsimple",
773
+ "module": "/src/components/buttonsimple"
774
+ },
775
+ "tagName": "mdc-avatarbutton",
776
+ "jsDoc": "/**\n * The `mdc-avatarbutton` component is an interactable version of the `mdc-avatar` component.\n *\n * This component is made by extending `buttonsimple` class.\n * The button component acts as a wrapper for the avatar component.\n *\n * @dependency mdc-avatar\n *\n * @tagname mdc-avatarbutton\n */",
777
+ "customElement": true
778
+ }
779
+ ],
780
+ "exports": [
781
+ {
782
+ "kind": "js",
783
+ "name": "default",
784
+ "declaration": {
785
+ "name": "AvatarButton",
786
+ "module": "components/avatarbutton/avatarbutton.component.js"
787
+ }
788
+ }
789
+ ]
790
+ },
5
791
  {
6
792
  "kind": "javascript-module",
7
793
  "path": "components/badge/badge.component.js",
@@ -216,217 +1002,39 @@
216
1002
  "fieldName": "counter"
217
1003
  },
218
1004
  {
219
- "name": "max-counter",
220
- "type": {
221
- "text": "number"
222
- },
223
- "description": "The maximum number can be set up to 999, anything above that will be rendered as _999+_.\nThe max counter can be `9`, `99` or `999`.",
224
- "default": "99",
225
- "fieldName": "maxCounter"
226
- },
227
- {
228
- "name": "overlay",
229
- "type": {
230
- "text": "boolean"
231
- },
232
- "default": "false",
233
- "description": "Overlay is to add a thin outline to the badge.\nThis will help distinguish between the badge and the button,\nwhere the badge will be layered on top of a button.",
234
- "fieldName": "overlay"
235
- },
236
- {
237
- "name": "aria-label",
238
- "type": {
239
- "text": "string | null"
240
- },
241
- "default": "null",
242
- "description": "Aria-label attribute to be set for accessibility",
243
- "fieldName": "ariaLabel"
244
- }
245
- ],
246
- "superclass": {
247
- "name": "Component",
248
- "module": "/src/models"
249
- },
250
- "tagName": "mdc-badge",
251
- "jsDoc": "/**\n * The `mdc-badge` component is a versatile UI element used to\n * display dot, icons, counters, success, warning and error type badge.\n *\n * Supported badge types:\n * - `dot`: Displays a dot notification badge with a blue color.\n * - `icon`: Displays a badge with a specified icon using the `icon-name` attribute.\n * - `counter`: Displays a badge with a counter value. If the counter exceeds the `max-counter`,\n * it shows `maxCounter+`. The maximum value of the counter is 999 and anything above that will be set to `999+`.\n * - `success`: Displays a success badge with a check circle icon and green color.\n * - `warning`: Displays a warning badge with a warning icon and yellow color.\n * - `error`: Displays a error badge with a error legacy icon and red color.\n *\n * For `icon`, `success`, `warning` and `error` types, the `mdc-icon` component is used to render the icon.\n *\n * For the `counter` type, the `mdc-text` component is used to render the counter value.\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @tagname mdc-badge\n */",
252
- "customElement": true
253
- }
254
- ],
255
- "exports": [
256
- {
257
- "kind": "js",
258
- "name": "default",
259
- "declaration": {
260
- "name": "Badge",
261
- "module": "components/badge/badge.component.js"
262
- }
263
- }
264
- ]
265
- },
266
- {
267
- "kind": "javascript-module",
268
- "path": "components/avatar/avatar.component.js",
269
- "declarations": [
270
- {
271
- "kind": "class",
272
- "description": "The `mdc-avatar` component is used to represent a person or a space.\nAn avatar can be an icon, initials, counter and photo.\n\nTo set the photo of an avatar,\nyou need to set \"src\" attribute.\n\nWhile the avatar image is loading, as a placeholder,\nwe will show the initials text.\nIf the initials are not specified then,\nwe will show `user-regular` icon as a placeholder.\n\nBy default, if there are no attributes specified,\nthen the default avatar will be an icon with `user-regular` name.\n\nThe avatar component is non clickable and non interactive/focusable component.\nIf the avatar is typing, then the loading indicator will be displayed.\nIf the counter type avatar is set to a negative number, then we will display 0.\nThe presence indicator will be hidden when the counter property is set.",
273
- "name": "Avatar",
274
- "cssProperties": [
275
- {
276
- "description": "Allows customization of the default background color.",
277
- "name": "--mdc-avatar-default-background-color"
278
- },
279
- {
280
- "description": "Allows customization of the default foreground color.",
281
- "name": "--mdc-avatar-default-foreground-color"
282
- },
283
- {
284
- "description": "Allows customization of the loading indicator background color.",
285
- "name": "--mdc-avatar-loading-indicator-background-color"
286
- },
287
- {
288
- "description": "Allows customization of the loading indicator foreground color.",
289
- "name": "--mdc-avatar-loading-indicator-foreground-color"
290
- },
291
- {
292
- "description": "Allows customization of the loading overlay background color.",
293
- "name": "--mdc-avatar-loading-overlay-background-color"
294
- }
295
- ],
296
- "members": [
297
- {
298
- "kind": "field",
299
- "name": "src",
300
- "type": {
301
- "text": "string | undefined"
302
- },
303
- "description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
304
- "attribute": "src"
305
- },
306
- {
307
- "kind": "field",
308
- "name": "initials",
309
- "type": {
310
- "text": "string | undefined"
311
- },
312
- "description": "The initials to be displayed for the avatar.",
313
- "attribute": "initials"
314
- },
315
- {
316
- "kind": "field",
317
- "name": "presence",
318
- "type": {
319
- "text": "PresenceType | undefined"
320
- },
321
- "description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
322
- "attribute": "presence"
323
- },
324
- {
325
- "kind": "field",
326
- "name": "size",
327
- "type": {
328
- "text": "AvatarSize"
329
- },
330
- "description": "Acceptable values include:\n- xx_small\n- x_small\n- small\n- midsize\n- large\n- x_large\n- xx_large",
331
- "default": "x_small",
332
- "attribute": "size",
333
- "reflects": true
334
- },
335
- {
336
- "kind": "field",
337
- "name": "iconName",
338
- "type": {
339
- "text": "IconNames | undefined"
340
- },
341
- "description": "Name of the icon to be displayed inside the Avatar.\nMust be a valid icon name.",
342
- "attribute": "icon-name"
343
- },
344
- {
345
- "kind": "field",
346
- "name": "counter",
347
- "type": {
348
- "text": "number | undefined"
349
- },
350
- "description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the give number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
351
- "attribute": "counter"
352
- },
353
- {
354
- "kind": "field",
355
- "name": "isTyping",
356
- "type": {
357
- "text": "boolean"
358
- },
359
- "default": "false",
360
- "description": "Represents the typing indicator when the user is typing.",
361
- "attribute": "is-typing"
362
- }
363
- ],
364
- "attributes": [
365
- {
366
- "name": "src",
367
- "type": {
368
- "text": "string | undefined"
369
- },
370
- "description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
371
- "fieldName": "src"
372
- },
373
- {
374
- "name": "initials",
375
- "type": {
376
- "text": "string | undefined"
377
- },
378
- "description": "The initials to be displayed for the avatar.",
379
- "fieldName": "initials"
380
- },
381
- {
382
- "name": "presence",
383
- "type": {
384
- "text": "PresenceType | undefined"
385
- },
386
- "description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
387
- "fieldName": "presence"
388
- },
389
- {
390
- "name": "size",
391
- "type": {
392
- "text": "AvatarSize"
393
- },
394
- "description": "Acceptable values include:\n- xx_small\n- x_small\n- small\n- midsize\n- large\n- x_large\n- xx_large",
395
- "default": "x_small",
396
- "fieldName": "size"
397
- },
398
- {
399
- "name": "icon-name",
400
- "type": {
401
- "text": "IconNames | undefined"
402
- },
403
- "description": "Name of the icon to be displayed inside the Avatar.\nMust be a valid icon name.",
404
- "fieldName": "iconName"
405
- },
406
- {
407
- "name": "counter",
1005
+ "name": "max-counter",
408
1006
  "type": {
409
- "text": "number | undefined"
1007
+ "text": "number"
410
1008
  },
411
- "description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the give number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
412
- "fieldName": "counter"
1009
+ "description": "The maximum number can be set up to 999, anything above that will be rendered as _999+_.\nThe max counter can be `9`, `99` or `999`.",
1010
+ "default": "99",
1011
+ "fieldName": "maxCounter"
413
1012
  },
414
1013
  {
415
- "name": "is-typing",
1014
+ "name": "overlay",
416
1015
  "type": {
417
1016
  "text": "boolean"
418
1017
  },
419
1018
  "default": "false",
420
- "description": "Represents the typing indicator when the user is typing.",
421
- "fieldName": "isTyping"
1019
+ "description": "Overlay is to add a thin outline to the badge.\nThis will help distinguish between the badge and the button,\nwhere the badge will be layered on top of a button.",
1020
+ "fieldName": "overlay"
1021
+ },
1022
+ {
1023
+ "name": "aria-label",
1024
+ "type": {
1025
+ "text": "string | null"
1026
+ },
1027
+ "default": "null",
1028
+ "description": "Aria-label attribute to be set for accessibility",
1029
+ "fieldName": "ariaLabel"
422
1030
  }
423
1031
  ],
424
1032
  "superclass": {
425
1033
  "name": "Component",
426
1034
  "module": "/src/models"
427
1035
  },
428
- "tagName": "mdc-avatar",
429
- "jsDoc": "/**\n * The `mdc-avatar` component is used to represent a person or a space.\n * An avatar can be an icon, initials, counter and photo.\n *\n * To set the photo of an avatar,\n * you need to set \"src\" attribute.\n *\n * While the avatar image is loading, as a placeholder,\n * we will show the initials text.\n * If the initials are not specified then,\n * we will show `user-regular` icon as a placeholder.\n *\n * By default, if there are no attributes specified,\n * then the default avatar will be an icon with `user-regular` name.\n *\n * The avatar component is non clickable and non interactive/focusable component.\n * If the avatar is typing, then the loading indicator will be displayed.\n * If the counter type avatar is set to a negative number, then we will display 0.\n * The presence indicator will be hidden when the counter property is set.\n *\n * @dependency mdc-icon\n * @dependency mdc-presence\n * @dependency mdc-text\n *\n * @tagname mdc-avatar\n *\n * @cssproperty --mdc-avatar-default-background-color - Allows customization of the default background color.\n * @cssproperty --mdc-avatar-default-foreground-color - Allows customization of the default foreground color.\n * @cssproperty --mdc-avatar-loading-indicator-background-color -\n * Allows customization of the loading indicator background color.\n * @cssproperty --mdc-avatar-loading-indicator-foreground-color -\n * Allows customization of the loading indicator foreground color.\n * @cssproperty --mdc-avatar-loading-overlay-background-color -\n * Allows customization of the loading overlay background color.\n */",
1036
+ "tagName": "mdc-badge",
1037
+ "jsDoc": "/**\n * The `mdc-badge` component is a versatile UI element used to\n * display dot, icons, counters, success, warning and error type badge.\n *\n * Supported badge types:\n * - `dot`: Displays a dot notification badge with a blue color.\n * - `icon`: Displays a badge with a specified icon using the `icon-name` attribute.\n * - `counter`: Displays a badge with a counter value. If the counter exceeds the `max-counter`,\n * it shows `maxCounter+`. The maximum value of the counter is 999 and anything above that will be set to `999+`.\n * - `success`: Displays a success badge with a check circle icon and green color.\n * - `warning`: Displays a warning badge with a warning icon and yellow color.\n * - `error`: Displays a error badge with a error legacy icon and red color.\n *\n * For `icon`, `success`, `warning` and `error` types, the `mdc-icon` component is used to render the icon.\n *\n * For the `counter` type, the `mdc-text` component is used to render the counter value.\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @tagname mdc-badge\n */",
430
1038
  "customElement": true
431
1039
  }
432
1040
  ],
@@ -435,8 +1043,8 @@
435
1043
  "kind": "js",
436
1044
  "name": "default",
437
1045
  "declaration": {
438
- "name": "Avatar",
439
- "module": "components/avatar/avatar.component.js"
1046
+ "name": "Badge",
1047
+ "module": "components/badge/badge.component.js"
440
1048
  }
441
1049
  }
442
1050
  ]
@@ -2179,6 +2787,273 @@
2179
2787
  }
2180
2788
  }
2181
2789
  ]
2790
+ },
2791
+ {
2792
+ "kind": "javascript-module",
2793
+ "path": "utils/mixins/AvatarComponentMixin.js",
2794
+ "declarations": [
2795
+ {
2796
+ "kind": "mixin",
2797
+ "description": "",
2798
+ "name": "AvatarComponentMixin",
2799
+ "members": [
2800
+ {
2801
+ "kind": "field",
2802
+ "name": "src",
2803
+ "type": {
2804
+ "text": "string | undefined"
2805
+ },
2806
+ "description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
2807
+ "attribute": "src"
2808
+ },
2809
+ {
2810
+ "kind": "field",
2811
+ "name": "initials",
2812
+ "type": {
2813
+ "text": "string | undefined"
2814
+ },
2815
+ "description": "The initials to be displayed for the avatar.",
2816
+ "attribute": "initials"
2817
+ },
2818
+ {
2819
+ "kind": "field",
2820
+ "name": "presence",
2821
+ "type": {
2822
+ "text": "PresenceType | undefined"
2823
+ },
2824
+ "description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
2825
+ "attribute": "presence"
2826
+ },
2827
+ {
2828
+ "kind": "field",
2829
+ "name": "size",
2830
+ "type": {
2831
+ "text": "AvatarSize"
2832
+ },
2833
+ "description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
2834
+ "default": "32",
2835
+ "attribute": "size",
2836
+ "reflects": true
2837
+ },
2838
+ {
2839
+ "kind": "field",
2840
+ "name": "iconName",
2841
+ "type": {
2842
+ "text": "IconNames | undefined"
2843
+ },
2844
+ "description": "Name of the icon to be displayed inside the Avatar.\nMust be a valid icon name.",
2845
+ "attribute": "icon-name"
2846
+ },
2847
+ {
2848
+ "kind": "field",
2849
+ "name": "counter",
2850
+ "type": {
2851
+ "text": "number | undefined"
2852
+ },
2853
+ "description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
2854
+ "attribute": "counter"
2855
+ },
2856
+ {
2857
+ "kind": "field",
2858
+ "name": "isTyping",
2859
+ "type": {
2860
+ "text": "boolean"
2861
+ },
2862
+ "default": "false",
2863
+ "description": "Represents the typing indicator when the user is typing.",
2864
+ "attribute": "is-typing"
2865
+ }
2866
+ ],
2867
+ "attributes": [
2868
+ {
2869
+ "name": "src",
2870
+ "type": {
2871
+ "text": "string | undefined"
2872
+ },
2873
+ "description": "The src is the url which will be used to display the avatar.\nWhen the src is loading, we will display the initials as a placeholder.",
2874
+ "fieldName": "src"
2875
+ },
2876
+ {
2877
+ "name": "initials",
2878
+ "type": {
2879
+ "text": "string | undefined"
2880
+ },
2881
+ "description": "The initials to be displayed for the avatar.",
2882
+ "fieldName": "initials"
2883
+ },
2884
+ {
2885
+ "name": "presence",
2886
+ "type": {
2887
+ "text": "PresenceType | undefined"
2888
+ },
2889
+ "description": "The presence is the status which can be used to display the\nactivity state of a user or a space within an avatar component.\n\nAcceptable values include:\n- `active`\n- `away`\n- `away-calling`\n- `busy`\n- `dnd`\n- `meeting`\n- `on-call`\n- `on-device`\n- `on-mobile`\n- `pause`\n- `pto`\n- `presenting`\n- `quiet`\n- `scheduled`",
2890
+ "fieldName": "presence"
2891
+ },
2892
+ {
2893
+ "name": "size",
2894
+ "type": {
2895
+ "text": "AvatarSize"
2896
+ },
2897
+ "description": "Acceptable values include (size in px unit):\n- 24\n- 32\n- 48\n- 64\n- 72\n- 88\n- 124",
2898
+ "default": "32",
2899
+ "fieldName": "size"
2900
+ },
2901
+ {
2902
+ "name": "icon-name",
2903
+ "type": {
2904
+ "text": "IconNames | undefined"
2905
+ },
2906
+ "description": "Name of the icon to be displayed inside the Avatar.\nMust be a valid icon name.",
2907
+ "fieldName": "iconName"
2908
+ },
2909
+ {
2910
+ "name": "counter",
2911
+ "type": {
2912
+ "text": "number | undefined"
2913
+ },
2914
+ "description": "The counter is the number which can be displayed on the avatar.\nThe maximum number is 99 and if the given number is greater than 99,\nthen the avatar will be displayed as `99+`.\nIf the given number is a negative number,\nthen the avatar will be displayed as `0`.",
2915
+ "fieldName": "counter"
2916
+ },
2917
+ {
2918
+ "name": "is-typing",
2919
+ "type": {
2920
+ "text": "boolean"
2921
+ },
2922
+ "default": "false",
2923
+ "description": "Represents the typing indicator when the user is typing.",
2924
+ "fieldName": "isTyping"
2925
+ }
2926
+ ],
2927
+ "parameters": [
2928
+ {
2929
+ "name": "superClass",
2930
+ "type": {
2931
+ "text": "T"
2932
+ }
2933
+ }
2934
+ ]
2935
+ }
2936
+ ],
2937
+ "exports": [
2938
+ {
2939
+ "kind": "js",
2940
+ "name": "AvatarComponentMixin",
2941
+ "declaration": {
2942
+ "name": "AvatarComponentMixin",
2943
+ "module": "utils/mixins/AvatarComponentMixin.js"
2944
+ }
2945
+ }
2946
+ ]
2947
+ },
2948
+ {
2949
+ "kind": "javascript-module",
2950
+ "path": "utils/mixins/DisabledMixin.js",
2951
+ "declarations": [
2952
+ {
2953
+ "kind": "mixin",
2954
+ "description": "",
2955
+ "name": "DisabledMixin",
2956
+ "members": [
2957
+ {
2958
+ "kind": "field",
2959
+ "name": "disabled",
2960
+ "type": {
2961
+ "text": "boolean"
2962
+ },
2963
+ "privacy": "public",
2964
+ "default": "false",
2965
+ "attribute": "disabled",
2966
+ "reflects": true
2967
+ }
2968
+ ],
2969
+ "attributes": [
2970
+ {
2971
+ "name": "disabled",
2972
+ "type": {
2973
+ "text": "boolean"
2974
+ },
2975
+ "default": "false",
2976
+ "fieldName": "disabled"
2977
+ }
2978
+ ],
2979
+ "parameters": [
2980
+ {
2981
+ "name": "superClass",
2982
+ "type": {
2983
+ "text": "T"
2984
+ }
2985
+ }
2986
+ ]
2987
+ }
2988
+ ],
2989
+ "exports": [
2990
+ {
2991
+ "kind": "js",
2992
+ "name": "DisabledMixin",
2993
+ "declaration": {
2994
+ "name": "DisabledMixin",
2995
+ "module": "utils/mixins/DisabledMixin.js"
2996
+ }
2997
+ }
2998
+ ]
2999
+ },
3000
+ {
3001
+ "kind": "javascript-module",
3002
+ "path": "utils/mixins/TabIndexMixin.js",
3003
+ "declarations": [
3004
+ {
3005
+ "kind": "mixin",
3006
+ "description": "",
3007
+ "name": "TabIndexMixin",
3008
+ "members": [
3009
+ {
3010
+ "kind": "field",
3011
+ "name": "tabIndex",
3012
+ "type": {
3013
+ "text": "number"
3014
+ },
3015
+ "privacy": "public",
3016
+ "default": "0",
3017
+ "attribute": "tabindex",
3018
+ "reflects": true
3019
+ }
3020
+ ],
3021
+ "attributes": [
3022
+ {
3023
+ "name": "tabindex",
3024
+ "type": {
3025
+ "text": "number"
3026
+ },
3027
+ "default": "0",
3028
+ "fieldName": "tabIndex"
3029
+ }
3030
+ ],
3031
+ "parameters": [
3032
+ {
3033
+ "name": "superClass",
3034
+ "type": {
3035
+ "text": "T"
3036
+ }
3037
+ }
3038
+ ]
3039
+ }
3040
+ ],
3041
+ "exports": [
3042
+ {
3043
+ "kind": "js",
3044
+ "name": "TabIndexMixin",
3045
+ "declaration": {
3046
+ "name": "TabIndexMixin",
3047
+ "module": "utils/mixins/TabIndexMixin.js"
3048
+ }
3049
+ }
3050
+ ]
3051
+ },
3052
+ {
3053
+ "kind": "javascript-module",
3054
+ "path": "utils/mixins/index.types.js",
3055
+ "declarations": [],
3056
+ "exports": []
2182
3057
  }
2183
3058
  ]
2184
3059
  }