@momentum-design/components 0.101.0 → 0.101.2

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.
@@ -20,7 +20,6 @@ const styles = [
20
20
  --mdc-input-success-border-color: var(--mds-color-theme-text-success-normal);
21
21
  --mdc-input-primary-border-color: var(--mds-color-theme-text-accent-normal);
22
22
  }
23
-
24
23
  :host,
25
24
  .input-container,
26
25
  .input-section,
@@ -87,7 +86,7 @@ const styles = [
87
86
 
88
87
  .prefix-text {
89
88
  color: var(--mdc-input-support-text-color);
90
- white-space: nowrap; // restrict prefix text to be in one line
89
+ white-space: nowrap; /* restrict prefix text to be in one line */
91
90
  }
92
91
 
93
92
  :host(:not([disabled])) .input-container:hover {
@@ -36,15 +36,13 @@ const styles = css `
36
36
  color: var(--mdc-popover-inverted-text-color);
37
37
  }
38
38
 
39
- :host([color='contrast']) {
40
- .popover-arrow {
41
- background-color: var(--mdc-popover-inverted-background-color);
42
- border-color: var(--mdc-popover-inverted-border-color);
43
- }
44
-
45
- .popover-close {
46
- color: var(--mdc-popover-inverted-text-color);
47
- }
39
+ :host([color='contrast']) .popover-arrow {
40
+ background-color: var(--mdc-popover-inverted-background-color);
41
+ border-color: var(--mdc-popover-inverted-border-color);
42
+ }
43
+
44
+ :host([color='contrast']) .popover-close {
45
+ color: var(--mdc-popover-inverted-text-color);
48
46
  }
49
47
 
50
48
  :host::part(popover-content) {
@@ -47,9 +47,6 @@ class StepperConnector extends Component {
47
47
  updated(changedProperties) {
48
48
  var _a;
49
49
  super.updated(changedProperties);
50
- if (changedProperties.has('orientation')) {
51
- this.ariaOrientation = this.orientation;
52
- }
53
50
  const context = (_a = this.stepperContext) === null || _a === void 0 ? void 0 : _a.value;
54
51
  if (!context || !context.orientation)
55
52
  return;
@@ -10,6 +10,8 @@ declare const StepperItem_base: import("../../utils/mixins/index.types").Constru
10
10
  * This is an uncontrolled component, meaning it does not manage its own state. Instead, it relies on the consumer's to manage the state of each step.
11
11
  * Make sure to set `aria-current="step"` on the current stepper item. It is applicable only when status is `current` or `error-current`. This ensures accessibility for the stepper component. Only one stepper item should have this attribute at a time.
12
12
  *
13
+ * Additionally, make use of `aria-label` to provide a descriptive detail about the stepper item, especially for screen readers. If this aria-label is not set, it would read out only the label text and doesn't provide enough context for the user.
14
+ *
13
15
  * @dependency mdc-icon
14
16
  * @dependency mdc-text
15
17
  *
@@ -26,6 +26,8 @@ import { DEFAULT, STATUS, STATUS_ICON } from './stepperitem.constants';
26
26
  * This is an uncontrolled component, meaning it does not manage its own state. Instead, it relies on the consumer's to manage the state of each step.
27
27
  * Make sure to set `aria-current="step"` on the current stepper item. It is applicable only when status is `current` or `error-current`. This ensures accessibility for the stepper component. Only one stepper item should have this attribute at a time.
28
28
  *
29
+ * Additionally, make use of `aria-label` to provide a descriptive detail about the stepper item, especially for screen readers. If this aria-label is not set, it would read out only the label text and doesn't provide enough context for the user.
30
+ *
29
31
  * @dependency mdc-icon
30
32
  * @dependency mdc-text
31
33
  *
@@ -12,10 +12,10 @@ const styles = [
12
12
  width: var(--mdc-tablist-width);
13
13
  display: flex;
14
14
  align-items: center;
15
+ }
15
16
 
16
- ::slotted(mdc-tab) {
17
- width: initial;
18
- }
17
+ :host ::slotted(mdc-tab) {
18
+ width: initial;
19
19
  }
20
20
 
21
21
  :host .container {
@@ -33658,7 +33658,7 @@
33658
33658
  "declarations": [
33659
33659
  {
33660
33660
  "kind": "class",
33661
- "description": "stepperitem component is used to represent a single step in a stepper component. It is used within a `mdc-stepper` component to indicate the current step in a process.\nIt can have different statuses such as `completed`, `current`, `incomplete`, `error-current`, and `error-incomplete`.\nThe component supports various visual styles and can be customized with labels, help text, and step numbers.\n\nThis is an uncontrolled component, meaning it does not manage its own state. Instead, it relies on the consumer's to manage the state of each step.\nMake sure to set `aria-current=\"step\"` on the current stepper item. It is applicable only when status is `current` or `error-current`. This ensures accessibility for the stepper component. Only one stepper item should have this attribute at a time.",
33661
+ "description": "stepperitem component is used to represent a single step in a stepper component. It is used within a `mdc-stepper` component to indicate the current step in a process.\nIt can have different statuses such as `completed`, `current`, `incomplete`, `error-current`, and `error-incomplete`.\nThe component supports various visual styles and can be customized with labels, help text, and step numbers.\n\nThis is an uncontrolled component, meaning it does not manage its own state. Instead, it relies on the consumer's to manage the state of each step.\nMake sure to set `aria-current=\"step\"` on the current stepper item. It is applicable only when status is `current` or `error-current`. This ensures accessibility for the stepper component. Only one stepper item should have this attribute at a time.\n\nAdditionally, make use of `aria-label` to provide a descriptive detail about the stepper item, especially for screen readers. If this aria-label is not set, it would read out only the label text and doesn't provide enough context for the user.",
33662
33662
  "name": "StepperItem",
33663
33663
  "cssProperties": [
33664
33664
  {
@@ -33934,7 +33934,7 @@
33934
33934
  "module": "/src/models"
33935
33935
  },
33936
33936
  "tagName": "mdc-stepperitem",
33937
- "jsDoc": "/**\n * stepperitem component is used to represent a single step in a stepper component. It is used within a `mdc-stepper` component to indicate the current step in a process.\n * It can have different statuses such as `completed`, `current`, `incomplete`, `error-current`, and `error-incomplete`.\n * The component supports various visual styles and can be customized with labels, help text, and step numbers.\n *\n * This is an uncontrolled component, meaning it does not manage its own state. Instead, it relies on the consumer's to manage the state of each step.\n * Make sure to set `aria-current=\"step\"` on the current stepper item. It is applicable only when status is `current` or `error-current`. This ensures accessibility for the stepper component. Only one stepper item should have this attribute at a time.\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @tagname mdc-stepperitem\n *\n * @event click - (React: onClick) This event is dispatched when the stepperitem is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the stepperitem.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the stepperitem.\n *\n * @csspart status-container - The container for the status icon or step number.\n * @csspart label-container - The container for the label and help text.\n * @csspart help-text-container - The container for the help text and error icon when applicable.\n * @csspart status-icon - The icon representing the status of the stepper item.\n * @csspart step-number - The text representing the step number.\n * @csspart label - The text representing the label of the stepper item.\n * @csspart help-text - The text providing additional information about the stepper item.\n * @csspart help-icon - The icon representing an error in the stepper item.\n *\n * @cssproperty --mdc-stepperitem-status-container-background - The background color of the status container.\n * @cssproperty --mdc-stepperitem-status-container-border-color - The border color of the status container.\n * @cssproperty --mdc-stepperitem-label-color - The color of the label text.\n * @cssproperty --mdc-stepperitem-help-text-color - The color of the optional label text.\n * @cssproperty --mdc-stepperitem-label-container-background - The background color of the label container.\n */",
33937
+ "jsDoc": "/**\n * stepperitem component is used to represent a single step in a stepper component. It is used within a `mdc-stepper` component to indicate the current step in a process.\n * It can have different statuses such as `completed`, `current`, `incomplete`, `error-current`, and `error-incomplete`.\n * The component supports various visual styles and can be customized with labels, help text, and step numbers.\n *\n * This is an uncontrolled component, meaning it does not manage its own state. Instead, it relies on the consumer's to manage the state of each step.\n * Make sure to set `aria-current=\"step\"` on the current stepper item. It is applicable only when status is `current` or `error-current`. This ensures accessibility for the stepper component. Only one stepper item should have this attribute at a time.\n *\n * Additionally, make use of `aria-label` to provide a descriptive detail about the stepper item, especially for screen readers. If this aria-label is not set, it would read out only the label text and doesn't provide enough context for the user.\n *\n * @dependency mdc-icon\n * @dependency mdc-text\n *\n * @tagname mdc-stepperitem\n *\n * @event click - (React: onClick) This event is dispatched when the stepperitem is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the stepperitem.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the stepperitem.\n *\n * @csspart status-container - The container for the status icon or step number.\n * @csspart label-container - The container for the label and help text.\n * @csspart help-text-container - The container for the help text and error icon when applicable.\n * @csspart status-icon - The icon representing the status of the stepper item.\n * @csspart step-number - The text representing the step number.\n * @csspart label - The text representing the label of the stepper item.\n * @csspart help-text - The text providing additional information about the stepper item.\n * @csspart help-icon - The icon representing an error in the stepper item.\n *\n * @cssproperty --mdc-stepperitem-status-container-background - The background color of the status container.\n * @cssproperty --mdc-stepperitem-status-container-border-color - The border color of the status container.\n * @cssproperty --mdc-stepperitem-label-color - The color of the label text.\n * @cssproperty --mdc-stepperitem-help-text-color - The color of the optional label text.\n * @cssproperty --mdc-stepperitem-label-container-background - The background color of the label container.\n */",
33938
33938
  "customElement": true
33939
33939
  }
33940
33940
  ],
@@ -8,6 +8,8 @@ import Component from '../../components/stepperitem';
8
8
  * This is an uncontrolled component, meaning it does not manage its own state. Instead, it relies on the consumer's to manage the state of each step.
9
9
  * Make sure to set `aria-current="step"` on the current stepper item. It is applicable only when status is `current` or `error-current`. This ensures accessibility for the stepper component. Only one stepper item should have this attribute at a time.
10
10
  *
11
+ * Additionally, make use of `aria-label` to provide a descriptive detail about the stepper item, especially for screen readers. If this aria-label is not set, it would read out only the label text and doesn't provide enough context for the user.
12
+ *
11
13
  * @dependency mdc-icon
12
14
  * @dependency mdc-text
13
15
  *
@@ -10,6 +10,8 @@ import { TAG_NAME } from '../../components/stepperitem/stepperitem.constants';
10
10
  * This is an uncontrolled component, meaning it does not manage its own state. Instead, it relies on the consumer's to manage the state of each step.
11
11
  * Make sure to set `aria-current="step"` on the current stepper item. It is applicable only when status is `current` or `error-current`. This ensures accessibility for the stepper component. Only one stepper item should have this attribute at a time.
12
12
  *
13
+ * Additionally, make use of `aria-label` to provide a descriptive detail about the stepper item, especially for screen readers. If this aria-label is not set, it would read out only the label text and doesn't provide enough context for the user.
14
+ *
13
15
  * @dependency mdc-icon
14
16
  * @dependency mdc-text
15
17
  *
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.101.0",
4
+ "version": "0.101.2",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"