@momentum-design/components 0.28.8 → 0.28.10
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 +1032 -926
- package/dist/browser/index.js.map +4 -4
- package/dist/components/checkbox/checkbox.component.js +2 -0
- package/dist/components/input/input.component.d.ts +1 -0
- package/dist/components/input/input.component.js +3 -1
- package/dist/components/list/index.d.ts +8 -0
- package/dist/components/list/index.js +5 -0
- package/dist/components/list/list.component.d.ts +64 -0
- package/dist/components/list/list.component.js +138 -0
- package/dist/components/list/list.constants.d.ts +9 -0
- package/dist/components/list/list.constants.js +10 -0
- package/dist/components/list/list.styles.d.ts +2 -0
- package/dist/components/list/list.styles.js +7 -0
- package/dist/components/listitem/index.d.ts +8 -0
- package/dist/components/listitem/index.js +5 -0
- package/dist/components/listitem/listitem.component.d.ts +90 -0
- package/dist/components/listitem/listitem.component.js +153 -0
- package/dist/components/listitem/listitem.constants.d.ts +10 -0
- package/dist/components/listitem/listitem.constants.js +11 -0
- package/dist/components/listitem/listitem.styles.d.ts +2 -0
- package/dist/components/listitem/listitem.styles.js +70 -0
- package/dist/components/listitem/listitem.types.d.ts +4 -0
- package/dist/components/listitem/listitem.types.js +1 -0
- package/dist/components/radio/radio.component.js +2 -0
- package/dist/components/toggle/toggle.component.js +2 -0
- package/dist/custom-elements.json +700 -166
- package/dist/index.d.ts +19 -17
- package/dist/index.js +18 -16
- package/dist/react/index.d.ts +2 -0
- package/dist/react/index.js +2 -0
- package/dist/react/list/index.d.ts +12 -0
- package/dist/react/list/index.js +21 -0
- package/dist/react/listitem/index.d.ts +34 -0
- package/dist/react/listitem/index.js +43 -0
- package/dist/utils/mixins/FormInternalsMixin.js +0 -2
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
import { html, nothing } from 'lit';
|
12
12
|
import { property } from 'lit/decorators.js';
|
13
13
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
14
|
+
import { v4 as uuidv4 } from 'uuid';
|
14
15
|
import styles from './radio.styles';
|
15
16
|
import FormfieldWrapper from '../formfieldwrapper/formfieldwrapper.component';
|
16
17
|
import { DataAriaLabelMixin } from '../../utils/mixins/DataAriaLabelMixin';
|
@@ -77,6 +78,7 @@ class Radio extends FormInternalsMixin(DataAriaLabelMixin(FormfieldWrapper)) {
|
|
77
78
|
};
|
78
79
|
// Radio does not contain helpTextType property.
|
79
80
|
this.helpTextType = undefined;
|
81
|
+
this.id = `mdc-radio-${uuidv4()}`;
|
80
82
|
}
|
81
83
|
firstUpdated() {
|
82
84
|
this.updateTabIndex();
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
10
|
import { html } from 'lit';
|
11
11
|
import { property } from 'lit/decorators.js';
|
12
12
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
13
|
+
import { v4 as uuidv4 } from 'uuid';
|
13
14
|
import styles from './toggle.styles';
|
14
15
|
import FormfieldWrapper from '../formfieldwrapper';
|
15
16
|
import { DEFAULTS as FORMFIELD_DEFAULTS } from '../formfieldwrapper/formfieldwrapper.constants';
|
@@ -75,6 +76,7 @@ class Toggle extends FormInternalsMixin(DataAriaLabelMixin(FormfieldWrapper)) {
|
|
75
76
|
this.autofocus = false;
|
76
77
|
// Toggle does not contain helpTextType property.
|
77
78
|
this.helpTextType = undefined;
|
79
|
+
this.id = `mdc-toggle-${uuidv4()}`;
|
78
80
|
}
|
79
81
|
/** @internal
|
80
82
|
* Resets the checkbox to its initial state.
|