@momentum-design/components 0.84.3 → 0.84.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.
Files changed (185) hide show
  1. package/README.md +8 -3
  2. package/dist/browser/index.js +2241 -2299
  3. package/dist/browser/index.js.map +4 -4
  4. package/dist/components/alertchip/alertchip.component.d.ts +1 -1
  5. package/dist/components/alertchip/alertchip.component.js +2 -2
  6. package/dist/components/alertchip/alertchip.styles.js +22 -23
  7. package/dist/components/alertchip/alertchip.types.d.ts +1 -1
  8. package/dist/components/animation/animation.component.js +1 -1
  9. package/dist/components/animation/animation.styles.js +8 -5
  10. package/dist/components/appheader/appheader.component.js +12 -13
  11. package/dist/components/appheader/appheader.styles.js +0 -1
  12. package/dist/components/avatar/avatar.component.js +3 -16
  13. package/dist/components/avatar/avatar.constants.d.ts +1 -1
  14. package/dist/components/avatar/avatar.constants.js +1 -1
  15. package/dist/components/avatar/avatar.styles.js +129 -122
  16. package/dist/components/avatar/avatar.types.d.ts +1 -1
  17. package/dist/components/avatar/avatar.utils.d.ts +1 -1
  18. package/dist/components/avatar/avatar.utils.js +1 -1
  19. package/dist/components/avatarbutton/avatarbutton.component.d.ts +2 -2
  20. package/dist/components/avatarbutton/avatarbutton.component.js +2 -2
  21. package/dist/components/avatarbutton/avatarbutton.styles.js +34 -30
  22. package/dist/components/badge/badge.styles.js +9 -7
  23. package/dist/components/brandvisual/brandvisual.component.js +4 -4
  24. package/dist/components/bullet/bullet.component.d.ts +1 -1
  25. package/dist/components/bullet/bullet.component.js +2 -2
  26. package/dist/components/bullet/bullet.styles.js +3 -3
  27. package/dist/components/button/button.component.js +10 -4
  28. package/dist/components/button/button.utils.js +1 -1
  29. package/dist/components/buttongroup/buttongroup.component.js +1 -1
  30. package/dist/components/buttongroup/buttongroup.styles.js +68 -68
  31. package/dist/components/buttonlink/buttonlink.component.d.ts +5 -5
  32. package/dist/components/buttonlink/buttonlink.component.js +9 -9
  33. package/dist/components/buttonsimple/buttonsimple.component.js +2 -2
  34. package/dist/components/buttonsimple/buttonsimple.constants.d.ts +1 -1
  35. package/dist/components/buttonsimple/buttonsimple.constants.js +1 -1
  36. package/dist/components/buttonsimple/buttonsimple.styles.js +62 -57
  37. package/dist/components/card/card.component.d.ts +6 -6
  38. package/dist/components/card/card.component.js +15 -16
  39. package/dist/components/card/card.styles.js +24 -22
  40. package/dist/components/cardbutton/cardbutton.component.js +9 -12
  41. package/dist/components/cardbutton/cardbutton.styles.js +1 -1
  42. package/dist/components/cardcheckbox/cardcheckbox.component.d.ts +6 -6
  43. package/dist/components/cardcheckbox/cardcheckbox.component.js +30 -29
  44. package/dist/components/cardcheckbox/cardcheckbox.styles.js +10 -10
  45. package/dist/components/cardradio/cardradio.component.d.ts +12 -12
  46. package/dist/components/cardradio/cardradio.component.js +27 -30
  47. package/dist/components/cardradio/cardradio.styles.js +8 -8
  48. package/dist/components/checkbox/checkbox.component.js +7 -9
  49. package/dist/components/checkbox/checkbox.styles.js +62 -60
  50. package/dist/components/chip/chip.component.d.ts +1 -1
  51. package/dist/components/chip/chip.component.js +6 -11
  52. package/dist/components/chip/chip.styles.js +4 -2
  53. package/dist/components/dialog/dialog.component.d.ts +7 -2
  54. package/dist/components/dialog/dialog.component.js +43 -33
  55. package/dist/components/dialog/dialog.constants.d.ts +1 -0
  56. package/dist/components/dialog/dialog.constants.js +1 -0
  57. package/dist/components/dialog/dialog.styles.js +10 -12
  58. package/dist/components/divider/divider.component.js +6 -8
  59. package/dist/components/divider/divider.constants.d.ts +1 -1
  60. package/dist/components/divider/divider.constants.js +1 -1
  61. package/dist/components/divider/divider.styles.js +5 -20
  62. package/dist/components/filterchip/filterchip.styles.js +4 -2
  63. package/dist/components/formfieldgroup/formfieldgroup.component.js +1 -4
  64. package/dist/components/formfieldgroup/formfieldgroup.styles.js +1 -2
  65. package/dist/components/formfieldwrapper/formfieldwrapper.component.js +19 -17
  66. package/dist/components/formfieldwrapper/formfieldwrapper.styles.js +2 -1
  67. package/dist/components/formfieldwrapper/formfieldwrapper.subcomponent.js +4 -4
  68. package/dist/components/icon/icon.component.js +7 -7
  69. package/dist/components/icon/icon.utils.d.ts +1 -1
  70. package/dist/components/icon/icon.utils.js +7 -7
  71. package/dist/components/iconprovider/iconprovider.component.js +7 -7
  72. package/dist/components/input/input.component.d.ts +5 -5
  73. package/dist/components/input/input.component.js +64 -62
  74. package/dist/components/input/input.styles.js +128 -117
  75. package/dist/components/inputchip/inputchip.component.js +14 -19
  76. package/dist/components/inputchip/inputchip.styles.js +5 -3
  77. package/dist/components/link/link.component.d.ts +1 -1
  78. package/dist/components/link/link.component.js +4 -8
  79. package/dist/components/link/link.constants.d.ts +1 -1
  80. package/dist/components/link/link.constants.js +1 -1
  81. package/dist/components/link/link.styles.js +12 -12
  82. package/dist/components/linksimple/linksimple.component.js +2 -4
  83. package/dist/components/linksimple/linksimple.styles.js +59 -57
  84. package/dist/components/list/list.component.js +12 -9
  85. package/dist/components/listitem/listitem.component.js +15 -11
  86. package/dist/components/listitem/listitem.styles.js +11 -6
  87. package/dist/components/marker/marker.component.js +1 -1
  88. package/dist/components/marker/marker.styles.js +2 -2
  89. package/dist/components/menubar/menubar.component.d.ts +19 -19
  90. package/dist/components/menubar/menubar.component.js +19 -19
  91. package/dist/components/menuitem/menuitem.component.js +15 -15
  92. package/dist/components/menuitem/menuitem.styles.js +3 -2
  93. package/dist/components/menuitemcheckbox/menuitemcheckbox.component.d.ts +1 -1
  94. package/dist/components/menuitemcheckbox/menuitemcheckbox.component.js +4 -11
  95. package/dist/components/menuitemradio/menuitemradio.component.js +1 -1
  96. package/dist/components/menupopover/menupopover.component.js +11 -11
  97. package/dist/components/menupopover/menupopover.utils.d.ts +1 -1
  98. package/dist/components/menupopover/menupopover.utils.js +3 -8
  99. package/dist/components/navitem/navitem.component.js +11 -19
  100. package/dist/components/navitem/navitem.styles.js +147 -143
  101. package/dist/components/navitemlist/navitemlist.component.js +2 -2
  102. package/dist/components/optgroup/optgroup.component.js +12 -9
  103. package/dist/components/option/option.component.js +11 -11
  104. package/dist/components/option/option.styles.js +1 -1
  105. package/dist/components/popover/popover.component.js +4 -4
  106. package/dist/components/popover/popover.stack.js +1 -1
  107. package/dist/components/popover/popover.styles.js +0 -1
  108. package/dist/components/popover/popover.utils.js +3 -4
  109. package/dist/components/presence/presence.component.d.ts +4 -4
  110. package/dist/components/presence/presence.component.js +4 -4
  111. package/dist/components/progressbar/progressbar.component.js +3 -4
  112. package/dist/components/progressbar/progressbar.styles.js +77 -71
  113. package/dist/components/progressspinner/progressspiner.utils.js +4 -4
  114. package/dist/components/progressspinner/progressspinner.component.js +38 -37
  115. package/dist/components/progressspinner/progressspinner.styles.js +1 -1
  116. package/dist/components/radio/radio.component.d.ts +41 -41
  117. package/dist/components/radio/radio.component.js +84 -83
  118. package/dist/components/radio/radio.styles.js +77 -75
  119. package/dist/components/radiogroup/radiogroup.component.js +1 -1
  120. package/dist/components/screenreaderannouncer/screenreaderannouncer.component.js +2 -2
  121. package/dist/components/screenreaderannouncer/screenreaderannouncer.styles.js +8 -6
  122. package/dist/components/searchfield/searchfield.component.js +23 -17
  123. package/dist/components/searchfield/searchfield.styles.js +11 -13
  124. package/dist/components/select/select.component.js +20 -23
  125. package/dist/components/select/select.styles.js +9 -9
  126. package/dist/components/sidenavigation/sidenavigation.component.d.ts +6 -6
  127. package/dist/components/sidenavigation/sidenavigation.component.js +39 -29
  128. package/dist/components/sidenavigation/sidenavigation.context.js +5 -5
  129. package/dist/components/sidenavigation/sidenavigation.styles.js +53 -53
  130. package/dist/components/skeleton/skeleton.component.js +1 -4
  131. package/dist/components/skeleton/skeleton.constants.d.ts +1 -1
  132. package/dist/components/skeleton/skeleton.constants.js +1 -1
  133. package/dist/components/skeleton/skeleton.styles.js +4 -4
  134. package/dist/components/spinner/spinner.component.d.ts +7 -7
  135. package/dist/components/spinner/spinner.component.js +9 -9
  136. package/dist/components/spinner/spinner.styles.js +58 -53
  137. package/dist/components/staticcheckbox/staticcheckbox.component.js +10 -8
  138. package/dist/components/staticcheckbox/staticcheckbox.styles.js +52 -51
  139. package/dist/components/staticradio/staticradio.component.d.ts +8 -8
  140. package/dist/components/staticradio/staticradio.component.js +10 -11
  141. package/dist/components/staticradio/staticradio.styles.js +77 -75
  142. package/dist/components/statictoggle/statictoggle.component.d.ts +3 -3
  143. package/dist/components/statictoggle/statictoggle.component.js +3 -3
  144. package/dist/components/statictoggle/statictoggle.styles.js +71 -68
  145. package/dist/components/tab/tab.component.d.ts +1 -1
  146. package/dist/components/tab/tab.component.js +2 -2
  147. package/dist/components/tab/tab.styles.js +247 -245
  148. package/dist/components/tablist/tablist.component.js +11 -15
  149. package/dist/components/tablist/tablist.styles.js +27 -25
  150. package/dist/components/tablist/tablist.types.d.ts +1 -1
  151. package/dist/components/tablist/tablist.utils.js +4 -4
  152. package/dist/components/text/fonts.styles.js +49 -49
  153. package/dist/components/text/text.component.js +21 -11
  154. package/dist/components/text/text.types.d.ts +1 -1
  155. package/dist/components/textarea/textarea.component.d.ts +31 -31
  156. package/dist/components/textarea/textarea.component.js +54 -61
  157. package/dist/components/textarea/textarea.styles.js +123 -122
  158. package/dist/components/themeprovider/themeprovider.component.js +1 -1
  159. package/dist/components/themeprovider/themeprovider.styles.js +4 -4
  160. package/dist/components/toggle/toggle.component.d.ts +35 -35
  161. package/dist/components/toggle/toggle.component.js +62 -63
  162. package/dist/components/toggle/toggle.styles.js +77 -69
  163. package/dist/components/toggletip/toggletip.component.d.ts +7 -7
  164. package/dist/components/toggletip/toggletip.component.js +3 -2
  165. package/dist/components/tooltip/tooltip.component.js +1 -1
  166. package/dist/components/tooltip/tooltip.styles.js +0 -1
  167. package/dist/components/virtualizedlist/virtualizedlist.component.js +6 -14
  168. package/dist/components/virtualizedlist/virtualizedlist.helper.test.d.ts +1 -1
  169. package/dist/components/virtualizedlist/virtualizedlist.helper.test.js +14 -11
  170. package/dist/components/virtualizedlist/virtualizedlist.styles.js +4 -4
  171. package/dist/custom-elements.json +239 -228
  172. package/dist/index.js +1 -0
  173. package/dist/models/component/index.d.ts +1 -1
  174. package/dist/models/index.d.ts +2 -2
  175. package/dist/models/index.js +1 -1
  176. package/dist/react/index.d.ts +3 -3
  177. package/dist/react/index.js +3 -3
  178. package/dist/utils/mixins/ButtonComponentMixin.js +10 -10
  179. package/dist/utils/mixins/CardAndDialogFooterMixin.js +21 -22
  180. package/dist/utils/mixins/FocusTrapMixin.js +15 -12
  181. package/dist/utils/mixins/IconNameMixin.d.ts +1 -1
  182. package/dist/utils/mixins/MenuMixin.js +23 -23
  183. package/dist/utils/mixins/PreventScrollMixin.d.ts +1 -1
  184. package/dist/utils/styles/index.js +12 -12
  185. package/package.json +1 -1
