@momentum-design/components 0.129.25 → 0.129.27

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 (33) hide show
  1. package/dist/browser/index.js +230 -213
  2. package/dist/browser/index.js.map +3 -3
  3. package/dist/components/announcementdialog/announcementdialog.component.d.ts +4 -9
  4. package/dist/components/announcementdialog/announcementdialog.component.js +4 -9
  5. package/dist/components/buttonlink/buttonlink.component.d.ts +1 -0
  6. package/dist/components/buttonlink/buttonlink.component.js +23 -0
  7. package/dist/components/checkbox/checkbox.component.d.ts +39 -39
  8. package/dist/components/checkbox/checkbox.component.js +39 -39
  9. package/dist/components/checkbox/checkbox.styles.js +10 -10
  10. package/dist/components/chip/chip.component.d.ts +7 -6
  11. package/dist/components/chip/chip.component.js +4 -12
  12. package/dist/components/dialog/dialog.constants.js +6 -4
  13. package/dist/components/linksimple/linksimple.component.d.ts +8 -0
  14. package/dist/components/linksimple/linksimple.component.js +2 -1
  15. package/dist/components/select/select.styles.js +0 -1
  16. package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +19 -19
  17. package/dist/components/staticcheckbox/staticcheckbox.component.js +19 -19
  18. package/dist/components/staticcheckbox/staticcheckbox.styles.js +29 -29
  19. package/dist/components/staticchip/staticchip.component.d.ts +6 -4
  20. package/dist/components/staticchip/staticchip.component.js +3 -10
  21. package/dist/components/statictoggle/statictoggle.styles.js +1 -1
  22. package/dist/custom-elements.json +239 -251
  23. package/dist/react/announcementdialog/index.d.ts +4 -9
  24. package/dist/react/announcementdialog/index.js +4 -9
  25. package/dist/react/checkbox/index.d.ts +19 -26
  26. package/dist/react/checkbox/index.js +19 -26
  27. package/dist/react/chip/index.d.ts +3 -4
  28. package/dist/react/chip/index.js +3 -4
  29. package/dist/react/staticcheckbox/index.d.ts +11 -11
  30. package/dist/react/staticcheckbox/index.js +11 -11
  31. package/dist/react/staticchip/index.d.ts +2 -2
  32. package/dist/react/staticchip/index.js +2 -2
  33. package/package.json +1 -1
@@ -2,48 +2,48 @@ import { CSSResult } from 'lit';
2
2
  import { Component } from '../../models';
3
3
  declare const StaticCheckbox_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/DisabledMixin").DisabledMixinInterface> & typeof Component;
4
4
  /**
5
- * This is a decorative component that is styled to look as a checkbox.
5
+ * StaticCheckbox is a decorative component styled as a checkbox for visual presentation.
6
+ * Unlike the interactive `mdc-checkbox`, this component does not handle user interactions or form submissions.
7
+ * It is used purely for displaying checkbox states in read-only scenarios.
6
8
  *
7
- * It has 5 properties - checked, indeterminate, disabled, readonly and soft-disabled.
8
- *
9
- * We are using the same styling that has been created for the `mdc-checkbox` component.
9
+ * This component supports five display states: checked, indeterminate, disabled, readonly, and soft-disabled.
10
10
  *
11
11
  * @tagname mdc-staticcheckbox
12
12
  *
13
13
  * @dependency mdc-icon
14
14
  *
15
- * @cssproperty --mdc-checkbox-border-color - Controls the border color of the checkbox.
16
- * @cssproperty --mdc-checkbox-background-color - Controls the background color of the checkbox.
17
- * @cssproperty --mdc-checkbox-icon-color - Controls the icon color of the checkbox.
18
- * @cssproperty --mdc-checkbox-size - Controls the size of the checkbox.
15
+ * @cssproperty --mdc-staticcheckbox-border-color - The border color of the checkbox.
16
+ * @cssproperty --mdc-staticcheckbox-background-color - The background color of the checkbox.
17
+ * @cssproperty --mdc-staticcheckbox-icon-color - The icon color of the checkbox.
18
+ * @cssproperty --mdc-staticcheckbox-size - The size of the checkbox.
19
19
  *
20
- * @csspart icon-container - The container for the checkbox icon.
21
- * @csspart checkbox-icon - The checkbox icon.
20
+ * @csspart icon-container - The container for the checkbox icon
21
+ * @csspart checkbox-icon - The checkbox icon element
22
22
  *
23
- * @slot - Default slot for adding label text.
23
+ * @slot - Default slot for adding label text
24
24
  */
