@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.
Files changed (36) hide show
  1. package/dist/browser/index.js +1032 -926
  2. package/dist/browser/index.js.map +4 -4
  3. package/dist/components/checkbox/checkbox.component.js +2 -0
  4. package/dist/components/input/input.component.d.ts +1 -0
  5. package/dist/components/input/input.component.js +3 -1
  6. package/dist/components/list/index.d.ts +8 -0
  7. package/dist/components/list/index.js +5 -0
  8. package/dist/components/list/list.component.d.ts +64 -0
  9. package/dist/components/list/list.component.js +138 -0
  10. package/dist/components/list/list.constants.d.ts +9 -0
  11. package/dist/components/list/list.constants.js +10 -0
  12. package/dist/components/list/list.styles.d.ts +2 -0
  13. package/dist/components/list/list.styles.js +7 -0
  14. package/dist/components/listitem/index.d.ts +8 -0
  15. package/dist/components/listitem/index.js +5 -0
  16. package/dist/components/listitem/listitem.component.d.ts +90 -0
  17. package/dist/components/listitem/listitem.component.js +153 -0
  18. package/dist/components/listitem/listitem.constants.d.ts +10 -0
  19. package/dist/components/listitem/listitem.constants.js +11 -0
  20. package/dist/components/listitem/listitem.styles.d.ts +2 -0
  21. package/dist/components/listitem/listitem.styles.js +70 -0
  22. package/dist/components/listitem/listitem.types.d.ts +4 -0
  23. package/dist/components/listitem/listitem.types.js +1 -0
  24. package/dist/components/radio/radio.component.js +2 -0
  25. package/dist/components/toggle/toggle.component.js +2 -0
  26. package/dist/custom-elements.json +700 -166
  27. package/dist/index.d.ts +19 -17
  28. package/dist/index.js +18 -16
  29. package/dist/react/index.d.ts +2 -0
  30. package/dist/react/index.js +2 -0
  31. package/dist/react/list/index.d.ts +12 -0
  32. package/dist/react/list/index.js +21 -0
  33. package/dist/react/listitem/index.d.ts +34 -0
  34. package/dist/react/listitem/index.js +43 -0
  35. package/dist/utils/mixins/FormInternalsMixin.js +0 -2
  36. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import type { ValueOf } from '../../utils/types';
2
+ import { LISTITEM_VARIANTS } from './listitem.constants';
3
+ type ListItemVariants = ValueOf<typeof LISTITEM_VARIANTS>;
4
+ export { ListItemVariants };
@@ -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.