@@ -9,10 +9,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  };
10
10
  import { html, nothing } from 'lit';
11
11
  import { property } from 'lit/decorators.js';
12
- import styles from './inputchip.styles';
13
12
  import { Component } from '../../models';
14
13
  import { DisabledMixin } from '../../utils/mixins/DisabledMixin';
15
14
  import { IconNameMixin } from '../../utils/mixins/IconNameMixin';
15
+ import styles from './inputchip.styles';
16
16
  import { DEFAULTS } from './inputchip.constants';
17
17
  /**
18
18
  * mdc-inputchip component is an interactive chip that consumers can use to represent an input.
@@ -62,12 +62,7 @@ class InputChip extends IconNameMixin(DisabledMixin(Component)) {
62
62
  renderIcon() {
63
63
  if (!this.iconName)
64
64
  return nothing;
65
- return html `
66
- <mdc-icon
67
- name="${this.iconName}"
68
- length-unit="rem"
69
- size="1"></mdc-icon>
70
- `;
65
+ return html ` <mdc-icon name="${this.iconName}" length-unit="rem" size="1"></mdc-icon> `;
71
66
  }
72
67
  /**
73
68
  * Handles the behavior of the close button on click event.
@@ -78,18 +73,18 @@ class InputChip extends IconNameMixin(DisabledMixin(Component)) {
78
73
  }
79
74
  render() {
80
75
  return html `
81
- ${this.renderIcon()}
82
- <mdc-text part="label" type="${DEFAULTS.TEXT_TYPE}" tagname="${DEFAULTS.TAG_NAME}">${this.label}</mdc-text>
83
- <mdc-button
84
- ?disabled="${this.disabled}"
85
- variant="tertiary"
86
- part="close-icon"
87
- aria-label="${this.clearAriaLabel}"
88
- prefix-icon="${DEFAULTS.CLOSE_ICON}"
89
- size="20"
90
- @click="${this.handleClose}"
91
- ></mdc-button>
92
- `;
76
+ ${this.renderIcon()}
77
+ <mdc-text part="label" type="${DEFAULTS.TEXT_TYPE}" tagname="${DEFAULTS.TAG_NAME}">${this.label}</mdc-text>
78
+ <mdc-button
79
+ ?disabled="${this.disabled}"
80
+ variant="tertiary"
81
+ part="close-icon"
82
+ aria-label="${this.clearAriaLabel}"
83
+ prefix-icon="${DEFAULTS.CLOSE_ICON}"
84
+ size="20"
85
+ @click="${this.handleClose}"
86
+ ></mdc-button>
87
+ `;
93
88
  }
94
89
  }
95
90
  InputChip.styles = [...Component.styles, ...styles];
@@ -17,13 +17,15 @@ const styles = css `
17
17
  border-color: var(--mdc-chip-border-color);
18
18
  background-color: var(--mdc-chip-background-color);
19
19
  }
20
-
21
- :host([error]){
20
+
21
+ :host([error]) {
22
22
  --mdc-chip-border-color: var(--mds-color-theme-outline-cancel-normal);
23
23
  --mdc-chip-background-color: var(--mds-color-theme-background-label-error-normal);
24
24
  }
25
25
 
26
- :host([disabled]), :host([disabled]:hover), :host([disabled]:active) {
26
+ :host([disabled]),
27
+ :host([disabled]:hover),
28
+ :host([disabled]:active) {
27
29
  --mdc-chip-border-color: var(--mds-color-theme-common-outline-primary-disabled);
28
30
  --mdc-chip-background-color: var(--mds-color-theme-background-primary-disabled);
29
31
  --mdc-chip-color: var(--mds-color-theme-text-primary-disabled);
@@ -1,6 +1,6 @@
1
1
  import { CSSResult } from 'lit';
2
- import type { LinkSize } from './link.types';
3
2
  import Linksimple from '../linksimple/linksimple.component';
3
+ import type { LinkSize } from './link.types';
4
4
  declare const Link_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/IconNameMixin").IconNameMixinInterface> & typeof Linksimple;
5
5
  /**
6
6
  * `mdc-link` component can be used to navigate to a different page
@@ -10,9 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  import { html, nothing } from 'lit';
11
11
  import { property } from 'lit/decorators.js';
12
12
  import { IconNameMixin } from '../../utils/mixins/IconNameMixin';
13
+ import Linksimple from '../linksimple/linksimple.component';
13
14
  import { DEFAULTS, LINK_ICON_SIZES, LINK_SIZES } from './link.constants';
14
15
  import styles from './link.styles';
15
- import Linksimple from '../linksimple/linksimple.component';
16
16
  /**
17
17
  * `mdc-link` component can be used to navigate to a different page
18
18
  * within the application or to an external site. It can be used to link to
@@ -63,13 +63,9 @@ class Link extends IconNameMixin(Linksimple) {
63
63
  render() {
64
64
  return html `
65
65
  <slot></slot>
66
- ${this.iconName ? html `
67
- <mdc-icon
68
- name=${this.iconName}
69
- size=${this.getIconSize()}
70
- length-unit="rem"
71
- ></mdc-icon>
72
- ` : nothing}
66
+ ${this.iconName
67
+ ? html ` <mdc-icon name=${this.iconName} size=${this.getIconSize()} length-unit="rem"></mdc-icon> `
68
+ : nothing}
73
69
  `;
74
70
  }
75
71
  }
@@ -12,4 +12,4 @@ declare const LINK_ICON_SIZES: {
12
12
  declare const DEFAULTS: {
13
13
  LINK_SIZE: "large";
14
14
  };
15
- export { DEFAULTS, LINK_ICON_SIZES, LINK_SIZES, TAG_NAME, };
15
+ export { DEFAULTS, LINK_ICON_SIZES, LINK_SIZES, TAG_NAME };
@@ -13,4 +13,4 @@ const LINK_ICON_SIZES = {
13
13
  const DEFAULTS = {
14
14
  LINK_SIZE: LINK_SIZES.LARGE,
15
15
  };
16
- export { DEFAULTS, LINK_ICON_SIZES, LINK_SIZES, TAG_NAME, };
16
+ export { DEFAULTS, LINK_ICON_SIZES, LINK_SIZES, TAG_NAME };
@@ -4,7 +4,7 @@ const styles = css `
4
4
  gap: 0.25rem;
5
5
  }
6
6
 
7
- :host([size="large"]) {
7
+ :host([size='large']) {
8
8
  font-size: var(--mds-font-apps-body-large-regular-font-size);
9
9
  font-weight: var(--mds-font-apps-body-large-regular-font-weight);
10
10
  line-height: var(--mds-font-apps-body-large-regular-line-height);
@@ -12,7 +12,7 @@ const styles = css `
12
12
  text-transform: var(--mds-font-apps-body-large-regular-text-case);
13
13
  }
14
14
 
15
- :host([size="midsize"]) {
15
+ :host([size='midsize']) {
16
16
  font-size: var(--mds-font-apps-body-midsize-regular-font-size);
17
17
  font-weight: var(--mds-font-apps-body-midsize-regular-font-weight);
18
18
  line-height: var(--mds-font-apps-body-midsize-regular-line-height);
@@ -20,7 +20,7 @@ const styles = css `
20
20
  text-transform: var(--mds-font-apps-body-midsize-regular-text-case);
21
21
  }
22
22
 
23
- :host([size="small"]) {
23
+ :host([size='small']) {
24
24
  font-size: var(--mds-font-apps-body-small-regular-font-size);
25
25
  font-weight: var(--mds-font-apps-body-small-regular-font-weight);
26
26
  line-height: var(--mds-font-apps-body-small-regular-line-height);
@@ -28,9 +28,9 @@ const styles = css `
28
28
  text-transform: var(--mds-font-apps-body-small-regular-text-case);
29
29
  }
30
30
 
31
- :host([size="large"]:hover),
32
- :host([size="large"]:active),
33
- :host([size="large"][inline]) {
31
+ :host([size='large']:hover),
32
+ :host([size='large']:active),
33
+ :host([size='large'][inline]) {
34
34
  font-size: var(--mds-font-apps-body-large-regular-underline-font-size);
35
35
  font-weight: var(--mds-font-apps-body-large-regular-underline-font-weight);
36
36
  line-height: var(--mds-font-apps-body-large-regular-underline-line-height);
@@ -38,9 +38,9 @@ const styles = css `
38
38
  text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
39
39
  }
40
40
 
41
- :host([size="midsize"]:hover),
42
- :host([size="midsize"]:active),
43
- :host([size="midsize"][inline]) {
41
+ :host([size='midsize']:hover),
42
+ :host([size='midsize']:active),
43
+ :host([size='midsize'][inline]) {
44
44
  font-size: var(--mds-font-apps-body-midsize-regular-underline-font-size);
45
45
  font-weight: var(--mds-font-apps-body-midsize-regular-underline-font-weight);
46
46
  line-height: var(--mds-font-apps-body-midsize-regular-underline-line-height);
@@ -48,9 +48,9 @@ const styles = css `
48
48
  text-transform: var(--mds-font-apps-body-midsize-regular-underline-text-case);
49
49
  }
50
50
 
51
- :host([size="small"]:hover),
52
- :host([size="small"]:active),
53
- :host([size="small"][inline]) {
51
+ :host([size='small']:hover),
52
+ :host([size='small']:active),
53
+ :host([size='small'][inline]) {
54
54
  font-size: var(--mds-font-apps-body-small-regular-underline-font-size);
55
55
  font-weight: var(--mds-font-apps-body-small-regular-underline-font-weight);
56
56
  line-height: var(--mds-font-apps-body-small-regular-underline-line-height);
@@ -11,9 +11,9 @@ import { html } from 'lit';
11
11
  import { property } from 'lit/decorators.js';
12
12
  import { Component } from '../../models';
13
13
  import { DisabledMixin } from '../../utils/mixins/DisabledMixin';
14
+ import { TabIndexMixin } from '../../utils/mixins/TabIndexMixin';
14
15
  import { DEFAULTS } from './linksimple.constants';
15
16
  import styles from './linksimple.styles';
16
- import { TabIndexMixin } from '../../utils/mixins/TabIndexMixin';
17
17
  /**
18
18
  * `mdc-linksimple` is a lightweight link component that can be used to navigate
19
19
  * within the application or to an external URL. It does not have any predefined default size.
@@ -112,9 +112,7 @@ class Linksimple extends DisabledMixin(TabIndexMixin(Component)) {
112
112
  }
113
113
  }
114
114
  render() {
115
- return html `
116
- <slot></slot>
117
- `;
115
+ return html ` <slot></slot> `;
118
116
  }
119
117
  }
120
118
  Linksimple.styles = [...Component.styles, ...styles];
@@ -1,72 +1,74 @@
1
1
  import { css } from 'lit';
2
2
  import { hostFitContentStyles, hostFocusRingStyles } from '../../utils/styles';
3
- const styles = [hostFitContentStyles, css `
4
- :host {
5
- --mdc-link-border-radius: 0.25rem;
6
- --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
7
- --mdc-link-color-disabled: var(--mds-color-theme-text-primary-disabled);
8
- --mdc-link-color-hover: var(--mds-color-theme-text-accent-hover);
9
- --mdc-link-color-normal: var(--mds-color-theme-text-accent-normal);
10
- --mdc-link-inverted-color-active: var(--mds-color-theme-inverted-text-accent-active);
11
- --mdc-link-inverted-color-disabled: var(--mds-color-theme-inverted-text-primary-disabled);
12
- --mdc-link-inverted-color-hover: var(--mds-color-theme-inverted-text-accent-hover);
13
- --mdc-link-inverted-color-normal: var(--mds-color-theme-inverted-text-accent-normal);
3
+ const styles = [
4
+ hostFitContentStyles,
5
+ css `
6
+ :host {
7
+ --mdc-link-border-radius: 0.25rem;
8
+ --mdc-link-color-active: var(--mds-color-theme-text-accent-active);
9
+ --mdc-link-color-disabled: var(--mds-color-theme-text-primary-disabled);
10
+ --mdc-link-color-hover: var(--mds-color-theme-text-accent-hover);
11
+ --mdc-link-color-normal: var(--mds-color-theme-text-accent-normal);
12
+ --mdc-link-inverted-color-active: var(--mds-color-theme-inverted-text-accent-active);
13
+ --mdc-link-inverted-color-disabled: var(--mds-color-theme-inverted-text-primary-disabled);
14
+ --mdc-link-inverted-color-hover: var(--mds-color-theme-inverted-text-accent-hover);
15
+ --mdc-link-inverted-color-normal: var(--mds-color-theme-inverted-text-accent-normal);
14
16
 
15
- border-radius: var(--mdc-link-border-radius);
16
- color: var(--mdc-link-color-normal);
17
- text-underline-offset: auto;
18
- text-underline-position: from-font;
19
- cursor: pointer;
20
-
21
- /* based on default linksimple size (large) */
22
- line-height: var(--mds-font-apps-body-large-regular-line-height);
23
- }
17
+ border-radius: var(--mdc-link-border-radius);
18
+ color: var(--mdc-link-color-normal);
19
+ text-underline-offset: auto;
20
+ text-underline-position: from-font;
21
+ cursor: pointer;
24
22
 
