@momentum-design/components 0.142.3 → 0.142.5

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.
@@ -276,6 +276,9 @@ class Select extends ListNavigationMixin(KeyToActionMixin(CaptureDestroyEventFor
276
276
  break;
277
277
  }
278
278
  case 'unselected': {
279
+ if (option !== this.selectedOption) {
280
+ break;
281
+ }
279
282
  // when unselected, check if there is any other option is a selected option,
280
283
  // if there is no selected option, then reset it to placeholder or first option
281
284
  if (firstSelectedOption) {
@@ -18,8 +18,8 @@ declare const Textarea_base: import("../../utils/mixins/index.types").Constructo
18
18
  *
19
19
  * @tagname mdc-textarea
20
20
  *
21
- * @event input - (React: onInput) This event is dispatched when the value of the textarea field changes (every press).
22
- * @event change - (React: onChange) This event is dispatched when the value of the textarea field changes (on blur).
21
+ * @event input - (React: onInput) Dispatched for each edit after the component and form values are updated.
22
+ * @event change - (React: onChange) Re-dispatched when the native textarea commits a value change, usually on blur. In the React wrapper, this differs from React's native textarea onChange, which fires for each edit.
23
23
  * @event focus - (React: onFocus) This event is dispatched when the textarea receives focus.
24
24
  * @event blur - (React: onBlur) This event is dispatched when the textarea loses focus.
25
25
  * @event limitexceeded - (React: onLimitExceeded) This event is dispatched once when the character limit
@@ -24,8 +24,8 @@ import styles from './textarea.styles';
24
24
  /**
25
25
  * @tagname mdc-textarea
26
26
  *
27
- * @event input - (React: onInput) This event is dispatched when the value of the textarea field changes (every press).
28
- * @event change - (React: onChange) This event is dispatched when the value of the textarea field changes (on blur).
27
+ * @event input - (React: onInput) Dispatched for each edit after the component and form values are updated.
28
+ * @event change - (React: onChange) Re-dispatched when the native textarea commits a value change, usually on blur. In the React wrapper, this differs from React's native textarea onChange, which fires for each edit.
29
29
  * @event focus - (React: onFocus) This event is dispatched when the textarea receives focus.
30
30
  * @event blur - (React: onBlur) This event is dispatched when the textarea loses focus.
31
31
  * @event limitexceeded - (React: onLimitExceeded) This event is dispatched once when the character limit
@@ -52024,12 +52024,12 @@
52024
52024
  }
52025
52025
  },
52026
52026
  {
52027
- "description": "(React: onInput) This event is dispatched when the value of the textarea field changes (every press).",
52027
+ "description": "(React: onInput) Dispatched for each edit after the component and form values are updated.",
52028
52028
  "name": "input",
52029
52029
  "reactName": "onInput"
52030
52030
  },
52031
52031
  {
52032
- "description": "(React: onChange) This event is dispatched when the value of the textarea field changes (on blur).",
52032
+ "description": "(React: onChange) Re-dispatched when the native textarea commits a value change, usually on blur. In the React wrapper, this differs from React's native textarea onChange, which fires for each edit.",
52033
52033
  "name": "change",
52034
52034
  "reactName": "onChange"
52035
52035
  },
@@ -52411,7 +52411,7 @@
52411
52411
  "module": "/src/components/formfieldwrapper"
52412
52412
  },
52413
52413
  "tagName": "mdc-textarea",
52414
- "jsDoc": "/**\n * @tagname mdc-textarea\n *\n * @event input - (React: onInput) This event is dispatched when the value of the textarea field changes (every press).\n * @event change - (React: onChange) This event is dispatched when the value of the textarea field changes (on blur).\n * @event focus - (React: onFocus) This event is dispatched when the textarea receives focus.\n * @event blur - (React: onBlur) This event is dispatched when the textarea loses focus.\n * @event limitexceeded - (React: onLimitExceeded) This event is dispatched once when the character limit\n * exceeds or restored.\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-text\n * @dependency mdc-toggletip\n *\n * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.\n * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.\n * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.\n * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.\n *\n * @csspart label - The label element.\n * @csspart label-text - The container for the label and required indicator elements.\n * @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.\n * @csspart info-icon-btn - The info icon button element that is displayed next to the label when the `toggletip-text` property is set.\n * @csspart label-toggletip - The toggletip element that is displayed when the info icon button is clicked.\n * @csspart textarea - The textarea element.\n * @csspart textarea-container - The container element that wraps the textarea and resize button.\n * @csspart textarea-footer - The footer element that contains the character counter.\n * @csspart character-counter - The character counter element.\n * @csspart resize-button - The resize button element (shown when `resizable` is true).\n * @csspart help-text - The helper/validation text element.\n * @csspart helper-icon - The helper/validation icon element that is displayed next to the helper/validation text.\n * @csspart help-text-container - The container for the helper/validation icon and text elements.\n *\n * @cssproperty --mdc-label-font-size - Font size for the label text.\n * @cssproperty --mdc-label-font-weight - Font weight for the label text.\n * @cssproperty --mdc-label-line-height - Line height for the label text.\n * @cssproperty --mdc-label-color - Color for the label text.\n * @cssproperty --mdc-help-text-font-size - Font size for the help text.\n * @cssproperty --mdc-help-text-font-weight - Font weight for the help text.\n * @cssproperty --mdc-help-text-line-height - Line height for the help text.\n * @cssproperty --mdc-help-text-color - Color for the help text.\n * @cssproperty --mdc-required-indicator-color - Color for the required indicator text.\n * @cssproperty --mdc-textarea-text-color - Text color for the textarea field\n * @cssproperty --mdc-textarea-background-color - Background color for the textarea field\n * @cssproperty --mdc-textarea-border-color - Border color for the textarea field\n * @cssproperty --mdc-textarea-text-secondary-normal - Text color for the character counter\n * @cssproperty --mdc-textarea-text-font-size - Font size for the textarea field\n * @cssproperty --mdc-textarea-text-line-height - Line height for the textarea field\n * @cssproperty --mdc-textarea-container-background-color - Background color for the textarea container\n */",
52414
+ "jsDoc": "/**\n * @tagname mdc-textarea\n *\n * @event input - (React: onInput) Dispatched for each edit after the component and form values are updated.\n * @event change - (React: onChange) Re-dispatched when the native textarea commits a value change, usually on blur. In the React wrapper, this differs from React's native textarea onChange, which fires for each edit.\n * @event focus - (React: onFocus) This event is dispatched when the textarea receives focus.\n * @event blur - (React: onBlur) This event is dispatched when the textarea loses focus.\n * @event limitexceeded - (React: onLimitExceeded) This event is dispatched once when the character limit\n * exceeds or restored.\n *\n * @dependency mdc-button\n * @dependency mdc-icon\n * @dependency mdc-text\n * @dependency mdc-toggletip\n *\n * @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.\n * @slot toggletip - Slot for the toggletip info icon button. If not provided, the `toggletip-text` property will be used to render the info icon button and toggletip.\n * @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.\n * @slot help-text - Slot for the helper/validation text. If not provided, the `helpText` property will be used to render the helper/validation text.\n *\n * @csspart label - The label element.\n * @csspart label-text - The container for the label and required indicator elements.\n * @csspart required-indicator - The required indicator element that is displayed next to the label when the `required` property is set to true.\n * @csspart info-icon-btn - The info icon button element that is displayed next to the label when the `toggletip-text` property is set.\n * @csspart label-toggletip - The toggletip element that is displayed when the info icon button is clicked.\n * @csspart textarea - The textarea element.\n * @csspart textarea-container - The container element that wraps the textarea and resize button.\n * @csspart textarea-footer - The footer element that contains the character counter.\n * @csspart character-counter - The character counter element.\n * @csspart resize-button - The resize button element (shown when `resizable` is true).\n * @csspart help-text - The helper/validation text element.\n * @csspart helper-icon - The helper/validation icon element that is displayed next to the helper/validation text.\n * @csspart help-text-container - The container for the helper/validation icon and text elements.\n *\n * @cssproperty --mdc-label-font-size - Font size for the label text.\n * @cssproperty --mdc-label-font-weight - Font weight for the label text.\n * @cssproperty --mdc-label-line-height - Line height for the label text.\n * @cssproperty --mdc-label-color - Color for the label text.\n * @cssproperty --mdc-help-text-font-size - Font size for the help text.\n * @cssproperty --mdc-help-text-font-weight - Font weight for the help text.\n * @cssproperty --mdc-help-text-line-height - Line height for the help text.\n * @cssproperty --mdc-help-text-color - Color for the help text.\n * @cssproperty --mdc-required-indicator-color - Color for the required indicator text.\n * @cssproperty --mdc-textarea-text-color - Text color for the textarea field\n * @cssproperty --mdc-textarea-background-color - Background color for the textarea field\n * @cssproperty --mdc-textarea-border-color - Border color for the textarea field\n * @cssproperty --mdc-textarea-text-secondary-normal - Text color for the character counter\n * @cssproperty --mdc-textarea-text-font-size - Font size for the textarea field\n * @cssproperty --mdc-textarea-text-line-height - Line height for the textarea field\n * @cssproperty --mdc-textarea-container-background-color - Background color for the textarea container\n */",
52415
52415
  "customElement": true
52416
52416
  }
52417
52417
  ],
@@ -17,8 +17,8 @@ import type { Events as EventsInherited } from '../../utils/mixins/CharacterLimi
17
17
  *
18
18
  * @tagname mdc-textarea
19
19
  *
20
- * @event input - (React: onInput) This event is dispatched when the value of the textarea field changes (every press).
21
- * @event change - (React: onChange) This event is dispatched when the value of the textarea field changes (on blur).
20
+ * @event input - (React: onInput) Dispatched for each edit after the component and form values are updated.
21
+ * @event change - (React: onChange) Re-dispatched when the native textarea commits a value change, usually on blur. In the React wrapper, this differs from React's native textarea onChange, which fires for each edit.
22
22
  * @event focus - (React: onFocus) This event is dispatched when the textarea receives focus.
23
23
  * @event blur - (React: onBlur) This event is dispatched when the textarea loses focus.
24
24
  * @event limitexceeded - (React: onLimitExceeded) This event is dispatched once when the character limit
@@ -5,8 +5,8 @@ import { TAG_NAME } from '../../components/textarea/textarea.constants';
5
5
  /**
6
6
  * @tagname mdc-textarea
7
7
  *
8
- * @event input - (React: onInput) This event is dispatched when the value of the textarea field changes (every press).
9
- * @event change - (React: onChange) This event is dispatched when the value of the textarea field changes (on blur).
8
+ * @event input - (React: onInput) Dispatched for each edit after the component and form values are updated.
9
+ * @event change - (React: onChange) Re-dispatched when the native textarea commits a value change, usually on blur. In the React wrapper, this differs from React's native textarea onChange, which fires for each edit.
10
10
  * @event focus - (React: onFocus) This event is dispatched when the textarea receives focus.
11
11
  * @event blur - (React: onBlur) This event is dispatched when the textarea loses focus.
12
12
  * @event limitexceeded - (React: onLimitExceeded) This event is dispatched once when the character limit
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.142.3",
4
+ "version": "0.142.5",
5
5
  "engines": {
6
6
  "node": ">=24.0.0",
7
7
  "npm": ">=8.0.0"