@momentum-design/components 0.129.11 → 0.129.13

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.
@@ -5,18 +5,20 @@ import { TAG_NAME } from '../../components/buttonlink/buttonlink.constants';
5
5
  /**
6
6
  * `mdc-buttonlink` combines the functional behavior of `mdc-linksimple` with the visual and structural
7
7
  * features of `mdc-button`. This includes support for variants, sizing, and optional
8
- * prefix and postfix icons via slots.
8
+ * prefix and postfix icons.
9
9
  *
10
10
  * ### Features:
11
- * - Behaves like an link while visually resembling a button.
12
- * - Supports slots for `prefix-icon` and `postfix-icon`.
11
+ * - Behaves like a link while visually resembling a button.
13
12
  * - Customizable size, color, and variant through attributes.
13
+ * - Supports prefix and postfix icons.
14
14
  * - Inherits accessibility and keyboard interaction support from `mdc-linksimple`.
15
15
  *
16
16
  * @dependency mdc-icon
17
17
  *
18
18
  * @tagname mdc-buttonlink
19
19
  *
20
+ * @slot default - The default slot for buttonlink text content.
21
+ *
20
22
  * @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
21
23
  * @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
22
24
  * @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
@@ -27,11 +29,11 @@ import { TAG_NAME } from '../../components/buttonlink/buttonlink.constants';
27
29
  * @csspart button-text - The slot containing the buttonlink text.
28
30
  * @csspart postfix-icon - The postfix icon element.
29
31
  *
30
- * @cssproperty --mdc-button-height - Height for button size
31
- * @cssproperty --mdc-button-background - Background color of the button
32
- * @cssproperty --mdc-button-border-color - Borer color of the button
33
- * @cssproperty --mdc-button-text-color - Text color of the button
34
- * @cssproperty --mdc-button-line-height - Line height of the button text
32
+ * @cssproperty --mdc-button-height - Height of the buttonlink
33
+ * @cssproperty --mdc-button-background - Background color of the buttonlink
34
+ * @cssproperty --mdc-button-border-color - Border color of the buttonlink
35
+ * @cssproperty --mdc-button-text-color - Text color of the buttonlink
36
+ * @cssproperty --mdc-button-line-height - Line height of the buttonlink text
35
37
  * @cssproperty --mdc-button-prefix-icon-size - Size of the prefix icon
36
38
  * @cssproperty --mdc-button-postfix-icon-size - Size of the postfix icon
37
39
  */
@@ -1,5 +1,6 @@
1
1
  import { type EventName } from '@lit/react';
2
2
  import Component from '../../components/linkbutton';
3
+ import type { Events } from '../../components/linkbutton/linkbutton.types';
3
4
  import type { Events as EventsInherited } from '../../components/buttonsimple/buttonsimple.types';
4
5
  /**
5
6
  * `mdc-linkbutton` visually mimics a hyperlink while functioning as a button. It blends the appearance of `mdc-link` with the accessibility and interaction capabilities of `mdc-button`.
@@ -19,6 +20,7 @@ import type { Events as EventsInherited } from '../../components/buttonsimple/bu
19
20
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the linkbutton.
20
21
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the linkbutton.
21
22
  * @event focus - (React: onFocus) This event is dispatched when the linkbutton receives focus.
23
+ * @event blur - (React: onBlur) This event is dispatched when the linkbutton loses focus.
22
24
  *
23
25
  * @cssproperty --mdc-link-border-radius - Border radius of the linkbutton.
24
26
  * @cssproperty --mdc-link-color-active - Color of the linkbutton’s child content in the active state.
@@ -32,6 +34,7 @@ import type { Events as EventsInherited } from '../../components/buttonsimple/bu
32
34
  * @cssproperty --mdc-button-height - Height for button size
33
35
  */
34
36
  declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
37
+ onBlur: EventName<Events["onBlurEvent"]>;
35
38
  onClick: EventName<EventsInherited["onClickEvent"]>;
36
39
  onKeyDown: EventName<EventsInherited["onKeyDownEvent"]>;
37
40
  onKeyUp: EventName<EventsInherited["onKeyUpEvent"]>;
@@ -20,6 +20,7 @@ import { TAG_NAME } from '../../components/linkbutton/linkbutton.constants';
20
20
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the linkbutton.
21
21
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the linkbutton.
22
22
  * @event focus - (React: onFocus) This event is dispatched when the linkbutton receives focus.
23
+ * @event blur - (React: onBlur) This event is dispatched when the linkbutton loses focus.
23
24
  *
24
25
  * @cssproperty --mdc-link-border-radius - Border radius of the linkbutton.
25
26
  * @cssproperty --mdc-link-color-active - Color of the linkbutton’s child content in the active state.
@@ -37,6 +38,7 @@ const reactWrapper = createComponent({
37
38
  elementClass: Component,
38
39
  react: React,
39
40
  events: {
41
+ onBlur: 'blur',
40
42
  onClick: 'click',
41
43
  onKeyDown: 'keydown',
42
44
  onKeyUp: 'keyup',
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.129.11",
4
+ "version": "0.129.13",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"