25
25
  declare class StaticCheckbox extends StaticCheckbox_base {
26
26
  /**
27
- * Determines whether the checkbox is selected or unselected.
28
- *
27
+ * Determines whether the checkbox appears checked (selected) or unchecked.
29
28
  * @default false
30
29
  */
31
30
  checked: boolean;
32
31
  /**
33
- * Determines whether the checkbox is in an indeterminate state.
34
- *
32
+ * Determines whether the checkbox appears in an indeterminate (mixed) state.
33
+ * Typically used to represent partial selection in nested checkbox groups.
35
34
  * @default false
36
35
  */
37
36
  indeterminate: boolean;
38
37
  /**
39
- * Determines whether the checkbox is read-only.
40
- *
38
+ * Determines whether the checkbox appears in a read-only state.
39
+ * Note: This is purely visual as StaticCheckbox is non-interactive by design.
41
40
  * @default false
42
41
  */
43
42
  readonly: boolean;
44
43
  /**
45
- * Determines whether the checkbox is soft-disabled.
46
- *
44
+ * Determines whether the checkbox appears in a soft-disabled state.
45
+ * Soft-disabled provides a less prominent disabled appearance than the standard disabled state.
46
+ * Note: This is purely visual as StaticCheckbox is non-interactive by design.
47
47
  * @default false
48
48
  */
49
49
  softDisabled: boolean;
@@ -14,50 +14,50 @@ import { DisabledMixin } from '../../utils/mixins/DisabledMixin';
14
14
  import styles from './staticcheckbox.styles';
15
15
  import { ICON_NAME } from './staticcheckbox.constants';
16
16
  /**
17
- * This is a decorative component that is styled to look as a checkbox.
17
+ * StaticCheckbox is a decorative component styled as a checkbox for visual presentation.
18
+ * Unlike the interactive `mdc-checkbox`, this component does not handle user interactions or form submissions.
19
+ * It is used purely for displaying checkbox states in read-only scenarios.
18
20
  *
19
- * It has 5 properties - checked, indeterminate, disabled, readonly and soft-disabled.
20
- *
21
- * We are using the same styling that has been created for the `mdc-checkbox` component.
21
+ * This component supports five display states: checked, indeterminate, disabled, readonly, and soft-disabled.
22
22
  *
23
23
  * @tagname mdc-staticcheckbox
24
24
  *
25
25
  * @dependency mdc-icon
26
26
  *
27
- * @cssproperty --mdc-checkbox-border-color - Controls the border color of the checkbox.
28
- * @cssproperty --mdc-checkbox-background-color - Controls the background color of the checkbox.
29
- * @cssproperty --mdc-checkbox-icon-color - Controls the icon color of the checkbox.
30
- * @cssproperty --mdc-checkbox-size - Controls the size of the checkbox.
27
+ * @cssproperty --mdc-staticcheckbox-border-color - The border color of the checkbox.
28
+ * @cssproperty --mdc-staticcheckbox-background-color - The background color of the checkbox.
29
+ * @cssproperty --mdc-staticcheckbox-icon-color - The icon color of the checkbox.
30
+ * @cssproperty --mdc-staticcheckbox-size - The size of the checkbox.
31
31
  *
32
- * @csspart icon-container - The container for the checkbox icon.
33
- * @csspart checkbox-icon - The checkbox icon.
32
+ * @csspart icon-container - The container for the checkbox icon
33
+ * @csspart checkbox-icon - The checkbox icon element
34
34
  *
35
- * @slot - Default slot for adding label text.
35
+ * @slot - Default slot for adding label text
36
36
  */
37
37
  class StaticCheckbox extends DisabledMixin(Component) {
38
38
  constructor() {
39
39
  super(...arguments);
40
40
  /**
41
- * Determines whether the checkbox is selected or unselected.
42
- *
41
+ * Determines whether the checkbox appears checked (selected) or unchecked.
43
42
  * @default false
44
43
  */
45
44
  this.checked = false;
46
45
  /**
47
- * Determines whether the checkbox is in an indeterminate state.
48
- *
46
+ * Determines whether the checkbox appears in an indeterminate (mixed) state.
47
+ * Typically used to represent partial selection in nested checkbox groups.
49
48
  * @default false
50
49
  */
51
50
  this.indeterminate = false;
52
51
  /**
53
- * Determines whether the checkbox is read-only.
54
- *
52
+ * Determines whether the checkbox appears in a read-only state.
53
+ * Note: This is purely visual as StaticCheckbox is non-interactive by design.
55
54
  * @default false
56
55
  */
57
56
  this.readonly = false;
58
57
  /**
59
- * Determines whether the checkbox is soft-disabled.
60
- *
58
+ * Determines whether the checkbox appears in a soft-disabled state.
59
+ * Soft-disabled provides a less prominent disabled appearance than the standard disabled state.
60
+ * Note: This is purely visual as StaticCheckbox is non-interactive by design.
61
61
  * @default false
62
62
  */
63
63
  this.softDisabled = false;
@@ -2,10 +2,10 @@ import { css } from 'lit';
2
2
  const styles = [
3
3
  css `
4
4
  :host {
5
- --mdc-checkbox-border-color: var(--mds-color-theme-outline-input-normal);
6
- --mdc-checkbox-background-color: var(--mds-color-theme-control-inactive-normal);
7
- --mdc-checkbox-icon-color: var(--mds-color-theme-inverted-text-primary-normal);
8
- --mdc-checkbox-size: 1rem;
5
+ --mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-input-normal);
6
+ --mdc-staticcheckbox-background-color: var(--mds-color-theme-control-inactive-normal);
7
+ --mdc-staticcheckbox-icon-color: var(--mds-color-theme-inverted-text-primary-normal);
8
+ --mdc-staticcheckbox-size: 1rem;
9
9
  margin: 0.125rem 0;
10
10
  border-radius: 0.125rem;
11
11
  }
@@ -13,34 +13,34 @@ const styles = [
13
13
  :host::part(icon-container) {
14
14
  display: flex;
15
15
  align-items: center;
16
- border: 0.0625rem solid var(--mdc-checkbox-border-color);
17
- background-color: var(--mdc-checkbox-background-color);
18
- width: var(--mdc-checkbox-size);
19
- height: var(--mdc-checkbox-size);
16
+ border: 0.0625rem solid var(--mdc-staticcheckbox-border-color);
17
+ background-color: var(--mdc-staticcheckbox-background-color);
18
+ width: var(--mdc-staticcheckbox-size);
19
+ height: var(--mdc-staticcheckbox-size);
20
20
  border-radius: 0.125rem;
21
21
  }
22
22
 
23
23
  :host::part(checkbox-icon) {
24
- --mdc-icon-fill-color: var(--mdc-checkbox-icon-color);
24
+ --mdc-icon-fill-color: var(--mdc-staticcheckbox-icon-color);
25
25
  }
26
26
 
27
27
  :host([checked]),
28
28
  :host([indeterminate]) {
29
- --mdc-checkbox-background-color: var(--mds-color-theme-control-active-normal);
30
- --mdc-checkbox-border-color: transparent;
29
+ --mdc-staticcheckbox-background-color: var(--mds-color-theme-control-active-normal);
30
+ --mdc-staticcheckbox-border-color: transparent;
31
31
  }
32
32
 
33
33
  :host([readonly]) {
34
- --mdc-checkbox-border-color: var(--mds-color-theme-outline-primary-normal);
35
- --mdc-checkbox-background-color: var(--mds-color-theme-control-inactive-disabled);
36
- --mdc-checkbox-icon-color: var(--mds-color-theme-text-primary-normal);
34
+ --mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-primary-normal);
35
+ --mdc-staticcheckbox-background-color: var(--mds-color-theme-control-inactive-disabled);
36
+ --mdc-staticcheckbox-icon-color: var(--mds-color-theme-text-primary-normal);
37
37
  }
38
38
 
39
39
  :host([disabled]),
40
40
  :host([soft-disabled]) {
41
- --mdc-checkbox-border-color: var(--mds-color-theme-outline-primary-disabled);
42
- --mdc-checkbox-background-color: var(--mds-color-theme-control-inactive-disabled);
43
- --mdc-checkbox-icon-color: var(--mds-color-theme-text-primary-disabled);
41
+ --mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-primary-disabled);
42
+ --mdc-staticcheckbox-background-color: var(--mds-color-theme-control-inactive-disabled);
43
+ --mdc-staticcheckbox-icon-color: var(--mds-color-theme-text-primary-disabled);
44
44
  cursor: default;
45
45
  }
46
46
 
@@ -48,34 +48,34 @@ const styles = [
48
48
  :host([disabled][indeterminate]),
49
49
  :host([soft-disabled][checked]),
50
50
  :host([soft-disabled][indeterminate]) {
51
- --mdc-checkbox-background-color: var(--mds-color-theme-control-active-disabled);
52
- --mdc-checkbox-border-color: var(--mds-color-theme-outline-primary-disabled);
51
+ --mdc-staticcheckbox-background-color: var(--mds-color-theme-control-active-disabled);
52
+ --mdc-staticcheckbox-border-color: var(--mds-color-theme-outline-primary-disabled);
53
53
  }
54
54
 
55
55
  /* High Contrast Mode */
56
56
  @media (forced-colors: active) {
57
57
  :host([checked]),
58
58
  :host([indeterminate]) {
59
- --mdc-checkbox-background-color: SelectedItem;
60
- --mdc-checkbox-border-color: SelectedItemText;
61
- --mdc-checkbox-icon-color: SelectedItemText;
59
+ --mdc-staticcheckbox-background-color: SelectedItem;
60
+ --mdc-staticcheckbox-border-color: SelectedItemText;
61
+ --mdc-staticcheckbox-icon-color: SelectedItemText;
62
62
  }
63
63
  :host([readonly]) {
64
- --mdc-checkbox-border-color: Highlight;
65
- --mdc-checkbox-icon-color: HighlightText;
64
+ --mdc-staticcheckbox-border-color: Highlight;
65
+ --mdc-staticcheckbox-icon-color: HighlightText;
66
66
  }
67
67
  :host([disabled]),
68
68
  :host([soft-disabled]) {
69
- --mdc-checkbox-background-color: GrayText;
70
- --mdc-checkbox-border-color: GrayText;
71
- --mdc-checkbox-icon-color: GrayText;
69
+ --mdc-staticcheckbox-background-color: GrayText;
70
+ --mdc-staticcheckbox-border-color: GrayText;
71
+ --mdc-staticcheckbox-icon-color: GrayText;
72
72
  }
73
73
  :host([disabled][checked]),
74
74
  :host([disabled][indeterminate]),
75
75
  :host([soft-disabled][checked]),
76
76
  :host([soft-disabled][indeterminate]) {
77
- --mdc-checkbox-border-color: GrayText;
78
- --mdc-checkbox-icon-color: GrayText;
77
+ --mdc-staticcheckbox-border-color: GrayText;
78
+ --mdc-staticcheckbox-icon-color: GrayText;
79
79
  }
80
80
  }
81
81
  `,
@@ -1,14 +1,13 @@
1
- import { CSSResult } from 'lit';
1
+ import type { CSSResult } from 'lit';
2
2
  import { Component } from '../../models';
3
3
  import type { ColorType } from './staticchip.types';
4
4
  declare const StaticChip_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/IconNameMixin").IconNameMixinInterface> & typeof Component;
5
5
  /**
6
6
  * mdc-staticchip is an static element that can be used to represent a chip. It supports a leading icon along with label.
7
7
  *
8
- * It is recommended to keep the label text for the chip component concise and compact.
8
+ * It is recommended to keep the label text for the chip component concise and compact.<br/>
9
9
  * For best results, we recommend limiting the <b>maximum length of the label text to 20 characters</b>, including empty spaces to split words.
10
10
  *
11
- *
12
11
  * @tagname mdc-staticchip
13
12
  *
14
13
  * @dependency mdc-icon
@@ -19,6 +18,7 @@ declare const StaticChip_base: import("../../utils/mixins/index.types").Construc
19
18
  * @cssproperty --mdc-chip-background-color - The background color of the static chip.
20
19
  *
21
20
  * @csspart label - The label of the static chip.
21
+ * @csspart icon - The icon of the static chip.
22
22
  */
23
23
  declare class StaticChip extends StaticChip_base {
24
24
  /**
@@ -42,8 +42,10 @@ declare class StaticChip extends StaticChip_base {
42
42
  *
43
43
  * We recommend limiting the <b>maximum length of the label text to 20 characters</b>,
44
44
  * including empty spaces to split words.
45
+ *
46
+ * @default undefined
45
47
  */
46
- label: string;
48
+ label?: string;
47
49
  /**
48
50
  * Renders the icon element if available.
49
51
  * @returns The icon element if available, otherwise nothing.
@@ -16,10 +16,9 @@ import styles from './staticchip.styles';
16
16
  /**
17
17
  * mdc-staticchip is an static element that can be used to represent a chip. It supports a leading icon along with label.
18
18
  *
19
- * It is recommended to keep the label text for the chip component concise and compact.
19
+ * It is recommended to keep the label text for the chip component concise and compact.<br/>
20
20
  * For best results, we recommend limiting the <b>maximum length of the label text to 20 characters</b>, including empty spaces to split words.
21
21
  *
22
- *
23
22
  * @tagname mdc-staticchip
24
23
  *
25
24
  * @dependency mdc-icon
@@ -30,6 +29,7 @@ import styles from './staticchip.styles';
30
29
  * @cssproperty --mdc-chip-background-color - The background color of the static chip.
31
30
  *
32
31
  * @csspart label - The label of the static chip.
32
+ * @csspart icon - The icon of the static chip.
33
33
  */
34
34
  class StaticChip extends IconNameMixin(Component) {
35
35
  constructor() {
@@ -50,13 +50,6 @@ class StaticChip extends IconNameMixin(Component) {
50
50
  * @default default
51
51
  */
52
52
  this.color = DEFAULTS.COLOR;
53
- /**
54
- * The visible label text of the chip.
55
- *
56
- * We recommend limiting the <b>maximum length of the label text to 20 characters</b>,
57
- * including empty spaces to split words.
58
- */
59
- this.label = '';
60
53
  }
61
54
  /**
62
55
  * Renders the icon element if available.
@@ -85,6 +78,6 @@ __decorate([
85
78
  ], StaticChip.prototype, "color", void 0);
86
79
  __decorate([
87
80
  property({ type: String }),
88
- __metadata("design:type", Object)
81
+ __metadata("design:type", String)
89
82
  ], StaticChip.prototype, "label", void 0);
90
83
  export default StaticChip;
@@ -24,7 +24,7 @@ const styles = [
24
24
  justify-content: flex-start;
25
25
  transition: background-color 0.3s ease;
26
26
  outline: none;
27
- padding: 1px;
27
+ padding: 0.125rem;
28
28
  }
29
29
 
30
30
  :host::part(toggle-icon) {