@momentum-design/components 0.133.6 → 0.133.7

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.
@@ -14,6 +14,7 @@ import { INPUT_TYPE } from '../input/input.constants';
14
14
  import { BUTTON_VARIANTS } from '../button/button.constants';
15
15
  import { DEFAULTS } from '../formfieldwrapper/formfieldwrapper.constants';
16
16
  import { PASSWORD_VISIBILITY_ICONS } from './password.constants';
17
+ import styles from './password.styles';
17
18
  /**
18
19
  * `mdc-password` is a component that allows users to input their password.
19
20
  * It extends the `mdc-input` component and provides additional features specific to password fields.
@@ -129,7 +130,7 @@ class Password extends Input {
129
130
  return super.renderInputElement(inputType, hidePlaceholder);
130
131
  }
131
132
  }
132
- Password.styles = [...Input.styles];
133
+ Password.styles = [...Input.styles, ...styles];
133
134
  __decorate([
134
135
  property({ type: String, attribute: 'show-button-aria-label', reflect: true }),
135
136
  __metadata("design:type", Object)
@@ -0,0 +1,2 @@
1
+ declare const styles: import("lit").CSSResult[];
2
+ export default styles;
@@ -0,0 +1,9 @@
1
+ import { css } from 'lit';
2
+ const styles = [
3
+ css `
4
+ input::-ms-reveal {
5
+ display: none;
6
+ }
7
+ `,
8
+ ];
9
+ export default styles;
@@ -268,6 +268,9 @@ class TabList extends ListNavigationMixin(CaptureDestroyEventForChildElement(Key
268
268
  }
269
269
  const firstTab = getFirstTab(this.navItems);
270
270
  const lastTab = getLastTab(this.navItems);
271
+ if (!firstTab || !lastTab) {
272
+ return;
273
+ }
271
274
  const firstTabLeftEdgePosition = firstTab.getBoundingClientRect().left;
272
275
  const tabListLeftEdgePosition = (_b = this.tabsContainer) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect().left;
273
276
  const lastTabRightEdgePosition = lastTab.getBoundingClientRect().right;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@momentum-design/components",
3
3
  "packageManager": "yarn@3.2.4",
4
- "version": "0.133.6",
4
+ "version": "0.133.7",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"