@progressive-development/pd-forms 0.1.45 → 0.1.47

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.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent pd-forms following open-wc recommendations",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.1.45",
6
+ "version": "0.1.47",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdButton.js CHANGED
@@ -170,7 +170,8 @@
170
170
  primary: {type: Boolean},
171
171
  gradient: {type: Boolean},
172
172
  disabled: {type: Boolean},
173
- text: {type: String}
173
+ text: {type: String},
174
+ value: {type: String}
174
175
  };
175
176
  }
176
177
 
@@ -191,7 +192,9 @@
191
192
 
192
193
  _handleClick() {
193
194
  if (!this.disabled) {
194
- this.dispatchEvent(new CustomEvent("button-clicked"));
195
+ this.dispatchEvent(new CustomEvent("button-clicked", {
196
+ detail: this.value
197
+ }));
195
198
  }
196
199
  }
197
200
  }
package/src/PdFormRow.js CHANGED
@@ -21,7 +21,7 @@ export class PdFormRow extends PdBaseUI {
21
21
 
22
22
  /* Define size for row, depends on media queries */
23
23
  --my-row-width: 800px;
24
- --my-gap: 20px;
24
+ --my-gap: var(--pd-form-row-gap, 20px);
25
25
  display: flex;
26
26
  flex: 1 1 100%;
27
27
  /*margin: 0 0 .5rem 0;*/