@abgov/react-components 3.4.0-alpha.30 → 3.4.0-alpha.31

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.
@@ -8,19 +8,19 @@ declare global {
8
8
  }
9
9
  interface CheckboxProps {
10
10
  ref: React.RefObject<HTMLElement>;
11
+ id?: string;
11
12
  name: string;
12
13
  checked?: boolean;
13
14
  disabled?: boolean;
14
- indeterminate?: boolean;
15
15
  error?: boolean;
16
16
  text?: string;
17
17
  value?: string | number | boolean;
18
18
  }
19
19
  export interface Props {
20
+ id?: string;
20
21
  name: string;
21
22
  checked?: boolean;
22
23
  disabled?: boolean;
23
- indeterminate?: boolean;
24
24
  error?: boolean;
25
25
  text?: string;
26
26
  value?: string | number | boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abgov/react-components",
3
- "version": "3.4.0-alpha.30",
3
+ "version": "3.4.0-alpha.31",
4
4
  "description": "Government of Alberta - UI components for React",
5
5
  "bugs": {
6
6
  "url": "https://github.com/GovAlta/ui-components/issues"
@@ -169,13 +169,13 @@ const GoACallout = ({
169
169
  };
170
170
 
171
171
  const GoACheckbox = ({
172
+ id,
172
173
  name,
173
174
  testId,
174
175
  error,
175
176
  disabled,
176
177
  checked,
177
- indeterminate,
178
- value: _value = true,
178
+ value,
179
179
  text,
180
180
  children,
181
181
  onChange
@@ -200,13 +200,13 @@ const GoACheckbox = ({
200
200
  return jsx("goa-checkbox", Object.assign({
201
201
  "data-testid": testId,
202
202
  ref: el,
203
+ id: id,
203
204
  name: name,
204
205
  error: error,
205
206
  checked: checked,
206
207
  disabled: disabled,
207
- indeterminate: indeterminate,
208
208
  text: text,
209
- value: _value
209
+ value: value
210
210
  }, {
211
211
  children: children
212
212
  }), void 0);
@@ -209,14 +209,13 @@
209
209
  };
210
210
 
211
211
  var GoACheckbox = function GoACheckbox(_a) {
212
- var name = _a.name,
212
+ var id = _a.id,
213
+ name = _a.name,
213
214
  testId = _a.testId,
214
215
  error = _a.error,
215
216
  disabled = _a.disabled,
216
217
  checked = _a.checked,
217
- indeterminate = _a.indeterminate,
218
- _b = _a.value,
219
- value = _b === void 0 ? true : _b,
218
+ value = _a.value,
220
219
  text = _a.text,
221
220
  children = _a.children,
222
221
  onChange = _a.onChange;
@@ -240,11 +239,11 @@
240
239
  return jsxRuntime.jsx("goa-checkbox", __assign({
241
240
  "data-testid": testId,
242
241
  ref: el,
242
+ id: id,
243
243
  name: name,
244
244
  error: error,
245
245
  checked: checked,
246
246
  disabled: disabled,
247
- indeterminate: indeterminate,
248
247
  text: text,
249
248
  value: value
250
249
  }, {