25
- :host([inline]) {
26
- display: inline-flex;
27
- }
23
+ /* based on default linksimple size (large) */
24
+ line-height: var(--mds-font-apps-body-large-regular-line-height);
25
+ }
28
26
 
29
- :host([inverted]) {
30
- color: var(--mdc-link-inverted-color-normal);
31
- }
27
+ :host([inline]) {
28
+ display: inline-flex;
29
+ }
32
30
 
33
- :host(:hover) {
34
- color: var(--mdc-link-color-hover);
35
- }
31
+ :host([inverted]) {
32
+ color: var(--mdc-link-inverted-color-normal);
33
+ }
36
34
 
37
- :host(:active) {
38
- color: var(--mdc-link-color-active);
39
- box-shadow: none;
40
- }
35
+ :host(:hover) {
36
+ color: var(--mdc-link-color-hover);
37
+ }
41
38
 
42
- :host([inverted]:hover) {
43
- color: var(--mdc-link-inverted-color-hover);
44
- }
39
+ :host(:active) {
40
+ color: var(--mdc-link-color-active);
41
+ box-shadow: none;
42
+ }
45
43
 
46
- :host([inverted]:active) {
47
- color: var(--mdc-link-inverted-color-active);
48
- }
44
+ :host([inverted]:hover) {
45
+ color: var(--mdc-link-inverted-color-hover);
46
+ }
49
47
 
