@momentum-design/components 0.85.4 → 0.85.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,6 +19,8 @@ import type { VariantType } from './alertchip.types';
19
19
  * @cssproperty --mdc-chip-border-color - The border color of the alertchip
20
20
  * @cssproperty --mdc-chip-background-color - The background color of the alertchip
21
21
  *
22
+ * @csspart icon - The alert icon
23
+ * @csspart label - The text label of the alertchip
22
24
  */
23
25
  declare class AlertChip extends Buttonsimple {
24
26
  /**
@@ -32,6 +32,8 @@ import { getAlertIcon } from './alertchip.utils';
32
32
  * @cssproperty --mdc-chip-border-color - The border color of the alertchip
33
33
  * @cssproperty --mdc-chip-background-color - The background color of the alertchip
34
34
  *
35
+ * @csspart icon - The alert icon
36
+ * @csspart label - The text label of the alertchip
35
37
  */
36
38
  class AlertChip extends Buttonsimple {
37
39
  constructor() {
@@ -36,6 +36,12 @@ declare const Avatar_base: import("../../utils/mixins/index.types").Constructor<
36
36
  * Allows customization of the loading indicator foreground color.
37
37
  * @cssproperty --mdc-avatar-loading-overlay-background-color -
38
38
  * Allows customization of the loading overlay background color.
39
+ *
40
+ * @csspart content - The main content of the avatar.
41
+ * @csspart photo - The photo of the avatar.
42
+ * @csspart presence - The presence indicator of the avatar.
43
+ * @csspart loading-wrapper - The wrapper for the loading indicator.
44
+ * @csspart loader - The loading indicator of the avatar.
39
45
  */
40
46
  declare class Avatar extends Avatar_base {
41
47
  /**
@@ -50,6 +50,12 @@ import { getAvatarIconSize, getAvatarTextFontSize, getPresenceSize } from './ava
50
50
  * Allows customization of the loading indicator foreground color.
51
51
  * @cssproperty --mdc-avatar-loading-overlay-background-color -
52
52
  * Allows customization of the loading overlay background color.
53
+ *
54
+ * @csspart content - The main content of the avatar.
55
+ * @csspart photo - The photo of the avatar.
56
+ * @csspart presence - The presence indicator of the avatar.
57
+ * @csspart loading-wrapper - The wrapper for the loading indicator.
58
+ * @csspart loader - The loading indicator of the avatar.
53
59
  */
54
60
  class Avatar extends AvatarComponentMixin(IconNameMixin(Component)) {
55
61
  constructor() {
@@ -8,6 +8,8 @@ declare const AvatarButton_base: import("../../utils/mixins/index.types").Constr
8
8
  * This component is made by extending `buttonsimple` class.
9
9
  * The button component acts as a wrapper for the avatar component.
10
10
  *
11
+ * To override styles of the avatar inside, use the specified css parts.
12
+ *
11
13
  * @dependency mdc-avatar
12
14
  *
13
15
  * @event click - (React: onClick) This event is dispatched when the avatarbutton is clicked.
@@ -20,6 +22,13 @@ declare const AvatarButton_base: import("../../utils/mixins/index.types").Constr
20
22
  * @cssproperty --mdc-avatarbutton-overlay-background-color-rest - Background color of the overlay in rest state
21
23
  * @cssproperty --mdc-avatarbutton-overlay-background-color-hover - Background color of the overlay in hover state
22
24
  * @cssproperty --mdc-avatarbutton-overlay-background-color-active - Background color of the overlay in active state
25
+ *
26
+ * @csspart overlay - The overlay part of the avatar button.
27
+ * @csspart content - The main content of the avatar.
28
+ * @csspart photo - The photo part of the avatar.
29
+ * @csspart presence - The presence indicator part of the avatar.
30
+ * @csspart loading-wrapper - The wrapper for the loading indicator of the avatar.
31
+ * @csspart loader - The loading indicator part of the avatar.
23
32
  */
24
33
  declare class AvatarButton extends AvatarButton_base {
25
34
  /**
@@ -23,6 +23,8 @@ import styles from './avatarbutton.styles';
23
23
  * This component is made by extending `buttonsimple` class.
24
24
  * The button component acts as a wrapper for the avatar component.
25
25
  *
26
+ * To override styles of the avatar inside, use the specified css parts.
27
+ *
26
28
  * @dependency mdc-avatar
27
29
  *
28
30
  * @event click - (React: onClick) This event is dispatched when the avatarbutton is clicked.
@@ -35,6 +37,13 @@ import styles from './avatarbutton.styles';
35
37
  * @cssproperty --mdc-avatarbutton-overlay-background-color-rest - Background color of the overlay in rest state
36
38
  * @cssproperty --mdc-avatarbutton-overlay-background-color-hover - Background color of the overlay in hover state
37
39
  * @cssproperty --mdc-avatarbutton-overlay-background-color-active - Background color of the overlay in active state
40
+ *
41
+ * @csspart overlay - The overlay part of the avatar button.
42
+ * @csspart content - The main content of the avatar.
43
+ * @csspart photo - The photo part of the avatar.
44
+ * @csspart presence - The presence indicator part of the avatar.
45
+ * @csspart loading-wrapper - The wrapper for the loading indicator of the avatar.
46
+ * @csspart loader - The loading indicator part of the avatar.
38
47
  */
39
48
  class AvatarButton extends AvatarComponentMixin(IconNameMixin(Buttonsimple)) {
40
49
  constructor() {
@@ -65,6 +74,7 @@ class AvatarButton extends AvatarComponentMixin(IconNameMixin(Buttonsimple)) {
65
74
  return html `
66
75
  <div part="overlay" aria-hidden="true"></div>
67
76
  <mdc-avatar
77
+ exportparts="content, photo, presence, loading-wrapper, loader"
68
78
  ?is-typing="${this.isTyping}"
69
79
  counter="${ifDefined(this.counter)}"
70
80
  icon-name="${ifDefined(this.iconName)}"
@@ -46,6 +46,8 @@ import type { IconNames } from './icon.types';
46
46
  * @cssproperty --mdc-icon-fill-color - Allows customization of the default fill color.
47
47
  * @cssproperty --mdc-icon-size - Allows customization of the icon size.
48
48
  * @cssproperty --mdc-icon-border-radius - Allows customization of the icon border radius.
49
+ *
50
+ * @csspart icon - The svg inside the icon element.
49
51
  */
50
52
  declare class Icon extends Component {
51
53
  private iconData?;
@@ -60,6 +60,8 @@ import { DEFAULTS } from './icon.constants';
60
60
  * @cssproperty --mdc-icon-fill-color - Allows customization of the default fill color.
61
61
  * @cssproperty --mdc-icon-size - Allows customization of the icon size.
62
62
  * @cssproperty --mdc-icon-border-radius - Allows customization of the icon border radius.
63
+ *
64
+ * @csspart icon - The svg inside the icon element.
63
65
  */
64
66
  class Icon extends Component {
65
67
  constructor() {
@@ -28,6 +28,16 @@
28
28
  "name": "--mdc-chip-background-color"
29
29
  }
30
30
  ],
31
+ "cssParts": [
32
+ {
33
+ "description": "The alert icon",
34
+ "name": "icon"
35
+ },
36
+ {
37
+ "description": "The text label of the alertchip",
38
+ "name": "label"
39
+ }
40
+ ],
31
41
  "members": [
32
42
  {
33
43
  "kind": "field",
@@ -467,7 +477,7 @@
467
477
  "module": "/src/components/buttonsimple/buttonsimple.component"
468
478
  },
469
479
  "tagName": "mdc-alertchip",
470
- "jsDoc": "/**\n * mdc-alertchip component is an interactive chip that consumers can use to represent an alert.\n *\n * - It supports a leading icon along with label.\n * - It supports 5 variants of alerts - neutral, warning, error, success, and informational\n *\n * This component is built by extending Buttonsimple.\n *\n * @tagname mdc-alertchip\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @cssproperty --mdc-chip-color - The color of the label text\n * @cssproperty --mdc-chip-icon-color - The color of the icon\n * @cssproperty --mdc-chip-border-color - The border color of the alertchip\n * @cssproperty --mdc-chip-background-color - The background color of the alertchip\n *\n */",
480
+ "jsDoc": "/**\n * mdc-alertchip component is an interactive chip that consumers can use to represent an alert.\n *\n * - It supports a leading icon along with label.\n * - It supports 5 variants of alerts - neutral, warning, error, success, and informational\n *\n * This component is built by extending Buttonsimple.\n *\n * @tagname mdc-alertchip\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @cssproperty --mdc-chip-color - The color of the label text\n * @cssproperty --mdc-chip-icon-color - The color of the icon\n * @cssproperty --mdc-chip-border-color - The border color of the alertchip\n * @cssproperty --mdc-chip-background-color - The background color of the alertchip\n *\n * @csspart icon - The alert icon\n * @csspart label - The text label of the alertchip\n */",
471
481
  "customElement": true,
472
482
  "events": [
473
483
  {
@@ -823,6 +833,28 @@
823
833
  "name": "--mdc-avatar-loading-overlay-background-color"
824
834
  }
825
835
  ],
836
+ "cssParts": [
837
+ {
838
+ "description": "The main content of the avatar.",
839
+ "name": "content"
840
+ },
841
+ {
842
+ "description": "The photo of the avatar.",
843
+ "name": "photo"
844
+ },
845
+ {
846
+ "description": "The presence indicator of the avatar.",
847
+ "name": "presence"
848
+ },
849
+ {
850
+ "description": "The wrapper for the loading indicator.",
851
+ "name": "loading-wrapper"
852
+ },
853
+ {
854
+ "description": "The loading indicator of the avatar.",
855
+ "name": "loader"
856
+ }
857
+ ],
826
858
  "members": [
827
859
  {
828
860
  "kind": "field",
@@ -934,7 +966,7 @@
934
966
  "module": "/src/models"
935
967
  },
936
968
  "tagName": "mdc-avatar",
937
- "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 */",
969
+ "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 *\n * @csspart content - The main content of the avatar.\n * @csspart photo - The photo of the avatar.\n * @csspart presence - The presence indicator of the avatar.\n * @csspart loading-wrapper - The wrapper for the loading indicator.\n * @csspart loader - The loading indicator of the avatar.\n */",
938
970
  "customElement": true,
939
971
  "attributes": [
940
972
  {
@@ -1043,7 +1075,7 @@
1043
1075
  "declarations": [
1044
1076
  {
1045
1077
  "kind": "class",
1046
- "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.",
1078
+ "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.\n\nTo override styles of the avatar inside, use the specified css parts.",
1047
1079
  "name": "AvatarButton",
1048
1080
  "cssProperties": [
1049
1081
  {
@@ -1059,6 +1091,32 @@
1059
1091
  "name": "--mdc-avatarbutton-overlay-background-color-active"
1060
1092
  }
1061
1093
  ],
1094
+ "cssParts": [
1095
+ {
1096
+ "description": "The overlay part of the avatar button.",
1097
+ "name": "overlay"
1098
+ },
1099
+ {
1100
+ "description": "The main content of the avatar.",
1101
+ "name": "content"
1102
+ },
1103
+ {
1104
+ "description": "The photo part of the avatar.",
1105
+ "name": "photo"
1106
+ },
1107
+ {
1108
+ "description": "The presence indicator part of the avatar.",
1109
+ "name": "presence"
1110
+ },
1111
+ {
1112
+ "description": "The wrapper for the loading indicator of the avatar.",
1113
+ "name": "loading-wrapper"
1114
+ },
1115
+ {
1116
+ "description": "The loading indicator part of the avatar.",
1117
+ "name": "loader"
1118
+ }
1119
+ ],
1062
1120
  "members": [
1063
1121
  {
1064
1122
  "kind": "field",
@@ -1692,7 +1750,7 @@
1692
1750
  "module": "/src/components/buttonsimple/buttonsimple.component"
1693
1751
  },
1694
1752
  "tagName": "mdc-avatarbutton",
1695
- "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 * @event click - (React: onClick) This event is dispatched when the avatarbutton is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the avatarbutton.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the avatarbutton.\n * @event focus - (React: onFocus) This event is dispatched when the avatarbutton receives focus.\n *\n * @tagname mdc-avatarbutton\n *\n * @cssproperty --mdc-avatarbutton-overlay-background-color-rest - Background color of the overlay in rest state\n * @cssproperty --mdc-avatarbutton-overlay-background-color-hover - Background color of the overlay in hover state\n * @cssproperty --mdc-avatarbutton-overlay-background-color-active - Background color of the overlay in active state\n */",
1753
+ "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 * To override styles of the avatar inside, use the specified css parts.\n *\n * @dependency mdc-avatar\n *\n * @event click - (React: onClick) This event is dispatched when the avatarbutton is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the avatarbutton.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the avatarbutton.\n * @event focus - (React: onFocus) This event is dispatched when the avatarbutton receives focus.\n *\n * @tagname mdc-avatarbutton\n *\n * @cssproperty --mdc-avatarbutton-overlay-background-color-rest - Background color of the overlay in rest state\n * @cssproperty --mdc-avatarbutton-overlay-background-color-hover - Background color of the overlay in hover state\n * @cssproperty --mdc-avatarbutton-overlay-background-color-active - Background color of the overlay in active state\n *\n * @csspart overlay - The overlay part of the avatar button.\n * @csspart content - The main content of the avatar.\n * @csspart photo - The photo part of the avatar.\n * @csspart presence - The presence indicator part of the avatar.\n * @csspart loading-wrapper - The wrapper for the loading indicator of the avatar.\n * @csspart loader - The loading indicator part of the avatar.\n */",
1696
1754
  "customElement": true
1697
1755
  }
1698
1756
  ],
@@ -12034,6 +12092,12 @@
12034
12092
  "name": "--mdc-icon-border-radius"
12035
12093
  }
12036
12094
  ],
12095
+ "cssParts": [
12096
+ {
12097
+ "description": "The svg inside the icon element.",
12098
+ "name": "icon"
12099
+ }
12100
+ ],
12037
12101
  "members": [
12038
12102
  {
12039
12103
  "kind": "field",
@@ -12239,7 +12303,7 @@
12239
12303
  "module": "/src/models"
12240
12304
  },
12241
12305
  "tagName": "mdc-icon",
12242
- "jsDoc": "/**\n * Icon component that dynamically displays SVG icons based on a valid name.\n *\n * This component must be mounted within an `IconProvider` component.\n *\n * The `IconProvider` defines the source URL from which icons are consumed.\n * The `Icon` component accepts a `name` attribute, which corresponds to\n * the file name of the icon to be loaded from the specified URL.\n *\n * Once fetched, the icon will be rendered. If the fetching process is unsuccessful,\n * no icon will be displayed.\n *\n * The `size` attribute allows for dynamic sizing of the icon based on the provided\n * `length-unit` attribute. This unit can either come from the `IconProvider`\n * or can be overridden for each individual icon. For example:\n * if `size = 1` and `length-unit = 'em'`, the dimensions of the icon will be\n * `width: 1em; height: 1em`.\n *\n * Regarding accessibility, there are three types of icons: decorative, informative and informative standalone.\n *\n * ### Decorative Icons\n * - Decorative icons do not convey any essential information to the content of a page.\n * - They should be hidden from screen readers (SR) to prevent confusion for users.\n * - For decorative icons, an `aria-label` is not required, and the `role` will be set to null.\n *\n * ### Informative Icons\n * - Informative icons convey important information that is not adequately represented\n * by surrounding text or components.\n * - They provide valuable context and must be announced by assistive technologies.\n * - For informative icons, an `aria-label` is required, and the `role` will be set to \"img\" automatically.\n * - If an `aria-label` is provided, the role will be set to 'img'; if it is absent,\n * the role will be unset.\n *\n * ### Informative Standalone Icons\n * - If an icon is informative (as mentioned above) and does not belong to a button (=standalone), it must\n * have a Tooltip that describes what it means.\n * - For informative standalone icons, an `aria-label` & `tabindex=\"0\"` is required,\n * and the `role` will be set to \"img\" automatically.\n * - **Only use this when a Icon is standalone and is not part of a button or other interactive elements.**\n *\n * @tagname mdc-icon\n *\n * @cssproperty --mdc-icon-fill-color - Allows customization of the default fill color.\n * @cssproperty --mdc-icon-size - Allows customization of the icon size.\n * @cssproperty --mdc-icon-border-radius - Allows customization of the icon border radius.\n */",
12306
+ "jsDoc": "/**\n * Icon component that dynamically displays SVG icons based on a valid name.\n *\n * This component must be mounted within an `IconProvider` component.\n *\n * The `IconProvider` defines the source URL from which icons are consumed.\n * The `Icon` component accepts a `name` attribute, which corresponds to\n * the file name of the icon to be loaded from the specified URL.\n *\n * Once fetched, the icon will be rendered. If the fetching process is unsuccessful,\n * no icon will be displayed.\n *\n * The `size` attribute allows for dynamic sizing of the icon based on the provided\n * `length-unit` attribute. This unit can either come from the `IconProvider`\n * or can be overridden for each individual icon. For example:\n * if `size = 1` and `length-unit = 'em'`, the dimensions of the icon will be\n * `width: 1em; height: 1em`.\n *\n * Regarding accessibility, there are three types of icons: decorative, informative and informative standalone.\n *\n * ### Decorative Icons\n * - Decorative icons do not convey any essential information to the content of a page.\n * - They should be hidden from screen readers (SR) to prevent confusion for users.\n * - For decorative icons, an `aria-label` is not required, and the `role` will be set to null.\n *\n * ### Informative Icons\n * - Informative icons convey important information that is not adequately represented\n * by surrounding text or components.\n * - They provide valuable context and must be announced by assistive technologies.\n * - For informative icons, an `aria-label` is required, and the `role` will be set to \"img\" automatically.\n * - If an `aria-label` is provided, the role will be set to 'img'; if it is absent,\n * the role will be unset.\n *\n * ### Informative Standalone Icons\n * - If an icon is informative (as mentioned above) and does not belong to a button (=standalone), it must\n * have a Tooltip that describes what it means.\n * - For informative standalone icons, an `aria-label` & `tabindex=\"0\"` is required,\n * and the `role` will be set to \"img\" automatically.\n * - **Only use this when a Icon is standalone and is not part of a button or other interactive elements.**\n *\n * @tagname mdc-icon\n *\n * @cssproperty --mdc-icon-fill-color - Allows customization of the default fill color.\n * @cssproperty --mdc-icon-size - Allows customization of the icon size.\n * @cssproperty --mdc-icon-border-radius - Allows customization of the icon border radius.\n *\n * @csspart icon - The svg inside the icon element.\n */",
12243
12307
  "customElement": true
12244
12308
  }
12245
12309
  ],
@@ -18,6 +18,8 @@ import Component from '../../components/alertchip';
18
18
  * @cssproperty --mdc-chip-border-color - The border color of the alertchip
19
19
  * @cssproperty --mdc-chip-background-color - The background color of the alertchip
20
20
  *
21
+ * @csspart icon - The alert icon
22
+ * @csspart label - The text label of the alertchip
21
23
  */
22
24
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
23
25
  onClick: EventName<MouseEvent>;
@@ -20,6 +20,8 @@ import { TAG_NAME } from '../../components/alertchip/alertchip.constants';
20
20
  * @cssproperty --mdc-chip-border-color - The border color of the alertchip
21
21
  * @cssproperty --mdc-chip-background-color - The background color of the alertchip
22
22
  *
23
+ * @csspart icon - The alert icon
24
+ * @csspart label - The text label of the alertchip
23
25
  */
24
26
  const reactWrapper = createComponent({
25
27
  tagName: TAG_NAME,
@@ -33,6 +33,12 @@ import Component from '../../components/avatar';
33
33
  * Allows customization of the loading indicator foreground color.
34
34
  * @cssproperty --mdc-avatar-loading-overlay-background-color -
35
35
  * Allows customization of the loading overlay background color.
36
+ *
37
+ * @csspart content - The main content of the avatar.
38
+ * @csspart photo - The photo of the avatar.
39
+ * @csspart presence - The presence indicator of the avatar.
40
+ * @csspart loading-wrapper - The wrapper for the loading indicator.
41
+ * @csspart loader - The loading indicator of the avatar.
36
42
  */
37
43
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
38
44
  export default reactWrapper;
@@ -36,6 +36,12 @@ import { TAG_NAME } from '../../components/avatar/avatar.constants';
36
36
  * Allows customization of the loading indicator foreground color.
37
37
  * @cssproperty --mdc-avatar-loading-overlay-background-color -
38
38
  * Allows customization of the loading overlay background color.
39
+ *
40
+ * @csspart content - The main content of the avatar.
41
+ * @csspart photo - The photo of the avatar.
42
+ * @csspart presence - The presence indicator of the avatar.
43
+ * @csspart loading-wrapper - The wrapper for the loading indicator.
44
+ * @csspart loader - The loading indicator of the avatar.
39
45
  */
40
46
  const reactWrapper = createComponent({
41
47
  tagName: TAG_NAME,
@@ -6,6 +6,8 @@ import Component from '../../components/avatarbutton';
6
6
  * This component is made by extending `buttonsimple` class.
7
7
  * The button component acts as a wrapper for the avatar component.
8
8
  *
9
+ * To override styles of the avatar inside, use the specified css parts.
10
+ *
9
11
  * @dependency mdc-avatar
10
12
  *
11
13
  * @event click - (React: onClick) This event is dispatched when the avatarbutton is clicked.
@@ -18,6 +20,13 @@ import Component from '../../components/avatarbutton';
18
20
  * @cssproperty --mdc-avatarbutton-overlay-background-color-rest - Background color of the overlay in rest state
19
21
  * @cssproperty --mdc-avatarbutton-overlay-background-color-hover - Background color of the overlay in hover state
20
22
  * @cssproperty --mdc-avatarbutton-overlay-background-color-active - Background color of the overlay in active state
23
+ *
24
+ * @csspart overlay - The overlay part of the avatar button.
25
+ * @csspart content - The main content of the avatar.
26
+ * @csspart photo - The photo part of the avatar.
27
+ * @csspart presence - The presence indicator part of the avatar.
28
+ * @csspart loading-wrapper - The wrapper for the loading indicator of the avatar.
29
+ * @csspart loader - The loading indicator part of the avatar.
21
30
  */
22
31
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
23
32
  onClick: EventName<MouseEvent>;
@@ -8,6 +8,8 @@ import { TAG_NAME } from '../../components/avatarbutton/avatarbutton.constants';
8
8
  * This component is made by extending `buttonsimple` class.
9
9
  * The button component acts as a wrapper for the avatar component.
10
10
  *
11
+ * To override styles of the avatar inside, use the specified css parts.
12
+ *
11
13
  * @dependency mdc-avatar
12
14
  *
13
15
  * @event click - (React: onClick) This event is dispatched when the avatarbutton is clicked.
@@ -20,6 +22,13 @@ import { TAG_NAME } from '../../components/avatarbutton/avatarbutton.constants';
20
22
  * @cssproperty --mdc-avatarbutton-overlay-background-color-rest - Background color of the overlay in rest state
21
23
  * @cssproperty --mdc-avatarbutton-overlay-background-color-hover - Background color of the overlay in hover state
22
24
  * @cssproperty --mdc-avatarbutton-overlay-background-color-active - Background color of the overlay in active state
25
+ *
26
+ * @csspart overlay - The overlay part of the avatar button.
27
+ * @csspart content - The main content of the avatar.
28
+ * @csspart photo - The photo part of the avatar.
29
+ * @csspart presence - The presence indicator part of the avatar.
30
+ * @csspart loading-wrapper - The wrapper for the loading indicator of the avatar.
31
+ * @csspart loader - The loading indicator part of the avatar.
23
32
  */
24
33
  const reactWrapper = createComponent({
25
34
  tagName: TAG_NAME,
@@ -44,6 +44,8 @@ import Component from '../../components/icon';
44
44
  * @cssproperty --mdc-icon-fill-color - Allows customization of the default fill color.
45
45
  * @cssproperty --mdc-icon-size - Allows customization of the icon size.
46
46
  * @cssproperty --mdc-icon-border-radius - Allows customization of the icon border radius.
47
+ *
48
+ * @csspart icon - The svg inside the icon element.
47
49
  */
48
50
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
49
51
  export default reactWrapper;
@@ -47,6 +47,8 @@ import { TAG_NAME } from '../../components/icon/icon.constants';
47
47
  * @cssproperty --mdc-icon-fill-color - Allows customization of the default fill color.
48
48
  * @cssproperty --mdc-icon-size - Allows customization of the icon size.
49
49
  * @cssproperty --mdc-icon-border-radius - Allows customization of the icon border radius.
50
+ *
51
+ * @csspart icon - The svg inside the icon element.
50
52
  */
51
53
  const reactWrapper = createComponent({
52
54
  tagName: TAG_NAME,
package/package.json CHANGED
@@ -41,5 +41,5 @@
41
41
  "lottie-web": "^5.12.2",
42
42
  "uuid": "^11.0.5"
43
43
  },
44
- "version": "0.85.4"
44
+ "version": "0.85.5"
45
45
  }