@momentum-design/components 0.106.0 → 0.106.1

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.
@@ -72,6 +72,16 @@ declare class Buttonsimple extends Buttonsimple_base {
72
72
  * @default button
73
73
  */
74
74
  type: ButtonType;
75
+ /**
76
+ * The name of the button, submitted as a pair with the button's value as part of the form data,
77
+ * when that button is used to submit the form.
78
+ */
79
+ name?: string;
80
+ /**
81
+ * Defines the value associated with the button's name when it's submitted with the form data.
82
+ * This value is passed to the server in params when the form is submitted using this button.
83
+ */
84
+ value?: string;
75
85
  /**
76
86
  * @internal
77
87
  */
@@ -240,4 +240,12 @@ __decorate([
240
240
  property({ reflect: true }),
241
241
  __metadata("design:type", String)
242
242
  ], Buttonsimple.prototype, "type", void 0);
243
+ __decorate([
244
+ property({ type: String, reflect: true }),
245
+ __metadata("design:type", String)
246
+ ], Buttonsimple.prototype, "name", void 0);
247
+ __decorate([
248
+ property({ type: String, reflect: true }),
249
+ __metadata("design:type", String)
250
+ ], Buttonsimple.prototype, "value", void 0);
243
251
  export default Buttonsimple;
@@ -54,12 +54,12 @@ declare class MenuItem extends ListItem {
54
54
  /**
55
55
  * The name attribute is used to identify the menu item when it is selected.
56
56
  */
57
- name?: undefined | string;
57
+ name?: string;
58
58
  /**
59
59
  * The value attribute is used to represent a value when the menu item is selected.
60
60
  * It is typically used with checkbox and radio menu items, but can be handy for any menu item.
61
61
  */
62
- value?: undefined | string;
62
+ value?: string;
63
63
  constructor();
64
64
  /**
65
65
  * Handles the keydown event for the menu item.
@@ -53,15 +53,6 @@ import styles from './menuitem.styles';
53
53
  class MenuItem extends ListItem {
54
54
  constructor() {
55
55
  super();
56
- /**
57
- * The name attribute is used to identify the menu item when it is selected.
58
- */
59
- this.name = undefined;
60
- /**
61
- * The value attribute is used to represent a value when the menu item is selected.
62
- * It is typically used with checkbox and radio menu items, but can be handy for any menu item.
63
- */
64
- this.value = undefined;
65
56
  this.addEventListener('keyup', this.handleKeyUp.bind(this));
66
57
  }
67
58
  /**
@@ -153,10 +144,10 @@ __decorate([
153
144
  ], MenuItem.prototype, "arrowDirection", void 0);
154
145
  __decorate([
155
146
  property({ type: String, reflect: true }),
156
- __metadata("design:type", Object)
147
+ __metadata("design:type", String)
157
148
  ], MenuItem.prototype, "name", void 0);
158
149
  __decorate([
159
150
  property({ type: String, reflect: true }),
160
- __metadata("design:type", Object)
151
+ __metadata("design:type", String)
161
152
  ], MenuItem.prototype, "value", void 0);
162
153
  export default MenuItem;