@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.
- package/dist/browser/index.js +171 -167
- package/dist/browser/index.js.map +4 -4
- package/dist/components/password/password.component.js +2 -1
- package/dist/components/password/password.styles.d.ts +2 -0
- package/dist/components/password/password.styles.js +9 -0
- package/dist/components/tablist/tablist.component.js +3 -0
- package/package.json +1 -1
|
@@ -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)
|
|
@@ -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;
|