50
- :host([disabled]) {
51
- color: var(--mdc-link-color-disabled);
52
- pointer-events: none;
53
- }
48
+ :host([inverted]:active) {
49
+ color: var(--mdc-link-inverted-color-active);
50
+ }
54
51
 
55
- :host([inverted][disabled]) {
56
- color: var(--mdc-link-inverted-color-disabled);
57
- }
52
+ :host([disabled]) {
53
+ color: var(--mdc-link-color-disabled);
54
+ pointer-events: none;
55
+ }
58
56
 
59
- /* based on default linksimple size (large) */
60
- :host(:hover),
61
- :host(:active),
62
- :host([inline]) {
63
- font-size: var(--mds-font-apps-body-large-regular-underline-font-size);
64
- font-weight: var(--mds-font-apps-body-large-regular-underline-font-weight);
65
- line-height: var(--mds-font-apps-body-large-regular-underline-line-height);
66
- text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
67
- text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
68
- }
57
+ :host([inverted][disabled]) {
58
+ color: var(--mdc-link-inverted-color-disabled);
59
+ }
69
60
 
70
- `, ...hostFocusRingStyles(),
61
+ /* based on default linksimple size (large) */
62
+ :host(:hover),
63
+ :host(:active),
64
+ :host([inline]) {
65
+ font-size: var(--mds-font-apps-body-large-regular-underline-font-size);
66
+ font-weight: var(--mds-font-apps-body-large-regular-underline-font-weight);
67
+ line-height: var(--mds-font-apps-body-large-regular-underline-line-height);
68
+ text-decoration: var(--mds-font-apps-body-large-regular-underline-text-decoration);
69
+ text-transform: var(--mds-font-apps-body-large-regular-underline-text-case);
70
+ }
71
+ `,
72
+ ...hostFocusRingStyles(),
71
73
  ];
