@deque/cauldron-react 3.0.1-canary.b36c405c → 3.0.1-canary.b96841e1

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.
Files changed (2) hide show
  1. package/lib/index.js +8 -8
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -2296,13 +2296,13 @@ var RadioGroup = function (_a) {
2296
2296
  handleChange(radioValue);
2297
2297
  onChange(radio, (_a = inputs.current) === null || _a === void 0 ? void 0 : _a[index]);
2298
2298
  }, disabled: disabled, checked: isChecked }, other)),
2299
+ React__default.createElement("label", { htmlFor: id, className: classNames('Field__label', {
2300
+ 'Field__label--disabled': disabled
2301
+ }) }, label),
2299
2302
  React__default.createElement(Icon, { className: classNames('Radio__overlay', {
2300
2303
  'Radio__overlay--focused': isFocused,
2301
2304
  'Radio__overlay--disabled': disabled
2302
- }), type: isChecked ? 'radio-checked' : 'radio-unchecked', "aria-hidden": "true", onClick: function () { return onRadioClick(index); } }),
2303
- React__default.createElement("label", { htmlFor: id, className: classNames('Field__label', {
2304
- 'Field__label--disabled': disabled
2305
- }) }, label)));
2305
+ }), type: isChecked ? 'radio-checked' : 'radio-unchecked', "aria-hidden": "true", onClick: function () { return onRadioClick(index); } })));
2306
2306
  });
2307
2307
  // reset the input refs array
2308
2308
  // refs get clobbered every re-render anyway and this supports "dynamic" radios
@@ -2352,6 +2352,9 @@ var Checkbox = React.forwardRef(function (_a, ref) {
2352
2352
  onChange(e);
2353
2353
  }
2354
2354
  } }, other)),
2355
+ React__default.createElement("label", { className: classNames('Field__label', {
2356
+ 'Field__label--disabled': disabled
2357
+ }), htmlFor: id }, label),
2355
2358
  React__default.createElement(Icon, { className: classNames('Checkbox__overlay', {
2356
2359
  'Checkbox__overlay--disabled': disabled,
2357
2360
  'Checkbox__overlay--focused': focused,
@@ -2364,10 +2367,7 @@ var Checkbox = React.forwardRef(function (_a, ref) {
2364
2367
  else {
2365
2368
  (_b = checkRef.current) === null || _b === void 0 ? void 0 : _b.click();
2366
2369
  }
2367
- } }),
2368
- React__default.createElement("label", { className: classNames('Field__label', {
2369
- 'Field__label--disabled': disabled
2370
- }), htmlFor: id }, label)),
2370
+ } })),
2371
2371
  React__default.createElement("div", { id: errorId, className: "Error" }, error)));
2372
2372
  });
2373
2373
  Checkbox.displayName = 'Checkbox';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "3.0.1-canary.b36c405c",
3
+ "version": "3.0.1-canary.b96841e1",
4
4
  "description": "Fully accessible react components library for Deque Cauldron",
5
5
  "publishConfig": {
6
6
  "access": "public"