@momentum-design/components 0.129.12 → 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 @@ declare const ButtonLink_base: import("../../utils/mixins/index.types").Construc
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,20 +29,20 @@ declare const ButtonLink_base: import("../../utils/mixins/index.types").Construc
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
  */
38
40
  declare class ButtonLink extends ButtonLink_base {
39
41
  /**
40
- * ButtonLink sizing is based on the buttonlink type.
41
- * - **Pill buttonlink**: 40, 32, 28, 24.
42
- * - **Icon buttonlink**: 64, 52, 40, 32, 28, 24.
43
- * - Tertiary icon buttonlink can also be 20.
42
+ * Size of the buttonlink, determined by its type.
43
+ * - **Pill buttonlink**: 40 (2.5rem), 32 (2rem), 28 (1.75rem), 24 (1.5rem)
44
+ * - **Icon buttonlink**: 64 (4rem), 52 (3.25rem), 40 (2.5rem), 32 (2rem), 28 (1.75rem), 24 (1.5rem)
45
+ * - **Tertiary icon buttonlink** can also use: 20 (1.25rem)
44
46
  * @default 32
45
47
  */
46
48
  size: PillButtonSize | IconButtonSize;
@@ -17,18 +17,20 @@ import styles from './buttonlink.styles';
17
17
  /**
18
18
  * `mdc-buttonlink` combines the functional behavior of `mdc-linksimple` with the visual and structural
19
19
  * features of `mdc-button`. This includes support for variants, sizing, and optional
20
- * prefix and postfix icons via slots.
20
+ * prefix and postfix icons.
21
21
  *
22
22
  * ### Features:
23
- * - Behaves like an link while visually resembling a button.
24
- * - Supports slots for `prefix-icon` and `postfix-icon`.
23
+ * - Behaves like a link while visually resembling a button.
25
24
  * - Customizable size, color, and variant through attributes.
25
+ * - Supports prefix and postfix icons.
26
26
  * - Inherits accessibility and keyboard interaction support from `mdc-linksimple`.
27
27
  *
28
28
  * @dependency mdc-icon
29
29
  *
30
30
  * @tagname mdc-buttonlink
31
31
  *
32
+ * @slot default - The default slot for buttonlink text content.
33
+ *
32
34
  * @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
33
35
  * @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
34
36
  * @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
@@ -39,11 +41,11 @@ import styles from './buttonlink.styles';
39
41
  * @csspart button-text - The slot containing the buttonlink text.
40
42
  * @csspart postfix-icon - The postfix icon element.
41
43
  *
42
- * @cssproperty --mdc-button-height - Height for button size
43
- * @cssproperty --mdc-button-background - Background color of the button
44
- * @cssproperty --mdc-button-border-color - Borer color of the button
45
- * @cssproperty --mdc-button-text-color - Text color of the button
46
- * @cssproperty --mdc-button-line-height - Line height of the button text
44
+ * @cssproperty --mdc-button-height - Height of the buttonlink
45
+ * @cssproperty --mdc-button-background - Background color of the buttonlink
46
+ * @cssproperty --mdc-button-border-color - Border color of the buttonlink
47
+ * @cssproperty --mdc-button-text-color - Text color of the buttonlink
48
+ * @cssproperty --mdc-button-line-height - Line height of the buttonlink text
47
49
  * @cssproperty --mdc-button-prefix-icon-size - Size of the prefix icon
48
50
  * @cssproperty --mdc-button-postfix-icon-size - Size of the postfix icon
49
51
  */
@@ -51,10 +53,10 @@ class ButtonLink extends ButtonComponentMixin(Linksimple) {
51
53
  constructor() {
52
54
  super(...arguments);
53
55
  /**
54
- * ButtonLink sizing is based on the buttonlink type.
55
- * - **Pill buttonlink**: 40, 32, 28, 24.
56
- * - **Icon buttonlink**: 64, 52, 40, 32, 28, 24.
57
- * - Tertiary icon buttonlink can also be 20.
56
+ * Size of the buttonlink, determined by its type.
57
+ * - **Pill buttonlink**: 40 (2.5rem), 32 (2rem), 28 (1.75rem), 24 (1.5rem)
58
+ * - **Icon buttonlink**: 64 (4rem), 52 (3.25rem), 40 (2.5rem), 32 (2rem), 28 (1.75rem), 24 (1.5rem)
59
+ * - **Tertiary icon buttonlink** can also use: 20 (1.25rem)
58
60
  * @default 32
59
61
  */
60
62
  this.size = DEFAULTS.SIZE;
@@ -20,6 +20,7 @@ declare const LinkButton_base: import("../../utils/mixins/index.types").Construc
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.
@@ -34,21 +35,24 @@ declare const LinkButton_base: import("../../utils/mixins/index.types").Construc
34
35
  */
35
36
  declare class LinkButton extends LinkButton_base {
36
37
  /**
37
- * Sets the size of the linkbutton.
38
- * Acceptable values:
39
- * - 12
40
- * - 14
41
- * - 16
38
+ * Size of the linkbutton text and icon.
39
+ * - **12**: 0.75rem font size
40
+ * - **14**: 0.875rem font size
41
+ * - **16**: 1rem font size (default)
42
42
  * @default 16
43
43
  */
44
44
  size: LinkButtonSize;
45
45
  /**
46
- * The linkbutton can be inline or standalone.
46
+ * Display mode of the linkbutton.
47
+ * - `false`: Standalone display (default)
48
+ * - `true`: Inline display within text flow
47
49
  * @default false
48
50
  */
49
51
  inline: boolean;
50
52
  /**
51
- * The linkbutton color can be inverted by setting the inverted attribute to true.
53
+ * Color scheme of the linkbutton.
54
+ * - `false`: Normal color scheme for light backgrounds (default)
55
+ * - `true`: Inverted color scheme for dark backgrounds
52
56
  * @default false
53
57
  */
54
58
  inverted: boolean;
@@ -58,6 +62,7 @@ declare class LinkButton extends LinkButton_base {
58
62
  * Sets the `size` attribute for the linkbutton, falling back to the default if the value is invalid.
59
63
  *
60
64
  * @param size - The desired link size.
65
+ * @internal
61
66
  */
62
67
  private setSize;
63
68
  render(): import("lit-html").TemplateResult<1>;
@@ -33,6 +33,7 @@ import styles from './linkbutton.styles';
33
33
  * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the linkbutton.
34
34
  * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the linkbutton.
35
35
  * @event focus - (React: onFocus) This event is dispatched when the linkbutton receives focus.
36
+ * @event blur - (React: onBlur) This event is dispatched when the linkbutton loses focus.
36
37
  *
37
38
  * @cssproperty --mdc-link-border-radius - Border radius of the linkbutton.
38
39
  * @cssproperty --mdc-link-color-active - Color of the linkbutton’s child content in the active state.
@@ -49,21 +50,24 @@ class LinkButton extends IconNameMixin(Buttonsimple) {
49
50
  constructor() {
50
51
  super(...arguments);
51
52
  /**
52
- * Sets the size of the linkbutton.
53
- * Acceptable values:
54
- * - 12
55
- * - 14
56
- * - 16
53
+ * Size of the linkbutton text and icon.
54
+ * - **12**: 0.75rem font size
55
+ * - **14**: 0.875rem font size
56
+ * - **16**: 1rem font size (default)
57
57
  * @default 16
58
58
  */
59
59
  this.size = DEFAULTS.SIZE;
60
60
  /**
61
- * The linkbutton can be inline or standalone.
61
+ * Display mode of the linkbutton.
62
+ * - `false`: Standalone display (default)
63
+ * - `true`: Inline display within text flow
62
64
  * @default false
63
65
  */
64
66
  this.inline = DEFAULTS.INLINE;
65
67
  /**
66
- * The linkbutton color can be inverted by setting the inverted attribute to true.
68
+ * Color scheme of the linkbutton.
69
+ * - `false`: Normal color scheme for light backgrounds (default)
70
+ * - `true`: Inverted color scheme for dark backgrounds
67
71
  * @default false
68
72
  */
69
73
  this.inverted = DEFAULTS.INVERTED;
@@ -83,6 +87,7 @@ class LinkButton extends IconNameMixin(Buttonsimple) {
83
87
  * Sets the `size` attribute for the linkbutton, falling back to the default if the value is invalid.
84
88
  *
85
89
  * @param size - The desired link size.
90
+ * @internal
86
91
  */
87
92
  setSize(size) {
88
93
  this.setAttribute('size', Object.values(LINKBUTTON_SIZES).includes(size) ? `${size}` : DEFAULTS.SIZE.toString());
@@ -54,6 +54,12 @@ declare class Linksimple extends Linksimple_base {
54
54
  rel?: string;
55
55
  /**
56
56
  * Optional download attribute to instruct browsers to download the linked resource.
57
+ *
58
+ * Valid values:
59
+ * - empty string: browser suggests a name for the downloaded file
60
+ * - string: name of the downloaded file
61
+ *
62
+ * More details in the [Anchor element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download) docs.
57
63
  */
58
64
  download?: string;
59
65
  /**
@@ -6078,27 +6078,27 @@
6078
6078
  "declarations": [
6079
6079
  {
6080
6080
  "kind": "class",
6081
- "description": "`mdc-buttonlink` combines the functional behavior of `mdc-linksimple` with the visual and structural\nfeatures of `mdc-button`. This includes support for variants, sizing, and optional\nprefix and postfix icons via slots.\n\n### Features:\n- Behaves like an link while visually resembling a button.\n- Supports slots for `prefix-icon` and `postfix-icon`.\n- Customizable size, color, and variant through attributes.\n- Inherits accessibility and keyboard interaction support from `mdc-linksimple`.",
6081
+ "description": "`mdc-buttonlink` combines the functional behavior of `mdc-linksimple` with the visual and structural\nfeatures of `mdc-button`. This includes support for variants, sizing, and optional\nprefix and postfix icons.\n\n### Features:\n- Behaves like a link while visually resembling a button.\n- Customizable size, color, and variant through attributes.\n- Supports prefix and postfix icons.\n- Inherits accessibility and keyboard interaction support from `mdc-linksimple`.",
6082
6082
  "name": "ButtonLink",
6083
6083
  "cssProperties": [
6084
6084
  {
6085
- "description": "Height for button size",
6085
+ "description": "Height of the buttonlink",
6086
6086
  "name": "--mdc-button-height"
6087
6087
  },
6088
6088
  {
6089
- "description": "Background color of the button",
6089
+ "description": "Background color of the buttonlink",
6090
6090
  "name": "--mdc-button-background"
6091
6091
  },
6092
6092
  {
6093
- "description": "Borer color of the button",
6093
+ "description": "Border color of the buttonlink",
6094
6094
  "name": "--mdc-button-border-color"
6095
6095
  },
6096
6096
  {
6097
- "description": "Text color of the button",
6097
+ "description": "Text color of the buttonlink",
6098
6098
  "name": "--mdc-button-text-color"
6099
6099
  },
6100
6100
  {
6101
- "description": "Line height of the button text",
6101
+ "description": "Line height of the buttonlink text",
6102
6102
  "name": "--mdc-button-line-height"
6103
6103
  },
6104
6104
  {
@@ -6204,6 +6204,12 @@
6204
6204
  "name": "postfix-icon"
6205
6205
  }
6206
6206
  ],
6207
+ "slots": [
6208
+ {
6209
+ "description": "The default slot for buttonlink text content.",
6210
+ "name": "default"
6211
+ }
6212
+ ],
6207
6213
  "members": [
6208
6214
  {
6209
6215
  "kind": "field",
@@ -6255,7 +6261,7 @@
6255
6261
  "type": {
6256
6262
  "text": "string | undefined"
6257
6263
  },
6258
- "description": "Optional download attribute to instruct browsers to download the linked resource.",
6264
+ "description": "Optional download attribute to instruct browsers to download the linked resource.\n\nValid values:\n- empty string: browser suggests a name for the downloaded file\n- string: name of the downloaded file\n\nMore details in the [Anchor element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download) docs.",
6259
6265
  "attribute": "download",
6260
6266
  "reflects": true,
6261
6267
  "inheritedFrom": {
@@ -6539,7 +6545,7 @@
6539
6545
  "type": {
6540
6546
  "text": "PillButtonSize | IconButtonSize"
6541
6547
  },
6542
- "description": "ButtonLink sizing is based on the buttonlink type.\n- **Pill buttonlink**: 40, 32, 28, 24.\n- **Icon buttonlink**: 64, 52, 40, 32, 28, 24.\n- Tertiary icon buttonlink can also be 20.",
6548
+ "description": "Size of the buttonlink, determined by its type.\n- **Pill buttonlink**: 40 (2.5rem), 32 (2rem), 28 (1.75rem), 24 (1.5rem)\n- **Icon buttonlink**: 64 (4rem), 52 (3.25rem), 40 (2.5rem), 32 (2rem), 28 (1.75rem), 24 (1.5rem)\n- **Tertiary icon buttonlink** can also use: 20 (1.25rem)",
6543
6549
  "default": "32",
6544
6550
  "attribute": "size",
6545
6551
  "reflects": true
@@ -6643,7 +6649,7 @@
6643
6649
  "type": {
6644
6650
  "text": "PillButtonSize | IconButtonSize"
6645
6651
  },
6646
- "description": "ButtonLink sizing is based on the buttonlink type.\n- **Pill buttonlink**: 40, 32, 28, 24.\n- **Icon buttonlink**: 64, 52, 40, 32, 28, 24.\n- Tertiary icon buttonlink can also be 20.",
6652
+ "description": "Size of the buttonlink, determined by its type.\n- **Pill buttonlink**: 40 (2.5rem), 32 (2rem), 28 (1.75rem), 24 (1.5rem)\n- **Icon buttonlink**: 64 (4rem), 52 (3.25rem), 40 (2.5rem), 32 (2rem), 28 (1.75rem), 24 (1.5rem)\n- **Tertiary icon buttonlink** can also use: 20 (1.25rem)",
6647
6653
  "default": "32",
6648
6654
  "fieldName": "size"
6649
6655
  },
@@ -6800,7 +6806,7 @@
6800
6806
  "type": {
6801
6807
  "text": "string | undefined"
6802
6808
  },
6803
- "description": "Optional download attribute to instruct browsers to download the linked resource.",
6809
+ "description": "Optional download attribute to instruct browsers to download the linked resource.\n\nValid values:\n- empty string: browser suggests a name for the downloaded file\n- string: name of the downloaded file\n\nMore details in the [Anchor element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download) docs.",
6804
6810
  "fieldName": "download",
6805
6811
  "inheritedFrom": {
6806
6812
  "name": "Linksimple",
@@ -6867,7 +6873,7 @@
6867
6873
  "module": "/src/components/linksimple/linksimple.component"
6868
6874
  },
6869
6875
  "tagName": "mdc-buttonlink",
6870
- "jsDoc": "/**\n * `mdc-buttonlink` combines the functional behavior of `mdc-linksimple` with the visual and structural\n * features of `mdc-button`. This includes support for variants, sizing, and optional\n * prefix and postfix icons via slots.\n *\n * ### Features:\n * - Behaves like an link while visually resembling a button.\n * - Supports slots for `prefix-icon` and `postfix-icon`.\n * - Customizable size, color, and variant through attributes.\n * - Inherits accessibility and keyboard interaction support from `mdc-linksimple`.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-buttonlink\n *\n * @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.\n * @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.\n * @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.\n * @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.\n *\n * @csspart anchor - The anchor element that wraps the buttonlink content.\n * @csspart prefix-icon - The prefix icon element.\n * @csspart button-text - The slot containing the buttonlink text.\n * @csspart postfix-icon - The postfix icon element.\n *\n * @cssproperty --mdc-button-height - Height for button size\n * @cssproperty --mdc-button-background - Background color of the button\n * @cssproperty --mdc-button-border-color - Borer color of the button\n * @cssproperty --mdc-button-text-color - Text color of the button\n * @cssproperty --mdc-button-line-height - Line height of the button text\n * @cssproperty --mdc-button-prefix-icon-size - Size of the prefix icon\n * @cssproperty --mdc-button-postfix-icon-size - Size of the postfix icon\n */",
6876
+ "jsDoc": "/**\n * `mdc-buttonlink` combines the functional behavior of `mdc-linksimple` with the visual and structural\n * features of `mdc-button`. This includes support for variants, sizing, and optional\n * prefix and postfix icons.\n *\n * ### Features:\n * - Behaves like a link while visually resembling a button.\n * - Customizable size, color, and variant through attributes.\n * - Supports prefix and postfix icons.\n * - Inherits accessibility and keyboard interaction support from `mdc-linksimple`.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-buttonlink\n *\n * @slot default - The default slot for buttonlink text content.\n *\n * @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.\n * @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.\n * @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.\n * @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.\n *\n * @csspart anchor - The anchor element that wraps the buttonlink content.\n * @csspart prefix-icon - The prefix icon element.\n * @csspart button-text - The slot containing the buttonlink text.\n * @csspart postfix-icon - The postfix icon element.\n *\n * @cssproperty --mdc-button-height - Height of the buttonlink\n * @cssproperty --mdc-button-background - Background color of the buttonlink\n * @cssproperty --mdc-button-border-color - Border color of the buttonlink\n * @cssproperty --mdc-button-text-color - Text color of the buttonlink\n * @cssproperty --mdc-button-line-height - Line height of the buttonlink text\n * @cssproperty --mdc-button-prefix-icon-size - Size of the prefix icon\n * @cssproperty --mdc-button-postfix-icon-size - Size of the postfix icon\n */",
6871
6877
  "customElement": true
6872
6878
  }
6873
6879
  ],
@@ -20622,7 +20628,7 @@
20622
20628
  "type": {
20623
20629
  "text": "string | undefined"
20624
20630
  },
20625
- "description": "Optional download attribute to instruct browsers to download the linked resource.",
20631
+ "description": "Optional download attribute to instruct browsers to download the linked resource.\n\nValid values:\n- empty string: browser suggests a name for the downloaded file\n- string: name of the downloaded file\n\nMore details in the [Anchor element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download) docs.",
20626
20632
  "attribute": "download",
20627
20633
  "reflects": true,
20628
20634
  "inheritedFrom": {
@@ -20995,7 +21001,7 @@
20995
21001
  "type": {
20996
21002
  "text": "string | undefined"
20997
21003
  },
20998
- "description": "Optional download attribute to instruct browsers to download the linked resource.",
21004
+ "description": "Optional download attribute to instruct browsers to download the linked resource.\n\nValid values:\n- empty string: browser suggests a name for the downloaded file\n- string: name of the downloaded file\n\nMore details in the [Anchor element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download) docs.",
20999
21005
  "fieldName": "download",
21000
21006
  "inheritedFrom": {
21001
21007
  "name": "Linksimple",
@@ -21372,7 +21378,7 @@
21372
21378
  "type": {
21373
21379
  "text": "boolean"
21374
21380
  },
21375
- "description": "The linkbutton can be inline or standalone.",
21381
+ "description": "Display mode of the linkbutton.\n- `false`: Standalone display (default)\n- `true`: Inline display within text flow",
21376
21382
  "default": "false",
21377
21383
  "attribute": "inline",
21378
21384
  "reflects": true
@@ -21383,7 +21389,7 @@
21383
21389
  "type": {
21384
21390
  "text": "boolean"
21385
21391
  },
21386
- "description": "The linkbutton color can be inverted by setting the inverted attribute to true.",
21392
+ "description": "Color scheme of the linkbutton.\n- `false`: Normal color scheme for light backgrounds (default)\n- `true`: Inverted color scheme for dark backgrounds",
21387
21393
  "default": "false",
21388
21394
  "attribute": "inverted",
21389
21395
  "reflects": true
@@ -21470,21 +21476,6 @@
21470
21476
  "module": "components/buttonsimple/buttonsimple.component.js"
21471
21477
  }
21472
21478
  },
21473
- {
21474
- "kind": "method",
21475
- "name": "setSize",
21476
- "privacy": "private",
21477
- "parameters": [
21478
- {
21479
- "name": "size",
21480
- "type": {
21481
- "text": "LinkButtonSize"
21482
- },
21483
- "description": "The desired link size."
21484
- }
21485
- ],
21486
- "description": "Sets the `size` attribute for the linkbutton, falling back to the default if the value is invalid."
21487
- },
21488
21479
  {
21489
21480
  "kind": "method",
21490
21481
  "name": "setSoftDisabled",
@@ -21518,7 +21509,7 @@
21518
21509
  "type": {
21519
21510
  "text": "ButtonSize"
21520
21511
  },
21521
- "description": "Sets the size of the linkbutton.\nAcceptable values:\n- 12\n- 14\n- 16",
21512
+ "description": "Size of the linkbutton text and icon.\n- **12**: 0.75rem font size\n- **14**: 0.875rem font size\n- **16**: 1rem font size (default)",
21522
21513
  "default": "16",
21523
21514
  "attribute": "size",
21524
21515
  "reflects": true,
@@ -21632,6 +21623,11 @@
21632
21623
  "name": "Buttonsimple",
21633
21624
  "module": "src/components/buttonsimple/buttonsimple.component.ts"
21634
21625
  }
21626
+ },
21627
+ {
21628
+ "description": "(React: onBlur) This event is dispatched when the linkbutton loses focus.",
21629
+ "name": "blur",
21630
+ "reactName": "onBlur"
21635
21631
  }
21636
21632
  ],
21637
21633
  "attributes": [
@@ -21640,7 +21636,7 @@
21640
21636
  "type": {
21641
21637
  "text": "ButtonSize"
21642
21638
  },
21643
- "description": "Sets the size of the linkbutton.\nAcceptable values:\n- 12\n- 14\n- 16",
21639
+ "description": "Size of the linkbutton text and icon.\n- **12**: 0.75rem font size\n- **14**: 0.875rem font size\n- **16**: 1rem font size (default)",
21644
21640
  "default": "16",
21645
21641
  "fieldName": "size",
21646
21642
  "inheritedFrom": {
@@ -21653,7 +21649,7 @@
21653
21649
  "type": {
21654
21650
  "text": "boolean"
21655
21651
  },
21656
- "description": "The linkbutton can be inline or standalone.",
21652
+ "description": "Display mode of the linkbutton.\n- `false`: Standalone display (default)\n- `true`: Inline display within text flow",
21657
21653
  "default": "false",
21658
21654
  "fieldName": "inline"
21659
21655
  },
@@ -21662,7 +21658,7 @@
21662
21658
  "type": {
21663
21659
  "text": "boolean"
21664
21660
  },
21665
- "description": "The linkbutton color can be inverted by setting the inverted attribute to true.",
21661
+ "description": "Color scheme of the linkbutton.\n- `false`: Normal color scheme for light backgrounds (default)\n- `true`: Inverted color scheme for dark backgrounds",
21666
21662
  "default": "false",
21667
21663
  "fieldName": "inverted"
21668
21664
  },
@@ -21818,7 +21814,7 @@
21818
21814
  "module": "/src/components/buttonsimple/buttonsimple.component"
21819
21815
  },
21820
21816
  "tagName": "mdc-linkbutton",
21821
- "jsDoc": "/**\n * `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`.\n *\n * ### Features:\n * - Looks like a link, behaves like a button.\n * - Supports slots for a text label and an optional trailing icon.\n * - Inherits accessibility and keyboard interaction behavior from `mdc-buttonsimple`.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-linkbutton\n *\n * @slot - Text label of the linkbutton.\n *\n * @event click - (React: onClick) This event is dispatched when the linkbutton is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the linkbutton.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the linkbutton.\n * @event focus - (React: onFocus) This event is dispatched when the linkbutton receives focus.\n *\n * @cssproperty --mdc-link-border-radius - Border radius of the linkbutton.\n * @cssproperty --mdc-link-color-active - Color of the linkbutton’s child content in the active state.\n * @cssproperty --mdc-link-color-disabled - Color of the linkbutton’s child content in the disabled state.\n * @cssproperty --mdc-link-color-hover - Color of the linkbutton’s child content in the hover state.\n * @cssproperty --mdc-link-color-normal - Color of the linkbutton’s child content in the normal state.\n * @cssproperty --mdc-link-inverted-color-active - Color of the inverted linkbutton’s child content in the active state.\n * @cssproperty --mdc-link-inverted-color-disabled - Color of the inverted linkbutton’s child content in the disabled state.\n * @cssproperty --mdc-link-inverted-color-hover - Color of the inverted linkbutton’s child content in the hover state.\n * @cssproperty --mdc-link-inverted-color-normal - Color of the inverted linkbutton’s child content in the normal state.\n * @cssproperty --mdc-button-height - Height for button size\n */",
21817
+ "jsDoc": "/**\n * `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`.\n *\n * ### Features:\n * - Looks like a link, behaves like a button.\n * - Supports slots for a text label and an optional trailing icon.\n * - Inherits accessibility and keyboard interaction behavior from `mdc-buttonsimple`.\n *\n * @dependency mdc-icon\n *\n * @tagname mdc-linkbutton\n *\n * @slot - Text label of the linkbutton.\n *\n * @event click - (React: onClick) This event is dispatched when the linkbutton is clicked.\n * @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the linkbutton.\n * @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the linkbutton.\n * @event focus - (React: onFocus) This event is dispatched when the linkbutton receives focus.\n * @event blur - (React: onBlur) This event is dispatched when the linkbutton loses focus.\n *\n * @cssproperty --mdc-link-border-radius - Border radius of the linkbutton.\n * @cssproperty --mdc-link-color-active - Color of the linkbutton’s child content in the active state.\n * @cssproperty --mdc-link-color-disabled - Color of the linkbutton’s child content in the disabled state.\n * @cssproperty --mdc-link-color-hover - Color of the linkbutton’s child content in the hover state.\n * @cssproperty --mdc-link-color-normal - Color of the linkbutton’s child content in the normal state.\n * @cssproperty --mdc-link-inverted-color-active - Color of the inverted linkbutton’s child content in the active state.\n * @cssproperty --mdc-link-inverted-color-disabled - Color of the inverted linkbutton’s child content in the disabled state.\n * @cssproperty --mdc-link-inverted-color-hover - Color of the inverted linkbutton’s child content in the hover state.\n * @cssproperty --mdc-link-inverted-color-normal - Color of the inverted linkbutton’s child content in the normal state.\n * @cssproperty --mdc-button-height - Height for button size\n */",
21822
21818
  "customElement": true
21823
21819
  }
21824
21820
  ],
@@ -21922,7 +21918,7 @@
21922
21918
  "type": {
21923
21919
  "text": "string | undefined"
21924
21920
  },
21925
- "description": "Optional download attribute to instruct browsers to download the linked resource.",
21921
+ "description": "Optional download attribute to instruct browsers to download the linked resource.\n\nValid values:\n- empty string: browser suggests a name for the downloaded file\n- string: name of the downloaded file\n\nMore details in the [Anchor element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download) docs.",
21926
21922
  "attribute": "download",
21927
21923
  "reflects": true
21928
21924
  },
@@ -22124,7 +22120,7 @@
22124
22120
  "type": {
22125
22121
  "text": "string | undefined"
22126
22122
  },
22127
- "description": "Optional download attribute to instruct browsers to download the linked resource.",
22123
+ "description": "Optional download attribute to instruct browsers to download the linked resource.\n\nValid values:\n- empty string: browser suggests a name for the downloaded file\n- string: name of the downloaded file\n\nMore details in the [Anchor element](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#download) docs.",
22128
22124
  "fieldName": "download"
22129
22125
  },
22130
22126
  {
@@ -4,18 +4,20 @@ import type { Events as EventsInherited } from '../../components/linksimple/link
4
4
  /**
5
5
  * `mdc-buttonlink` combines the functional behavior of `mdc-linksimple` with the visual and structural
6
6
  * features of `mdc-button`. This includes support for variants, sizing, and optional
7
- * prefix and postfix icons via slots.
7
+ * prefix and postfix icons.
8
8
  *
9
9
  * ### Features:
10
- * - Behaves like an link while visually resembling a button.
11
- * - Supports slots for `prefix-icon` and `postfix-icon`.
10
+ * - Behaves like a link while visually resembling a button.
12
11
  * - Customizable size, color, and variant through attributes.
12
+ * - Supports prefix and postfix icons.
13
13
  * - Inherits accessibility and keyboard interaction support from `mdc-linksimple`.
14
14
  *
15
15
  * @dependency mdc-icon
16
16
  *
17
17
  * @tagname mdc-buttonlink
18
18
  *
19
+ * @slot default - The default slot for buttonlink text content.
20
+ *
19
21
  * @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
20
22
  * @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
21
23
  * @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
@@ -26,11 +28,11 @@ import type { Events as EventsInherited } from '../../components/linksimple/link
26
28
  * @csspart button-text - The slot containing the buttonlink text.
27
29
  * @csspart postfix-icon - The postfix icon element.
28
30
  *
29
- * @cssproperty --mdc-button-height - Height for button size
30
- * @cssproperty --mdc-button-background - Background color of the button
31
- * @cssproperty --mdc-button-border-color - Borer color of the button
32
- * @cssproperty --mdc-button-text-color - Text color of the button
33
- * @cssproperty --mdc-button-line-height - Line height of the button text
31
+ * @cssproperty --mdc-button-height - Height of the buttonlink
32
+ * @cssproperty --mdc-button-background - Background color of the buttonlink
33
+ * @cssproperty --mdc-button-border-color - Border color of the buttonlink
34
+ * @cssproperty --mdc-button-text-color - Text color of the buttonlink
35
+ * @cssproperty --mdc-button-line-height - Line height of the buttonlink text
34
36
  * @cssproperty --mdc-button-prefix-icon-size - Size of the prefix icon
35
37
  * @cssproperty --mdc-button-postfix-icon-size - Size of the postfix icon
36
38
  */
@@ -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.12",
4
+ "version": "0.129.13",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"