72
74
  export default styles;
@@ -57,7 +57,7 @@ class List extends DataAriaLabelMixin(Component) {
57
57
  * @returns The index of the target element in the listItems array.
58
58
  */
59
59
  getCurrentIndex(target) {
60
- return this.listItems.findIndex((node) => node === target || node === target.parentElement);
60
+ return this.listItems.findIndex(node => node === target || node === target.parentElement);
61
61
  }
62
62
  /**
63
63
  * Calculates a new index based on the pressed keyboard key.
@@ -110,14 +110,17 @@ class List extends DataAriaLabelMixin(Component) {
110
110
  }
111
111
  render() {
112
112
  var _a;
113
- const headerText = this.headerText ? html `
114
- <mdc-text
115
- id="${HEADER_ID}"
116
- part="header-text"
117
- type="${TYPE.BODY_MIDSIZE_BOLD}"
118
- tagname="${VALID_TEXT_TAGS.SPAN}"
119
- >${this.headerText}</mdc-text>
120
- ` : nothing;
113
+ const headerText = this.headerText
114
+ ? html `
115
+ <mdc-text
116
+ id="${HEADER_ID}"
117
+ part="header-text"
118
+ type="${TYPE.BODY_MIDSIZE_BOLD}"
119
+ tagname="${VALID_TEXT_TAGS.SPAN}"
120
+ >${this.headerText}</mdc-text
121
+ >
122
+ `
123
+ : nothing;
121
124
  return html `
122
125
  <div
123
126
  role="${this.dataRole}"
@@ -184,7 +184,7 @@ class ListItem extends DisabledMixin(TabIndexMixin(Component)) {
184
184
  * @param disabled - Whether to disable or enable the controls.
185
185
  */
186
186
  disableSlottedChildren(disabled) {
187
- [...this.leadingControlsSlot, ...this.trailingControlsSlot].forEach((element) => {
187
+ [...this.leadingControlsSlot, ...this.trailingControlsSlot].forEach(element => {
188
188
  if (disabled) {
189
189
  element.setAttribute('disabled', '');
190
190
  }
@@ -206,20 +206,24 @@ class ListItem extends DisabledMixin(TabIndexMixin(Component)) {
206
206
  * @returns A template for the trailing controls slot.
207
207
  */
208
208
  renderTrailingControls() {
209
- return html `<slot name="trailing-controls"
210
- @click=${this.stopEventPropagation}
211
- @keyup=${this.stopEventPropagation}
212
- @keydown=${this.stopEventPropagation}></slot>`;
209
+ return html `<slot
210
+ name="trailing-controls"
211
+ @click=${this.stopEventPropagation}
212
+ @keyup=${this.stopEventPropagation}
213
+ @keydown=${this.stopEventPropagation}
214
+ ></slot>`;
213
215
  }
214
216
  /**
215
217
  * Renders the leading controls slot.
216
218
  * @returns A template for the leading controls slot.
217
219
  */
218
220
  renderLeadingControls() {
219
- return html `<slot name="leading-controls"
220
- @click=${this.stopEventPropagation}
221
- @keyup=${this.stopEventPropagation}
222
- @keydown=${this.stopEventPropagation}></slot>`;
221
+ return html `<slot
222
+ name="leading-controls"
223
+ @click=${this.stopEventPropagation}
224
+ @keyup=${this.stopEventPropagation}
225
+ @keydown=${this.stopEventPropagation}
226
+ ></slot>`;
223
227
  }
224
228
  /**
225
229
  * Stops the click event from propagating to parent elements. In case of keyboard events,
@@ -229,8 +233,8 @@ class ListItem extends DisabledMixin(TabIndexMixin(Component)) {
229
233
  * @param event - The mouse event triggered when a click occurs.
230
234
  */
231
235
  stopEventPropagation(event) {
232
- if ((event instanceof KeyboardEvent && (event.key === KEYS.ENTER || event.key === KEYS.SPACE))
233
- || (event instanceof MouseEvent)) {
236
+ if ((event instanceof KeyboardEvent && (event.key === KEYS.ENTER || event.key === KEYS.SPACE)) ||
237
+ event instanceof MouseEvent) {
234
238
  event.stopPropagation();
235
239
  }
236
240
  }
@@ -20,10 +20,10 @@ const styles = css `
20
20
  padding: 0.5rem var(--mdc-listitem-padding-left-and-right);
21
21
  width: 100%;
22
22
  }
23
- :host([variant="inset-rectangle"]) {
23
+ :host([variant='inset-rectangle']) {
24
24
  border-radius: 0.5rem;
25
25
  }
26
- :host([variant="inset-pill"]) {
26
+ :host([variant='inset-pill']) {
27
27
  border-radius: 3.125rem;
28
28
  }
29
29
  :host::part(leading-text) {
@@ -58,7 +58,8 @@ const styles = css `
58
58
  :host(:active) {
59
59
  background-color: var(--mdc-listitem-background-color-active);
60
60
  }
61
- :host::part(leading), :host::part(trailing) {
61
+ :host::part(leading),
62
+ :host::part(trailing) {
62
63
  align-items: center;
63
64
  column-gap: var(--mdc-listitem-column-gap);
64
65
  display: flex;
@@ -67,16 +68,20 @@ const styles = css `
67
68
  :host::part(trailing) {
68
69
  justify-content: flex-end;
69
70
  }
70
- :host::part(leading-text-secondary-label), :host::part(leading-text-tertiary-label) {
71
+ :host::part(leading-text-secondary-label),
72
+ :host::part(leading-text-tertiary-label) {
71
73
  color: var(--mdc-listitem-secondary-label-color);
72
74
  }
73
- :host::part(leading-text-primary-label), :host::part(trailing-text-side-header), :host::part(trailing-text-subline) {
75
+ :host::part(leading-text-primary-label),
76
+ :host::part(trailing-text-side-header),
77
+ :host::part(trailing-text-subline) {
74
78
  color: var(--mdc-listitem-primary-label-color);
75
79
  }
76
80
  :host::part(trailing-text) {
77
81
  text-align: right;
78
82
  }
79
- ::slotted([slot="leading-controls"]), ::slotted([slot="trailing-controls"]) {
83
+ ::slotted([slot='leading-controls']),
84
+ ::slotted([slot='trailing-controls']) {
80
85
  align-items: center;
81
86
  column-gap: var(--mdc-listitem-column-gap);
82
87
  display: flex;
@@ -8,8 +8,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
8
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
9
  };
10
10
  import { property } from 'lit/decorators.js';
11
- import styles from './marker.styles';
12
11
  import { Component } from '../../models';
12
+ import styles from './marker.styles';
13
13
  import { MARKER_VARIANTS } from './marker.constants';
14
14
  /**
15
15
  * `mdc-marker`, which is a vertical line and
@@ -4,7 +4,7 @@ const styles = css `
4
4
  --mdc-marker-width: 0.25rem;
5
5
  --mdc-marker-solid-background-color: var(--mds-color-theme-outline-secondary-normal);
6
6
  --mdc-marker-striped-color: var(--mds-color-theme-outline-secondary-normal);
7
- --mdc-marker-striped-background-color: transparent;
7
+ --mdc-marker-striped-background-color: transparent;
8
8
 
9
9
  width: var(--mdc-marker-width);
10
10
  height: 100%;
@@ -20,7 +20,7 @@ const styles = css `
20
20
  135deg,
21
21
  var(--mdc-marker-striped-color),
22
22
  var(--mdc-marker-striped-color) 0.1875rem,
23
- var(--mdc-marker-striped-background-color) 0.1875rem,
23
+ var(--mdc-marker-striped-background-color) 0.1875rem,
24
24
  var(--mdc-marker-striped-background-color) 0.375rem
25
25
  );
26
26
  }
@@ -2,25 +2,25 @@ import type { CSSResult, PropertyValues } from 'lit';
2
2
  import { Component } from '../../models';
3
3
  declare const MenuBar_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/MenuMixin").MenuMixinInterface> & typeof Component;
4
4
  /**
5
- * Menubar is a navigational menu component that provides a horizontal (default) or vertical fixed list of menu items,
6
- * with support for nested submenus and keyboard navigation. It serves as a container
7
- * for menu items and manages their interaction patterns, including:
8
- * - Keyboard navigation (arrow keys, Home, End)
9
- * - Menu item activation (Enter/Space)
10
- * - Submenu toggling (Right/Left arrow keys)
11
- * - Focus management
12
- * - Support for both horizontal and vertical orientations
13
- * - Integration with MenuPopover for nested menus
14
- *
15
- * A menubar will contain a set of menu items and their associated popovers.
16
- * Each menu item can have a popover for nested menus.
17
- *
18
- * The component automatically handles ARIA attributes and follows WAI-ARIA menu design patterns.
19
- * It works in conjunction with `mdc-menuitem` and `mdc-menupopover` to create accessible menu structures.
20
- *
21
- * @tagname mdc-menubar
22
- * @slot default - Contains the menu items and their associated popovers
23
- */
5
+ * Menubar is a navigational menu component that provides a horizontal (default) or vertical fixed list of menu items,
6
+ * with support for nested submenus and keyboard navigation. It serves as a container
7
+ * for menu items and manages their interaction patterns, including:
8
+ * - Keyboard navigation (arrow keys, Home, End)
9
+ * - Menu item activation (Enter/Space)
10
+ * - Submenu toggling (Right/Left arrow keys)
11
+ * - Focus management
12
+ * - Support for both horizontal and vertical orientations
13
+ * - Integration with MenuPopover for nested menus
14
+ *
15
+ * A menubar will contain a set of menu items and their associated popovers.
16
+ * Each menu item can have a popover for nested menus.
17
+ *
18
+ * The component automatically handles ARIA attributes and follows WAI-ARIA menu design patterns.
19
+ * It works in conjunction with `mdc-menuitem` and `mdc-menupopover` to create accessible menu structures.
20
+ *
21
+ * @tagname mdc-menubar
22
+ * @slot default - Contains the menu items and their associated popovers
23
+ */
24
24
  declare class MenuBar extends MenuBar_base {
25
25
  constructor();
26
26
  connectedCallback(): void;
@@ -4,25 +4,25 @@ import { MenuMixin } from '../../utils/mixins/MenuMixin';
4
4
  import { ROLE } from '../../utils/roles';
5
5
  import styles from './menubar.styles';
6
6
  /**
7
- * Menubar is a navigational menu component that provides a horizontal (default) or vertical fixed list of menu items,
8
- * with support for nested submenus and keyboard navigation. It serves as a container
9
- * for menu items and manages their interaction patterns, including:
10
- * - Keyboard navigation (arrow keys, Home, End)
11
- * - Menu item activation (Enter/Space)
12
- * - Submenu toggling (Right/Left arrow keys)
13
- * - Focus management
14
- * - Support for both horizontal and vertical orientations
15
- * - Integration with MenuPopover for nested menus
16
- *
17
- * A menubar will contain a set of menu items and their associated popovers.
18
- * Each menu item can have a popover for nested menus.
19
- *
20
- * The component automatically handles ARIA attributes and follows WAI-ARIA menu design patterns.
21
- * It works in conjunction with `mdc-menuitem` and `mdc-menupopover` to create accessible menu structures.
22
- *
23
- * @tagname mdc-menubar
24
- * @slot default - Contains the menu items and their associated popovers
25
- */
7
+ * Menubar is a navigational menu component that provides a horizontal (default) or vertical fixed list of menu items,
8
+ * with support for nested submenus and keyboard navigation. It serves as a container
9
+ * for menu items and manages their interaction patterns, including:
10
+ * - Keyboard navigation (arrow keys, Home, End)
11
+ * - Menu item activation (Enter/Space)
12
+ * - Submenu toggling (Right/Left arrow keys)
13
+ * - Focus management
14
+ * - Support for both horizontal and vertical orientations
15
+ * - Integration with MenuPopover for nested menus
16
+ *
17
+ * A menubar will contain a set of menu items and their associated popovers.
18
+ * Each menu item can have a popover for nested menus.
19
+ *
20
+ * The component automatically handles ARIA attributes and follows WAI-ARIA menu design patterns.
21
+ * It works in conjunction with `mdc-menuitem` and `mdc-menupopover` to create accessible menu structures.
22
+ *
23
+ * @tagname mdc-menubar
24
+ * @slot default - Contains the menu items and their associated popovers
25
+ */
26
26
  class MenuBar extends MenuMixin(Component) {
27
27
  constructor() {
28
28
  super();